Skip to content

Commit 539331a

Browse files
committed
Add i to F print f modifier for 32 bit floats written as ints?
1 parent 3f9c196 commit 539331a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/tests/offsets/test_offset_helpers.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function expectf_to_regex(string $wanted): string
8585
'%d' => '\d+',
8686
'%x' => '[0-9a-fA-F]+',
8787
'%f' => '[+-]?(?:\d+|(?=\.\d))(?:\.\d+)?(?:[Ee][+-]?\d+)?',
88-
'%F' => '([+-]?(?:\d+|(?=\.\d))(?:\.\d+)?(?:[Ee][+-]?\d+)?)|(NAN)|(INF)',
88+
'%F' => '([+-]?(?:\d+|(?=\.\d))(?:\.\d+)?(?:[Ee][+-]?\d+)?)|(NAN)|(INF)|([+-]?\d+)',
8989
'%c' => '.',
9090
'%0' => '\x00',
9191
]);

0 commit comments

Comments
 (0)