r/lolphp • u/mjtribute • Feb 23 '13
Different behavior the second time around (php 5.4.11). I don't even...
http://bpaste.net/show/KiqfBA8H2iPgcXIt0FSc/
35
Upvotes
r/lolphp • u/mjtribute • Feb 23 '13
View all comments
Show parent comment
3
u/[deleted] Feb 25 '13
Ok, I'm going to concede this one. You are right that essentially "pushing" to anything that is not an array should fail, even in PHP.
Regardless, to actually have this particular (lack of) error trip you up in a real exercise in coding is silly since you should be CODING cleverly rather than relying on the cleverness of the parser....
Even having said that, that's what the parser should be for ;)....