From b8f8591326bbe6e80e72d01714b52021676bc920 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 4 Nov 2002 17:12:21 +0000 Subject: [PATCH] 2nd wow returns different results with ZE1/ZE2 --- tests/lang/bug20175.phpt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/lang/bug20175.phpt b/tests/lang/bug20175.phpt index a890f387a2..d218ddc0b7 100644 --- a/tests/lang/bug20175.phpt +++ b/tests/lang/bug20175.phpt @@ -48,7 +48,10 @@ function bar_static() { /* Part 3: * Storing a reference to the result of a function in a static variable. - * Same as Part 2 but wow_global() returns a reference. + * Same as Part 2 but wow_global() returns a reference so $wow_value + * should store a reference to $wow_global. Therefor $wow_value is already + * initialised in second call to wow_static() and hence shouldn't call + * wow_global() again. */ $wow_global = 0; $wow_name = ''; @@ -82,4 +85,4 @@ foo:1 bar:1 bar:2 wow:1 -wow:2 +wow:1 -- 2.40.0