When you upgrade PHsPeed, there will be changes in the PHP run time library. These changes are applied automatically. If you call run time library functions in your custom code, then there is always a chance that you require changes. In general, we take care by maintaining compatibility, but there are situations where we are not entirely in control. This is the case when new releases of PHP itself cause issues. One example is that the latest releases changed the syntax, and in some cases, parameters are not allowed to be null, etc. In this case, we still try to fix the run time in a way that will keep compatibility with earlier versions. But what we can’t do is fix the code that you have written.  


Of course, syntax errors are easy to locate as you can pre-compile your code when you open the PHP events file. 


It will compile your code and show where the issues are. However, if PHP changes behavior, like not allowing nulls in parameters, these errors only appear when running and testing your code. In that case PHsPeed will trap the error and you can jump to the line where it is going wrong. 


Do NOT change the code here! As you are looking into the generated code, your changes will be overwritten as soon as PHsPeed generates a new version. Always change your code in the development environment, so in the event code. If you locate issues in our run time, you can fix them because the source is accessible, but again, be aware that you fix them in the run time, not in the copied runtime. Please report those issues to us so that other users can benefit. 


The way we work is, that on run time issues, we disable the automatic generation (run/debug->options), make the required changes in the generated code, test it, and then move them to the run time environment. There is a button that does this:



If you make changes to the run time then always report to us, so that we can validate and adapt. Otherwise, your run time will be overwritten on the next release. As there are two environments (private libraries and shared libraries), PHsPeed will save the file in both.