blob: 721e677b2e439d14fdf1727814f472e0f7212424 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--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
|