mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
353f963bba
Move the result initialization before HANDLE_EXCEPTION(), the actual value doesn't matter. This fixes one of the issues report in bug #81190.
18 lines
332 B
PHP
18 lines
332 B
PHP
--TEST--
|
|
strlen() null deprecation warning promoted to exception
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function($_, $msg) {
|
|
throw new Exception($msg);
|
|
});
|
|
try {
|
|
strlen(null);
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
strlen(): Passing null to parameter #1 ($string) of type string is deprecated
|