diff options
Diffstat (limited to 'Zend/tests/methods-on-non-objects-array-access.phpt')
-rwxr-xr-x | Zend/tests/methods-on-non-objects-array-access.phpt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Zend/tests/methods-on-non-objects-array-access.phpt b/Zend/tests/methods-on-non-objects-array-access.phpt deleted file mode 100755 index be87457c6c..0000000000 --- a/Zend/tests/methods-on-non-objects-array-access.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -Catch method calls on non-objects inside array access ---FILE-- -<?php -set_error_handler(function($code, $message) { - var_dump($code, $message); -}); - -$x= null; -$a= [null => 'OK']; -var_dump($a[$x->method()]); -echo "Alive\n"; -?> ---EXPECTF-- -int(4096) -string(%d) "Call to a member function method() on null" -string(2) "OK" -Alive
\ No newline at end of file |