Leigh Makewell wrote: > Rasmus Lerdorf wrote: > >> This is where it gets tricky. Is this legal code? > > Yes it is legal because it worked.
Well, that is the point, it didn't actually work. Code similar to this caused memory corruption. So while you may not have seen an instant crash, over time and in certain conditions you would get unexplained crashes. In order to fix this bug we needed to check for this sort of code and in doing so we were able to fix it and also enhance the warning levels to let people detect this sort of potentially bogus code. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php