From: chris at arbo-com dot fr
Operating system: linux redhat 7.3 kernel 2.4.x
PHP version: 4.3.7
PHP Bug Type: Output Control
Bug description: output error on =printf
Description:
------------
when use printf with <?=printf
the output is not identical at older version of php
Now the printf send the true string, but add after the nombre of send
caractere.
the documentation of printf retur void et not the nombre of caractere
send.
Reproduce code:
---------------
<?
for($i=0; $i<=4; $i++)
{
?>
my line <?=printf("%02d<br>",$i) ?>
<?php
}
?>
Expected result:
----------------
with old version printf not send nombre of caractere write on flux.
Actual result:
--------------
my line 00
6my line 01
6my line 02
6my line 03
6my line 04
6
--
Edit bug report at http://bugs.php.net/?id=28809&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28809&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28809&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28809&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28809&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28809&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28809&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28809&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28809&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28809&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28809&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28809&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28809&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28809&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28809&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28809&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28809&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28809&r=float