Bug #15881: a new format char for sprintf kind function

From: Date: Tue, 05 Mar 2002 16:23:52 +0000
Subject: Bug #15881: a new format char for sprintf kind function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1700@lists.php.net to get a copy of this message
From: Xuefer@21cn.com Operating system: all PHP version: 4.1.2 PHP Bug Type: Feature/Change Request Bug description: a new format char for sprintf kind function i've ask ppl in irc EFnet #php. none of them like runtime magic quote. so....... i would like to have the following feature: -> sprintf("%S", $string); which is the same function as addslashes($string); and i can do as the following: -> mysql_query(sprintf("UPDATE mytable SET abc='%S'", $string)); i think this would make a great change to those php-sql scripts -- Edit bug report at http://bugs.php.net/?id=15881&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15881&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15881&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15881&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15881&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15881&r=support Expected behavior: http://bugs.php.net/fix.php?id=15881&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15881&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15881&r=submittedtwice

« previous php.bugs (#1700) next »