]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Thu, 8 Nov 2007 10:03:52 +0000 (10:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 8 Nov 2007 10:03:52 +0000 (10:03 +0000)
ext/standard/tests/array/end_64bit.phpt
ext/zip/tests/bug38943.phpt

index 94fff0c1c429a256531dcfbb92011cbda80cde7b..23d410ee1b5501d2b0c7efac60f0624386e6a784 100644 (file)
@@ -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
index d7236e314b10e4fad5b92a7541e477762f9aa8fe..f4896df99bc7d40d464a96c7a7f6f351f6d314b1 100644 (file)
@@ -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)