#22594 [Bgs]: sprintf functionality altered from previous version. ?bug
| From: | moriyoshi@php.net | Date: | Tue, 15 Apr 2003 03:42:15 +0000 |
| Subject: | #22594 [Bgs]: sprintf functionality altered from previous version. ?bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37685@lists.php.net to get a copy of this message | ||
ID: 22594
Updated by: moriyoshi@php.net
Reported By: wreetz at greenapple dot com
Status: Bogus
Bug Type: Strings related
Operating System: BSDI 4.2
PHP Version: 4.3.1
New Comment:
The new behaviour is wrong indeed. See bug #22227
Previous Comments:
------------------------------------------------------------------------
[2003-03-07 15:03:30] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The new behavior is the correct one :-))
------------------------------------------------------------------------
[2003-03-07 14:57:30] wreetz at greenapple dot com
sprintf in 4.2.1 & 4.3.1 gives different results.
<?PHP
$s='truncate';
echo sprintf(" %8.5s",$s);
?>
Results:
4.2.1: trunc
4.3.1: truncate
I Don't know if this is a new bug, an intended change, was a bug in
4.2.1 that's now fixed, or ?
Thanks,
Wendy
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22594&edit=1