diff options
Diffstat (limited to 'ext/standard/tests/strings/sprintf_variation23.phpt')
-rw-r--r-- | ext/standard/tests/strings/sprintf_variation23.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/strings/sprintf_variation23.phpt b/ext/standard/tests/strings/sprintf_variation23.phpt index 09e5b9fbb2..fc3148c0be 100644 --- a/ext/standard/tests/strings/sprintf_variation23.phpt +++ b/ext/standard/tests/strings/sprintf_variation23.phpt @@ -3,7 +3,7 @@ Test sprintf() function : usage variations - char formats with resource values --FILE-- <?php /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) - * Description: Return a formatted string + * Description: Return a formatted string * Source code: ext/standard/formatted_print.c */ @@ -20,8 +20,8 @@ $resource_values = array ( ); // array of char formats -$char_formats = array( - "%c", "%hc", "%lc", +$char_formats = array( + "%c", "%hc", "%lc", "%Lc", " %c", "%c ", "\t%c", "\n%c", "%4c", "%30c", "%[a-bA-B@#$&]", "%*c" @@ -30,7 +30,7 @@ $char_formats = array( $count = 1; foreach($resource_values as $resource_value) { echo "\n-- Iteration $count --\n"; - + foreach($char_formats as $format) { var_dump( sprintf($format, $resource_value) ); } |