From c4daf2ffface3200fcbd8594c8d0e2a358e5c83b Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 2 Feb 2006 13:57:04 +0000 Subject: [PATCH] add test for bug #36258 --- ext/spl/tests/bug36258.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ext/spl/tests/bug36258.phpt 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 -- 2.40.0