2012-01-21 17:13:53 +00:00
|
|
|
--TEST--
|
2014-08-21 12:15:01 +00:00
|
|
|
Bug #60825 (Segfault when running symfony 2 tests) (PHP7)
|
2012-01-21 17:13:53 +00:00
|
|
|
--DESCRIPTION--
|
|
|
|
run this with valgrind
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2012-01-24 14:39:45 +00:00
|
|
|
class test {
|
|
|
|
public static $x;
|
|
|
|
public function __toString() {
|
|
|
|
self::$x = $this;
|
|
|
|
return __FILE__;
|
2012-01-21 17:13:53 +00:00
|
|
|
}
|
|
|
|
}
|
2012-01-24 14:39:45 +00:00
|
|
|
$a = new test;
|
|
|
|
require_once $a;
|
2014-08-21 12:15:01 +00:00
|
|
|
debug_zval_dump($a, test::$x);
|
2012-01-21 17:13:53 +00:00
|
|
|
?>
|
2012-01-24 14:39:45 +00:00
|
|
|
--EXPECTF--
|
2014-08-21 12:15:01 +00:00
|
|
|
object(test)#%d (0) refcount(%d){
|
|
|
|
}
|
|
|
|
object(test)#%d (0) refcount(%d){
|
|
|
|
}
|