]> granicus.if.org Git - php/commitdiff
- Fixed tests (synced with 5_3 and HEAD)
authorFelipe Pena <felipe@php.net>
Fri, 15 Aug 2008 02:26:56 +0000 (02:26 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 15 Aug 2008 02:26:56 +0000 (02:26 +0000)
ext/posix/tests/posix_strerror_error.phpt
ext/posix/tests/posix_strerror_variation1.phpt

index 6fc17ec0ceb5dc9e937049b13cc259755d2dc2f1..d9b61596316ccb1c5bf6763e4bace113d9158a91 100644 (file)
@@ -24,7 +24,7 @@ var_dump( posix_strerror($errno, $extra_arg) );
 
 echo "\n-- Testing posix_strerror() function with invalid error number --\n";
 $errno = -999;
-var_dump( posix_strerror($errno) );
+echo gettype(posix_strerror($errno))."\n";
 
 echo "Done";
 ?>
@@ -42,5 +42,5 @@ Warning: posix_strerror() expects exactly 1 parameter, 2 given in %s on line %d
 bool(false)
 
 -- Testing posix_strerror() function with invalid error number --
-string(%d) "Unknown error %d"
+string
 Done
index 40cfab2aadcf6f896c69c3dcea6bbf76c39b8f0e..83afb365ca787d7f8c82b2665e8ef29ba45c6cd4 100644 (file)
@@ -73,7 +73,7 @@ $values = array(
 
 foreach($values as $value) {
       echo "\nArg value $value \n";
-      var_dump( posix_strerror($value) );
+      echo gettype(posix_strerror($value))."\n";
 };
 
 echo "Done";
@@ -86,87 +86,87 @@ Notice: Undefined variable: undefined_var in %s on line %d
 Notice: Undefined variable: unset_var in %s on line %d
 
 Arg value 10.5 
-string(18) "No child processes"
+string
 
 Arg value -10.5 
-string(%d) "Unknown error %d"
+string
 
 Arg value 101234567000 
-string(%d) "Unknown error %d"
+string
 
 Arg value 1.07654321E-9 
-string(7) "Success"
+string
 
 Arg value 0.5 
-string(7) "Success"
+string
 
 Arg value Array 
 
 Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d
-bool(false)
+boolean
 
 Arg value Array 
 
 Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d
-bool(false)
+boolean
 
 Arg value Array 
 
 Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d
-bool(false)
+boolean
 
 Arg value Array 
 
 Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d
-bool(false)
+boolean
 
 Arg value Array 
 
 Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d
-bool(false)
+boolean
 
 Arg value  
-string(7) "Success"
+string
 
 Arg value  
-string(7) "Success"
+string
 
 Arg value 1 
-string(23) "Operation not permitted"
+string
 
 Arg value  
-string(7) "Success"
+string
 
 Arg value 1 
-string(23) "Operation not permitted"
+string
 
 Arg value  
-string(7) "Success"
+string
 
 Arg value  
 
 Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d
-bool(false)
+boolean
 
 Arg value  
 
 Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d
-bool(false)
+boolean
 
 Arg value string 
 
 Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d
-bool(false)
+boolean
 
 Arg value string 
 
 Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d
-bool(false)
+boolean
 
 Arg value  
-string(7) "Success"
+string
 
 Arg value  
-string(7) "Success"
+string
 
 Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d