I want to switch to php 5.3 vs. the 5.2 I currently have. Anyone have any input on gotchas? I am mainly wanting to take advantage of the goto() functionality in 5.3
Sam
I want to switch to php 5.3 vs. the 5.2 I currently have. Anyone have any input on gotchas? I am mainly wanting to take advantage of the goto() functionality in 5.3
Sam
You might find this useful: http://www.php.net/manual/en/migration53.php most specifically the backward incompatible changes section.
Lots of info here: http://php.net/manual/en/migration53.php
PS: Doh! Took me longer to find the link.
also, check out the picture.
There are many, many excellent reasons to move to php5.3, but [font=monospace]goto[/font] is certainly not one of them...
Also if you're moving from 5.2 to 5.3 you might as well skip it and just go to 5.4.
Moving to the appropriate forum (the one with the FAQ that covers this topic).
traq wrote:There are many, many excellent reasons to move to php5.3, but goto is certainly not one of them...
For me, the biggest win has been the fact that the [font=monospace]$foo[/font] in [font=monospace]$foo('bar')[/font] can be a callable array now; second place I think is using [font=monospace]$this[/font] inside closures.
On the other hand, I've yet to find myself writing code so hairy that [font=monospace]goto[/font] would be an improvement. Then again, I never used variable breaks, either.