cvs: php-src(PHP_5_3) /ext/standard/tests/array array_push_error2.phpt
| From: | Felipe Pena | Date: | Wed, 19 Mar 2008 03:15:56 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/standard/tests/array array_push_error2.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-49204@lists.php.net to get a copy of this message | ||
felipe Wed Mar 19 03:15:56 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array array_push_error2.phpt
Log:
Remove accidental change
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_error2.phpt?r1=1.1.4.4&r2=1.1.4.5&diff_format=u
Index: php-src/ext/standard/tests/array/array_push_error2.phpt
diff -u php-src/ext/standard/tests/array/array_push_error2.phpt:1.1.4.4
php-src/ext/standard/tests/array/array_push_error2.phpt:1.1.4.5
--- php-src/ext/standard/tests/array/array_push_error2.phpt:1.1.4.4 Wed Mar 19 03:05:34 2008
+++ php-src/ext/standard/tests/array/array_push_error2.phpt Wed Mar 19 03:15:56 2008
@@ -1,9 +1,5 @@
--TEST--
Test array_push() function : error conditions - min and max int values as keys
---SKIPIF--
-<?php
-if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
-?>
--FILE--
<?php
/* Prototype : int array_push(array $stack, mixed $var [, mixed $...])
@@ -32,22 +28,22 @@
*** Testing array_push() : error conditions ***
int(3)
array(3) {
- [-2147483647]=>
+ [-%d]=>
string(3) "min"
- [2147483647]=>
+ [%d]=>
string(3) "max"
- [-2147483648]=>
+ [-%d]=>
string(3) "new"
}
Warning: array_push(): Cannot add element to the array as the next element is already occupied in
%s on line %d
bool(false)
array(3) {
- [-2147483647]=>
+ [-%d]=>
string(3) "min"
- [2147483647]=>
+ [%d]=>
string(3) "max"
- [-2147483648]=>
+ [-%d]=>
string(3) "new"
}
-Done
+Done
\ No newline at end of file