Annotation of embedaddon/php/Zend/tests/bug60825.phpt, revision 1.1.1.1

1.1       misho       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)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>