diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-03-09 13:57:15 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-03-09 14:01:32 +0100 |
commit | 1c94ff0595bbe6f3df8058aff7252bda09dc4a15 (patch) | |
tree | efe488bc3292d544657fca92c4347c9b872931eb /Zend/tests/methods-on-non-objects-array-access.phpt | |
parent | 2f156c61f19a889c8ed39fe8eb3b3220555db647 (diff) | |
download | php-git-1c94ff0595bbe6f3df8058aff7252bda09dc4a15.tar.gz |
Implement engine exceptions
RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7
Pending changes regarding naming of BaseException and whether it
should be an interface.
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 |