#33700 [NEW]: mysql_real_escape_string does NOT require a mysql connection

From: Date: Thu, 14 Jul 2005 15:54:37 +0000
Subject: #33700 [NEW]: mysql_real_escape_string does NOT require a mysql connection
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369130@lists.php.net to get a copy of this message
From: colder@php.net Operating system: WinXP PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: mysql_real_escape_string does NOT require a mysql connection Description: ------------ mysql_real_ecape_string does not require a mysql connection. That makes the first note wrong: "Note: A MySQL connection is required before using mysql_real_escape_string() otherwise an error of level E_WARNING is generated, and FALSE is returned. If link_identifier isn't defined, the last MySQL connection is used." This function doesn't generate a WARNING and doesn't return FALSE when no connexion is available. I don't know when this behavior changed so I'm unable to provide a patch, sorry. -- Edit bug report at http://bugs.php.net/?id=33700&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33700&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33700&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33700&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33700&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33700&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33700&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33700&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33700&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33700&r=support Expected behavior: http://bugs.php.net/fix.php?id=33700&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33700&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33700&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33700&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33700&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33700&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33700&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33700&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33700&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33700&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33700&r=mysqlcfg

« previous php.doc (#969369130) next »