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

From: Date: Wed, 06 Mar 2002 18:19:05 +0000
Subject: Bug #15881 Updated: a new format char for sprintf kind function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1813@lists.php.net to get a copy of this message
ID: 15881 Updated by: Xuefer@21cn.com Reported By: Xuefer@21cn.com Status: Open Bug Type: Feature/Change Request Operating System: all PHP Version: 4.1.2 New Comment: notice that it's capital "%S" not "%s" or any other unused char Previous Comments: ------------------------------------------------------------------------ [2002-03-05 11:23:52] Xuefer@21cn.com 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 this bug report at http://bugs.php.net/?id=15881&edit=1

« previous php.bugs (#1813) next »