Re: cvs: php4 /tests/lang bug20175.phpt
| From: | Ilia A. | Date: | Mon, 04 Nov 2002 17:25:07 +0000 |
| Subject: | Re: cvs: php4 /tests/lang bug20175.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15781@lists.php.net to get a copy of this message | ||
The 2nd wow should be '-wow:2' not 'wow:1'. For me it works in both ZE1 and
ZE2 for value of 2. The value of 2 is correct because the test increments the
$wow_global variable twice. Please revert your change.
Ilia
On November 4, 2002 12:12 pm, Marcus Börger wrote:
> helly Mon Nov 4 12:12:22 2002 EDT
>
> Modified files:
> /php4/tests/lang bug20175.phpt
> Log:
> 2nd wow returns different results with ZE1/ZE2
>
>
> Index: php4/tests/lang/bug20175.phpt
> diff -u php4/tests/lang/bug20175.phpt:1.2 php4/tests/lang/bug20175.phpt:1.3
> --- php4/tests/lang/bug20175.phpt:1.2 Mon Nov 4 11:46:28 2002
> +++ php4/tests/lang/bug20175.phpt Mon Nov 4 12:12:21 2002
> @@ -48,7 +48,10 @@
>
> /* 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 @@
> bar:1
> bar:2
> wow:1
> -wow:2
> +wow:1