]> granicus.if.org Git - php/commitdiff
2nd wow returns different results with ZE1/ZE2
authorMarcus Boerger <helly@php.net>
Mon, 4 Nov 2002 17:12:21 +0000 (17:12 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 4 Nov 2002 17:12:21 +0000 (17:12 +0000)
tests/lang/bug20175.phpt

index a890f387a270df6cde2588886e72e02d52ad82ff..d218ddc0b7ae0d061f6129248b4e862462e3b8ae 100644 (file)
@@ -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