#26993 [NEW]: [s]printf produces no output when too few arguments

From: Date: Wed, 21 Jan 2004 14:55:07 +0000
Subject: #26993 [NEW]: [s]printf produces no output when too few arguments
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53699@lists.php.net to get a copy of this message
From: z-php at bart dot w-wa dot pl Operating system: Linux (Fedora Core 1) PHP version: 4.3.4 PHP Bug Type: Feature/Change Request Bug description: [s]printf produces no output when too few arguments Description: ------------ "printf(): Too few arguments in..." is a warning, not an error. Yet, printf with too few arguments produces no output at all. IMHO, it should assume missing arguments to be NULL (empty string, 0 etc.). Reproduce code: --------------- printf('This will not print anything at all %s'); Expected result: ---------------- output: "This will not print anything at all " Actual result: -------------- Output: nothing. Only warning message if you have them turned on. -- Edit bug report at http://bugs.php.net/?id=26993&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26993&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26993&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26993&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26993&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26993&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26993&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26993&r=support Expected behavior: http://bugs.php.net/fix.php?id=26993&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26993&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26993&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26993&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26993&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26993&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26993&r=float

« previous php.bugs (#53699) next »