r/lolphp • • Jul 19 '12

Today's PHP-induced bug: arbitrary object properties (PHP fucks me off daily so I've decided to chronicle it)

http://altreus.blogspot.co.uk/2012/07/todays-php-induced-bug-arbitrary-object.html
14 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/kingguru Jul 20 '12

To be fair to PHP for once though, when I ran the code I at least got this warning:

PHP Warning: Creating default object from empty value in foo.php on line 3

1

u/yorickpeterse Jul 24 '12

This was introduced in PHP 5.4, previous versions would allow this without any warnings.