From: Antony Dovgal Date: Thu, 2 Feb 2006 13:56:16 +0000 (+0000) Subject: add test for bug #36258 X-Git-Tag: php-5.1.3RC1~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0655132e2c5e93ea678962126952cd523691c424;p=php add test for bug #36258 --- diff --git a/ext/spl/tests/bug36258.phpt b/ext/spl/tests/bug36258.phpt new file mode 100644 index 0000000000..76fbdbf00c --- /dev/null +++ b/ext/spl/tests/bug36258.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #36258 (SplFileObject::getPath() may lead to segfault) +--FILE-- + $file) { + var_dump($file->getFilename()); + var_dump($file->getPath()); + break; +} + +echo "Done\n"; +?> +--EXPECTF-- +string(%d) "%s" +string(%d) "%s" +Done