Forum Moderators: coopster
[php.net...]
Full Details on all changes made to the php parser.
wruk999.
[zend.com...]
I believe that mostly it is upwardly compatible for most things. There are some differences, though, such as class objects being passed by reference rather than value. So in PHP5
function ($obj){}
function (&$obj) {}
are identical in functionality. This is no problem unless you have a script that depends on objects being passed by value, for example.
Also, I think some long-deprecated features may have been dropped. Don't trust me on this though!
Tom
[zend.com...]
also I need to load PHP5 in my testing RH server
hmmm a few more headaches in sight :)
regards
Henry
well I was right to be concerned!
a few days ago
I updated my templating system and CMS to be fully OOP
No! There should be no problem as far as I know. It's only if you are doing some sort of weird trick that you will have a problem.
If you are using OOP as normal (pass by value), the only effect should be that your app will speed up and use less memory when run with the PHP5 engine (Zend 2 engine).
If you are passing by reference, nothing will really change except that the reference will get passed to handle which will get passed to the function (instead of just passing the reference).
If you are passing by value and using some trick that depends on passing by value, then I'm *not sure* what would happen, but I suspect it will still run fine since there is no mention of any OOP incompatibility. I was wrong about this based on reading I had doone when they first announced the problem of changing to pass-by-reference. I'm fairly certain they have come up with a solution in the internals that means that it won't break code that passes by reference (the original worry) or by value.
Tom
[phpbuilder.com...]