Re: Bug #19006 [Opn]: Test failure orange/banana
| From: | Melvyn Sopacua | Date: | Wed, 21 Aug 2002 08:09:43 +0000 |
| Subject: | Re: Bug #19006 [Opn]: Test failure orange/banana | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87220@lists.php.net to get a copy of this message | ||
Patch below.
At 09:50 21-8-2002, you wrote:
Sorry for the screwed output, the expected output, expects an int(0) (the result of array_sum). But since array_sum no longer changes the actual array, the array remains in tact as 'string[6] => banana'.Index: ext/standard/tests/array/003.phpt =================================================================== RCS file: /repository/php4/ext/standard/tests/array/003.phpt,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 003.phpt
--- ext/standard/tests/array/003.phpt 26 Mar 2002 18:18:18 -0000 1.1.2.1+++ ext/standard/tests/array/003.phpt 21 Aug 2002 08:04:25 -0000 @@ -35,9 +35,9 @@ ["-2147483648"]=> array(2) {
[0]=>
- int(0)
+ string(6) "banana"
[1]=>
- int(0)
+ string(6) "orange"
}
["test"]=>
int(27)
@@ -56,9 +56,9 @@
["-2147483648"]=>
array(2) {
[0]=>
- int(0)
+ string(6) "banana"
[1]=>
- int(0)
+ string(6) "orange"
}
[-2147483648]=>
float(-0.33333333333333)
@@ -81,9 +81,9 @@
[1]=>
array(2) {
[0]=>
- int(0)
+ string(6) "banana"
[1]=>
- int(0)
+ string(6) "orange"
}
[2]=>
int(27)
Met vriendelijke groeten / With kind regards,
Webmaster IDG.nl
Melvyn Sopacua