From 02c55f6c63acf31beff6d0c4b6a6aa8bf7a1ca84 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Thu, 17 Jul 2003 18:50:56 +0000 Subject: [PATCH] Added test case for bug #24658 --- tests/lang/bug24658.phpt | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 tests/lang/bug24658.phpt diff --git a/tests/lang/bug24658.phpt b/tests/lang/bug24658.phpt new file mode 100644 index 0000000000..ff4d7caba3 --- /dev/null +++ b/tests/lang/bug24658.phpt @@ -0,0 +1,47 @@ +--TEST-- +Bug #24658 (combo of typehint / reference causes crash) +--FILE-- + +--EXPECTF-- +object(foo)#%d (0) { +} +object(foo)#%d (0) { +} +object(foo)#%d (0) { +} +object(foo)#%d (0) { +} +object(foo)#%d (0) { +} +int(1) +int(2) +object(foo)#%d (0) { +} +int(1) +int(2) + +Fatal error: Argument 1 must be an instance of foo in %s on line %d -- 2.50.1