ID:               23894
 User updated by:  s dot masugata at digicom dot dnp dot co dot jp
 Reported By:      s dot masugata at digicom dot dnp dot co dot jp
 Status:           Verified
 Bug Type:         Strings related
 Operating System: RedHat Linux6.2J
 PHP Version:      4.3.2
 Assigned To:      moriyoshi
 New Comment:

printf does not operate, either.

<?
$A = -1;
printf( "%02d:", $A );
?>

reslt:[-1]

4.1.2 or 4.3.1:

reslt:[-1:]


Previous Comments:
------------------------------------------------------------------------

[2003-05-30 05:12:17] s dot masugata at digicom dot dnp dot co dot jp

Operation of sprintf is amusing.
<?
$A = -1;
echo bin2hex( sprintf( "%02d:", $A ) );
phpinfo( );
?>

reslt:[2d31003a]

NULL is added.
It's satisfactory at 4.1.2 or 4.3.1.

An environmental problem?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23894&edit=1

Reply via email to