Re: svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ real-escape-string.xml
| From: | Peter Cowburn | Date: | Thu, 22 Sep 2011 14:42:46 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ real-escape-string.xml | ||
| References: | 1 2 | Groups: | php.doc php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-8844@lists.php.net to get a copy of this message | ||
On 22 September 2011 15:39, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
> On Thu, Sep 22, 2011 at 12:23, Peter Cowburn <salathe@php.net> wrote:
>> salathe Thu, 22 Sep 2011 10:23:50 +0000
>>
>> Revision:
>> http://svn.php.net/viewvc?view=revision&revision=317146
>>
>> Log:
>> note on parameter order (doc #55757, thanks Sherif Ramadan)
>>
>> Bug: https://bugs.php.net/55757 (Assigned) mysqli vs.
>> mysql_* use of real escape string
>>
>> Changed paths:
>> U phpdoc/en/trunk/reference/mysqli/mysqli/real-escape-string.xml
>>
>> Modified: phpdoc/en/trunk/reference/mysqli/mysqli/real-escape-string.xml
>> ===================================================================
>> --- phpdoc/en/trunk/reference/mysqli/mysqli/real-escape-string.xml 2011-09-22
>> 09:58:45 UTC (rev 317145)
>> +++ phpdoc/en/trunk/reference/mysqli/mysqli/real-escape-string.xml 2011-09-22
>> 10:23:50 UTC (rev 317146)
>> @@ -137,6 +137,20 @@
>> </example>
>> </refsect1>
>>
>> + <refsect1 role="notes">
>> + &reftitle.notes;
>> + <note>
>> + <para>
>> + For those accustomed to using
>> <function>mysql_real_escape_string</function>,
>> + note that the arguments of
>> <function>mysqli_real_escape_string</function>
>> + differ from what <function>mysql_real_escape_string</function> expects.
>> + The <parameter>link</parameter> identifier comes first in
>> + <function>mysqli_real_escape_string</function>, whereas the string to be
>> escaped
>> + comes first in <function>mysql_real_escape_string</function>.
>> + </para>
>> + </note>
>> + </refsect1>
>
>
> That is true with all the mysql[i]_*() functions.
> mysql_ takes the (optional) link identifier as the latter parameter,
> while the mysqli_ ones require it - and it is the first parameter..
>
> With that in mind, is this really needed?
Good question. Lets see what the phpdoc list thinks. :)
>
> -Hannes
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>