xref: /PHP-8.0/Zend/tests/bug60825.phpt (revision f8d79582)
1--TEST--
2Bug #60825 (Segfault when running symfony 2 tests) (PHP7)
3--DESCRIPTION--
4run this with valgrind
5--FILE--
6<?php
7class test {
8    public static $x;
9    public function __toString() {
10        self::$x = $this;
11        return __FILE__;
12    }
13}
14$a = new test;
15require_once $a;
16debug_zval_dump($a, test::$x);
17?>
18--EXPECTF--
19object(test)#%d (0) refcount(%d){
20}
21object(test)#%d (0) refcount(%d){
22}
23