From fec7c2997a9c23fe68b406a1842c52db6c7732f0 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 17 Dec 2003 17:25:00 +0000 Subject: Update test. --- tests/lang/bug22510.phpt | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'tests/lang') diff --git a/tests/lang/bug22510.phpt b/tests/lang/bug22510.phpt index 5c05a82f30..474fc9793e 100644 --- a/tests/lang/bug22510.phpt +++ b/tests/lang/bug22510.phpt @@ -93,4 +93,31 @@ ok1 bar::run1 foo::method1 -Fatal error: Only variables or references can be returned by reference in %s on line %d +Strict Standards: Only variable references should be returned by reference in %s on line %d +foo::method1 + +Strict Standards: Only variable references should be returned by reference in %s on line %d +foo::finalize +done! +ok2 +bar::run2 +foo::method2 +foo::method2 +foo::finalize +done! +ok3 +bar::run3 +foo::method3 +foo::method3 +foo::finalize +done! +ouch +bar::run1 +foo::method1 + +Strict Standards: Only variable references should be returned by reference in %s on line %d +foo::method1 + +Strict Standards: Only variable references should be returned by reference in %s on line %d +foo::finalize +I'm alive! -- cgit v1.2.1