Page MenuHomePhabricator
Paste P8832

empty property access
ActivePublic

Authored by brennen on Jul 31 2019, 12:21 AM.
$ php7.2
<?php
$empty = '';
$obj->$empty = '';
Warning: Creating default object from empty value in Standard input code on line 3
$ php7.0
<?php
$empty = '';
$obj->$empty = '';
Warning: Creating default object from empty value in - on line 3
Fatal error: Uncaught Error: Cannot access empty property in -:3
Stack trace:
#0 {main}
thrown in - on line 3

Event Timeline

brennen created this paste.Jul 31 2019, 12:21 AM