[PHP-DEV] Bug #1952: s/printf mishandles leading-zero padding with negative values From: Ken.Coar <email protected>
Date: 08/03/99

From: Ken.Coar <email protected>
Operating system: RH Linux 5.2
PHP version: 3.0 Latest CVS (03/08/1999)
PHP Bug Type: Misbehaving function
Bug description: s/printf mishandles leading-zero padding with negative values

<?php
    printf("%05d\n", -400);
?>

results in a display of "0-400" instead of "-0400".

I built mod_php3 from the latest CVS as of to-day, with only the mysql additional
module.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>