mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

Move the result initialization before HANDLE_EXCEPTION(), the actual value doesn't matter. This fixes one of the issues report in bug #81190.
17 lines
332 B
PHP
17 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
|