Created
July 24, 2011 14:12
-
-
Save gavinanderegg/1102657 to your computer and use it in GitHub Desktop.
Hopefully fixed in 5.4
This file contains 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 | |
class thing | |
{ | |
function bar() | |
{ | |
return array(1, 2, 3); | |
} | |
} | |
$t = new thing(); | |
if (!empty($t->bar())) | |
{ | |
print "Hi!\n"; | |
} | |
// Fatal error: Can't use method return value in write context in [...]/test.php on line 15 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment