From: Moriyoshi Koizumi Date: Thu, 17 Jul 2003 18:50:56 +0000 (+0000) Subject: Added test case for bug #24658 X-Git-Tag: BEFORE_ARG_INFO~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02c55f6c63acf31beff6d0c4b6a6aa8bf7a1ca84;p=php Added test case for bug #24658 --- 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