From: Marcus Boerger Date: Mon, 4 Nov 2002 17:12:21 +0000 (+0000) Subject: 2nd wow returns different results with ZE1/ZE2 X-Git-Tag: php-4.3.0RC1~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8f8591326bbe6e80e72d01714b52021676bc920;p=php 2nd wow returns different results with ZE1/ZE2 --- 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