mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
fix tests
This commit is contained in:
parent
e54a855955
commit
8204525427
@ -39,7 +39,7 @@ foreach($resource_values as $resource_value) {
|
||||
|
||||
// closing the resources
|
||||
fclose($fp);
|
||||
fclose($dfp);
|
||||
closedir($dfp);
|
||||
|
||||
|
||||
echo "Done";
|
||||
@ -48,32 +48,32 @@ echo "Done";
|
||||
*** Testing sprintf() : scientific formats with resource values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) "%f"
|
||||
string(1) "e"
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) "%f"
|
||||
string(1) "e"
|
||||
string(%d) " %d.000000e+0"
|
||||
string(%d) "%d.000000e+0 "
|
||||
string(%d) " %d.000000e+0"
|
||||
string(%d) " %f"
|
||||
string(%d) "%f "
|
||||
string(%d) " %f"
|
||||
string(%d) "
|
||||
%d.000000e+0"
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) " %d.000000e+0"
|
||||
%f"
|
||||
string(%d) "%f"
|
||||
string(%d) "%s%f"
|
||||
string(4) "0-1]"
|
||||
string(1) "e"
|
||||
|
||||
-- Iteration 2 --
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) "%f"
|
||||
string(1) "e"
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) "%f"
|
||||
string(1) "e"
|
||||
string(%d) " %d.000000e+0"
|
||||
string(%d) "%d.000000e+0 "
|
||||
string(%d) " %d.000000e+0"
|
||||
string(%d) " %f"
|
||||
string(%d) "%f "
|
||||
string(%d) " %f"
|
||||
string(%d) "
|
||||
%d.000000e+0"
|
||||
string(%d) "%d.000000e+0"
|
||||
string(%d) " %d.000000e+0"
|
||||
%f"
|
||||
string(%d) "%f"
|
||||
string(30) "%s%f"
|
||||
string(4) "0-1]"
|
||||
string(1) "e"
|
||||
Done
|
||||
|
@ -12,11 +12,14 @@ echo "*** Testing sprintf() : integer formats with resource values ***\n";
|
||||
// resource type variable
|
||||
$fp = fopen (__FILE__, "r");
|
||||
$dfp = opendir ( dirname(__FILE__) );
|
||||
|
||||
$fp_copy = $fp;
|
||||
$dfp_copy = $dfp;
|
||||
|
||||
// array of resource types
|
||||
$resource_types = array (
|
||||
$fp,
|
||||
$dfp
|
||||
$fp_copy,
|
||||
$dfp_copy
|
||||
);
|
||||
|
||||
// various integer formats
|
||||
@ -38,7 +41,7 @@ foreach($resource_types as $res) {
|
||||
|
||||
// closing the resources
|
||||
fclose($fp);
|
||||
fclose($dfp);
|
||||
closedir($dfp);
|
||||
|
||||
|
||||
echo "Done";
|
||||
@ -53,8 +56,8 @@ string(%d) " %d"
|
||||
string(%d) " %d"
|
||||
string(%d) "
|
||||
%d"
|
||||
string(%d) " %d"
|
||||
string(4) "0-9]"
|
||||
string(%d) "%s%d"
|
||||
string(%d) "0-9]"
|
||||
string(1) "d"
|
||||
|
||||
-- Iteration 2 --
|
||||
@ -64,7 +67,7 @@ string(%d) " %d"
|
||||
string(%d) " %d"
|
||||
string(%d) "
|
||||
%d"
|
||||
string(%d) " %d"
|
||||
string(4) "0-9]"
|
||||
string(%d) "%s%d"
|
||||
string(%d) "0-9]"
|
||||
string(1) "d"
|
||||
Done
|
||||
|
Loading…
Reference in New Issue
Block a user