Skip to content

Commit b8c23ef

Browse files
committed
Make printf() test not spit random bytes to debug on 32bits
1 parent e984a57 commit b8c23ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/tests/strings/printf.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $float_numbers = array( 0, 1, -1, 0.32, -0.32, 3.4. -3.4, 2.54, -2.54, 1.2345
1919
$int_variation = array( "%d", "%-d", "%+d", "%7.2d", "%-7.2d", "%07.2d", "%-07.2d", "%'#7.2d" );
2020
$int_numbers = array( 0, 1, -1, 23333333, -23333333, "1234" );
2121

22-
$char_variation = array( 'a', "a", 67, -67, 99 );
22+
$char_variation = array( 'a', "a", 67, -150 /* j */, 99 );
2323

2424
$string_variation = array( "%5s", "%-5s", "%05s", "%'#5s" );
2525
$strings = array( NULL, "abc", 'aaa' );
@@ -101,7 +101,7 @@ print_r($int_numbers);
101101
}
102102

103103

104-
/* Chararter type variations */
104+
/* Character type variations */
105105
echo "\n\n*** Output for char type ***\n";
106106
echo "\n Input Characters variation array is:\n";
107107
print_r($char_variation);
@@ -473,7 +473,7 @@ Array
473473
474474
475475
C
476-
476+
j
477477
c
478478

479479
*** Output for scientific type ***

0 commit comments

Comments
 (0)