bug60825.phpt 400 B

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