xref: /PHP-7.3/Zend/tests/bug79919.phpt (revision 1e0bc6e3)
1--TEST--
2Bug #79919 (Stack use-after-scope in define())
3--SKIPIF--
4<?php
5if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
6?>
7--FILE--
8<?php
9$b = error_log(0);
10$b = simplexml_load_string('<xml/>', null, $b);
11define(0, $b);
12?>
13--EXPECT--
140
15