mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d30cd7d7e7
Closes GH-5590
16 lines
319 B
PHP
16 lines
319 B
PHP
--TEST--
|
|
Bug #79818: BIND_STATIC frees old variable value too early
|
|
--FILE--
|
|
<?php
|
|
function test($a) {
|
|
static $a = UNDEFINED;
|
|
}
|
|
test(new stdClass);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Undefined constant "UNDEFINED" in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): test(Object(stdClass))
|
|
#1 {main}
|
|
thrown in %s on line %d
|