From: wreetz at greenapple dot com
Operating system: BSDI 4.2
PHP version: 4.3.1
PHP Bug Type: Strings related
Bug description: sprintf functionality altered from previous version. ?bug
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 bug report at http://bugs.php.net/?id=22594&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22594&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22594&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22594&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22594&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22594&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22594&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22594&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22594&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22594&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22594&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22594&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22594&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22594&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22594&r=gnused