]> granicus.if.org Git - php/commitdiff
- Fixed tests
authorFelipe Pena <felipe@php.net>
Sun, 27 Jul 2008 17:37:07 +0000 (17:37 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 27 Jul 2008 17:37:07 +0000 (17:37 +0000)
Zend/tests/007.phpt
Zend/tests/008.phpt
Zend/tests/009.phpt
Zend/tests/011.phpt
Zend/tests/017.phpt
Zend/tests/020.phpt
Zend/tests/030.phpt
Zend/tests/bug33771.phpt

index 3c81a722b112b0f6d21ed93fa93b1550be0557ee..c55ec37df845a4346638581ea9b055f4edcaa668 100644 (file)
@@ -22,7 +22,7 @@ var_dump(each($a));
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: Wrong parameter count for each() in %s on line %d
+Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
 NULL
 
 Warning: Variable passed to each() is not an array or object in %s on line %d
index cd631003ddd065a33ad730c2aafe3ad8f3b46173..6848258680e8e2981807c581369b83735d8140ff 100644 (file)
@@ -23,18 +23,18 @@ var_dump(constant("test const"));
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: Wrong parameter count for define() in %s on line %d
+Warning: define() expects at least 2 parameters, 0 given in %s on line %d
 NULL
 
-Warning: Wrong parameter count for define() in %s on line %d
+Warning: define() expects at least 2 parameters, 1 given in %s on line %d
 NULL
 bool(true)
 
-Notice: Constant true already defined in %s on line %d
-bool(false)
+Warning: define() expects parameter 3 to be boolean, array given in %s on line %d
+NULL
 
-Notice: Array to string conversion in %s on line %d
-bool(true)
+Warning: define() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
+NULL
 bool(true)
 bool(true)
 bool(true)
index 885115e6d2e5e99e953f90b0996d51f4d44fca8e..3dd8bac771f2c3701b6476d8965e5816519461bc 100644 (file)
@@ -40,7 +40,9 @@ unicode(3) "foo"
 
 Warning: get_class() called without object from outside a class in %s on line %d
 bool(false)
-bool(false)
+
+Warning: get_class() expects parameter 1 to be object, Unicode string given in %s on line %d
+NULL
 unicode(3) "foo"
 unicode(4) "foo2"
 Done
index 9513d5a948600cccf840aaf1f180cd3090c465a2..dd4255f71303285633703b915d0ff300d3806b49 100644 (file)
@@ -53,10 +53,10 @@ $bar->test();
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: Wrong parameter count for property_exists() in %s on line %d
+Warning: property_exists() expects exactly 2 parameters, 0 given in %s on line %d
 NULL
 
-Warning: Wrong parameter count for property_exists() in %s on line %d
+Warning: property_exists() expects exactly 2 parameters, 1 given in %s on line %d
 NULL
 bool(true)
 bool(false)
index 7cac6dd315c22053a658e23c98e3e4b70e4de755..2837bae5dba9503ed85415c2440c7623f6a54547 100644 (file)
@@ -45,17 +45,17 @@ var_dump(count(get_extension_funcs("zend")));
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: Wrong parameter count for get_resource_type() in %s on line %d
+Warning: get_resource_type() expects exactly 1 parameter, 0 given in %s on line %d
 NULL
 
-Warning: Supplied argument is not a valid resource handle in %s on line %d
-bool(false)
+Warning: get_resource_type() expects parameter 1 to be resource, Unicode string given in %s on line %d
+NULL
 unicode(6) "stream"
 unicode(7) "Unknown"
 unicode(5) "array"
 int(%d)
 unicode(5) "array"
-int(%d)
+int(0)
 
 Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s on line %d
 NULL
index 98865f921ef124e398aae3c3ce0af71897842d2f..1e2bcff387fb8ccf794f64f7860a73d76a057584 100644 (file)
@@ -20,11 +20,14 @@ foo(1,2);
 echo "Done\n";
 ?>
 --EXPECTF--
-bool(false)
+Warning: func_get_arg() expects exactly 1 parameter, 3 given in %s on line %d
+NULL
 
 Warning: func_get_arg():  Called from the global scope - no function context in %s on line %d
 bool(false)
-bool(false)
+
+Warning: func_get_arg() expects exactly 1 parameter, 0 given in %s on line %d
+NULL
 
 Warning: func_get_arg():  Argument 1 not passed to function in %s on line %d
 bool(false)
index dab506983b4e5059fac795fca6f148f3754aa3aa..dd78555e05a0cba1b83bda7f9e90fb6c4c281460 100644 (file)
@@ -31,7 +31,7 @@ $test->bar();
 
 ?>
 --EXPECTF--
-object(Exception)#2 (6) {
+object(Exception)#2 (%d) {
   [u"message":protected]=>
   unicode(3) "foo"
   [u"string":u"Exception":private]=>
@@ -61,6 +61,8 @@ object(Exception)#2 (6) {
       }
     }
   }
+  [u"previous":u"Exception":private]=>
+  NULL
 }
 'test' => '0'
 'test_2' => '1'
index 761bad9377a5cb76de5df2ac56e5c0f52a0f1374..0f3dd9815f64c17d95d74d86a361cdfd045768a7 100644 (file)
@@ -34,7 +34,7 @@ var_dump(error_reporting());
 echo "Done\n";
 ?>
 --EXPECT--
-int(16383)
-int(16383)
-int(14335)
+int(32767)
+int(32767)
+int(30719)
 Done