mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
1e0bc6e30f
Instead of the temporary `rv`, we use the `val_free` which is there for this purpose.
15 lines
272 B
PHP
15 lines
272 B
PHP
--TEST--
|
|
Bug #79919 (Stack use-after-scope in define())
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$b = error_log(0);
|
|
$b = simplexml_load_string('<xml/>', null, $b);
|
|
define(0, $b);
|
|
?>
|
|
--EXPECT--
|
|
0
|