3 ms·
thanks for the info - it makes sense now. its a similar issue to non-declared vars in js as you mentioned, but even then that was not a language fault per-se, i
by stephenr 13y ago
thanks for the info - it makes sense now. its a similar issue to non-declared vars in js as you mentioned, but even then that was not a language fault per-se, it's just a lack of knowledge about the language.
i can't think of things that actually come up like that in php these days - things like register globals and magic quotes are long gone..
- eevee 13y agoI disagree that it wasn't a language fault; it provided very little benefit and directly caused hard-to-diagnose bugs. Being told where the mines are doesn't make walking across a minefield any more palatable. If it were a good idea it wouldn't still be around. Undeclared variables in PHP produce an E_NOTICE, right? Better than Perl 4, at least. :)
- stephenr 13y agoyes reading from undeclared php variables causes an error, assuming you haven't silenced using @ or set php to ignore notices.