bug60825.phpt 336 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #60825 (Segfault when running symfony 2 tests)
  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(test::$x);
  17. ?>
  18. --EXPECTF--
  19. string(%d) "%sbug60825.php" refcount(2)