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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php