TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
461 B
19 lines
461 B
--TEST--
|
|
Bug #23894 (sprintf() decimal specifiers problem) 64bit version
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$a = -12.3456;
|
|
$test = sprintf("%04d", $a);
|
|
var_dump($test, bin2hex($test));
|
|
$test = sprintf("% 13u", $a);
|
|
var_dump($test, bin2hex($test));
|
|
?>
|
|
--EXPECT--
|
|
string(4) "-012"
|
|
string(8) "2d303132"
|
|
string(20) "18446744073709551604"
|
|
string(40) "3138343436373434303733373039353531363034"
|
|
|