diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-26 15:32:18 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-05 14:25:07 +0200 |
commit | a31f46421d7bf6f55dd9ac5876b8e2eacf7e0708 (patch) | |
tree | 24ffd7c5ae5e321c3994048fdd0fd9f68ae7457c /Zend/tests/instanceof_001.phpt | |
parent | 528aa7932a839fc6319979c34aa372805d8dc41c (diff) | |
download | php-git-a31f46421d7bf6f55dd9ac5876b8e2eacf7e0708.tar.gz |
Allow exceptions in __toString()
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
Diffstat (limited to 'Zend/tests/instanceof_001.phpt')
-rw-r--r-- | Zend/tests/instanceof_001.phpt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Zend/tests/instanceof_001.phpt b/Zend/tests/instanceof_001.phpt index 8c13a0478c..6bdcb896af 100644 --- a/Zend/tests/instanceof_001.phpt +++ b/Zend/tests/instanceof_001.phpt @@ -16,8 +16,6 @@ var_dump($c[0] instanceof stdClass); var_dump(@$inexistent instanceof stdClass); -var_dump("$a" instanceof stdClass); - ?> --EXPECTF-- bool(true) @@ -27,5 +25,3 @@ Deprecated: Function create_function() is deprecated in %s on line %d bool(true) bool(true) bool(false) - -Recoverable fatal error: Object of class stdClass could not be converted to string in %s on line %d |