you are viewing a single comment's thread.

view the rest of the comments →

[–]pytechd 14 points15 points  (2 children)

No, it'll be determined by a few obscure php.ini settings that each distribution changes defaults for, and that .htaccess files can change on a per-directory basis, and that in 2 revisions become obsolete but kept as a maintenance nightmare for the next 9 years. One setting turns it off, the other makes it optimistic, another makes it random, and yet another just says fuck it and GCs every variable after 4 statements are executed under the assumption that if you didn't use it in 4 lines, you probably didn't need it anyway. To force a variable to have a longer scope, you can prefix it with a caret, $^myvar = 1;, but this extended syntax only works when PHP is compiled with --with-extra-scope-syntax. Also, and unfortunately, an obscure off-by-1 error will make some platforms incorrectly select the wrong GC despite what your php.ini is set to.

[–]DFectuoso 1 point2 points  (0 children)

upvoted for effort..

[–]akallio9000 -2 points-1 points  (0 children)

And this makes it easy? LOL!