Last active
December 25, 2015 14:09
-
-
Save carlescliment/6988839 to your computer and use it in GitHub Desktop.
null handling in php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP VERSION: PHP 5.5.4-1 | |
*/ | |
// Raises a parse error | |
null['unexisting']; | |
// Returns null | |
$null_value = null; | |
$null_value['unexisting']; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported in https://bugs.php.net/bug.php?id=65484