mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
fix test
This commit is contained in:
@@ -206,33 +206,33 @@ string(1) "b"
|
||||
int(-4)
|
||||
|
||||
*** Testing end() on objects ***
|
||||
object(foo1)#2 (0) {
|
||||
object(foo1)#%d (0) {
|
||||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
&object(foo)#1 (0) {
|
||||
&object(foo)#%d (0) {
|
||||
}
|
||||
[1]=>
|
||||
&object(foo1)#2 (0) {
|
||||
&object(foo1)#%d (0) {
|
||||
}
|
||||
}
|
||||
|
||||
*** Testing end() on resource type ***
|
||||
resource(6) of type (stream)
|
||||
resource(6) of type (stream)
|
||||
resource(%d) of type (stream)
|
||||
resource(%d) of type (stream)
|
||||
|
||||
*** Testing error conditions ***
|
||||
|
||||
Warning: Wrong parameter count for end() in %s on line %d
|
||||
Warning: end() expects exactly 1 parameter, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: Wrong parameter count for end() in %s on line %d
|
||||
Warning: end() expects exactly 1 parameter, 2 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: end(): Passed variable is not an array or object in %s on line %d
|
||||
bool(false)
|
||||
Warning: end() expects parameter 1 to be array, integer given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: end(): Passed variable is not an array or object in %s on line %d
|
||||
bool(false)
|
||||
Warning: end() expects parameter 1 to be array, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
Done
|
||||
|
||||
@@ -28,11 +28,11 @@ array(1) {
|
||||
int(1)
|
||||
}
|
||||
object(myZip)#1 (%d) {
|
||||
["test:private"]=>
|
||||
["test":"myZip":private]=>
|
||||
int(0)
|
||||
["testp"]=>
|
||||
string(6) "foobar"
|
||||
["testarray:private"]=>
|
||||
["testarray":"myZip":private]=>
|
||||
array(1) {
|
||||
[0]=>
|
||||
int(1)
|
||||
|
||||
Reference in New Issue
Block a user