mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00

The error path performed the free unconditionally, while we should not do it for GLOBAL_LOCK. Fixes oss-fuzz #39868.
14 lines
227 B
PHP
14 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
|