3 ms·
>due to the use of PHP PHP allows using uninitialized variables, but it does spew notices: PHP Notice: Undefined variable: bar in testme.php on line2 And
by tyingq 4y ago
>due to the use of PHP
PHP allows using uninitialized variables, but it does spew notices:
PHP Notice: Undefined variable: bar in testme.php on line2
And most implementations of this would probably be using objects, properties, property_exists(), etc.
- Nextgrid 4y ago"Proper" PHP with a modern framework such as Laravel is decent and as far as I know would forbid this (there's a global exception handler that returns a 500 page with a stack trace). Bare PHP with no framework or anything to patch PHP's shortcomings is IMO unacceptable in today's day and age.
- ev1 4y agoIf you're going to do the latter at the very least use the built in, included, free libsodium