Doc #69119 [NEW]: Unconstancies in mysql_escape_string web page

From: Date: Wed, 25 Feb 2015 11:32:03 +0000
Subject: Doc #69119 [NEW]: Unconstancies in mysql_escape_string web page
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11972@lists.php.net to get a copy of this message
From: daniel dot duclos2 at gmail dot com Operating system: PHP version: 5.5.22 Package: Documentation problem Bug Type: Documentation Problem Bug description:Unconstancies in mysql_escape_string web page Description: ------------ --- From manual page: http://www.php.net/function.mysql-escape-string --- There are 2 pink warning boxes which seem to be not consistant : the first one says that the function is deprecated since 5.5.0 while the second says it is since 5.3.0. My experience is that the function works with 5.3 but not with 5.4. In the second case, PHP sends a warning indicateing that the function is deprecated. Test script: --------------- 1st warning (in French) : Avertissement Cette extension est obsolète depuis PHP 5.5.0, et sera supprimée dans le futur. À la place, les extensions MySQLi ou PDO_MySQL doivent être utilisées. Voir aussi le guide MySQL : choix de l'API ainsi que la FAQ associée pour plus d'information. Voici les alternatives à cette fonction : mysqli_escape_string() PDO::quote() 2nd warning Avertissement Cette fonction est OBSOLETE depuis PHP 5.3.0. Nous vous encourageons vivement à ne plus l'utiliser. -- Edit bug report at https://bugs.php.net/bug.php?id=69119&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69119&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69119&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69119&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69119&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69119&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69119&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69119&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69119&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69119&r=support Expected behavior: https://bugs.php.net/fix.php?id=69119&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69119&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69119&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69119&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69119&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69119&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69119&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69119&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69119&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69119&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69119&r=mysqlcfg

« previous php.doc.bugs (#11972) next »