Doc #69119 [Opn->Asn]: Unconstancies in mysql_escape_string web page

From: Date: Thu, 26 Feb 2015 20:14:12 +0000
Subject: Doc #69119 [Opn->Asn]: Unconstancies in mysql_escape_string web page
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11974@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69119&edit=1 ID: 69119 Updated by: aharvey@php.net Reported by: daniel dot duclos2 at gmail dot com Summary: Unconstancies in mysql_escape_string web page -Status: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem PHP Version: 5.5.22 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: Good catch: we were a bit too liberal in applying deprecation warnings when the extension was deprecated in 5.5 and added them to functions that were already deprecated, like mysql_escape_string(). I'll do a sweep through and clean that up. My recollection — and sadly 3v4l is down, so I can't check this right now — is that we "soft deprecated" (deprecated in the manual, but not in the code) mysql_escape_string() and a few other functions in 5.3, so the warning is probably correct, but I'll check that when I can. Previous Comments: ------------------------------------------------------------------------ [2015-02-25 11:32:03] daniel dot duclos2 at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=69119&edit=1

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