Bug #1952: s/printf mishandles leading-zero padding with negative values

From: Date: Tue, 03 Aug 1999 18:40:47 +0000
Subject: Bug #1952: s/printf mishandles leading-zero padding with negative values
Groups: php.dev 
Request: Send a blank email to php-dev+get-9480@lists.php.net to get a copy of this message
From: Ken.Coar@Golux.Com 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.

« previous php.dev (#9480) next »