mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
a2e3ca1f5b
The error path performed the free unconditionally, while we should not do it for GLOBAL_LOCK. Fixes oss-fuzz #39868.
15 lines
227 B
PHP
15 lines
227 B
PHP
--TEST--
|
|
To string conversion failure in global
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
global ${new stdClass};
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Object of class stdClass could not be converted to string
|