Re: 8.1.4: Who says "PHP deprecated addslashes since 4.0"? - Mailing list pgsql-general

From Erik Jones
Subject Re: 8.1.4: Who says "PHP deprecated addslashes since 4.0"?
Date
Msg-id 44770997.6040101@myemma.com
Whole thread Raw
In response to Re: 8.1.4: Who says "PHP deprecated addslashes since 4.0"?  (ljb <ljb220@mindspring.com>)
Responses Re: 8.1.4: Who says "PHP deprecated addslashes since
List pgsql-general
ljb wrote:
> tgl@sss.pgh.pa.us wrote:
>
>> ljb <ljb220@mindspring.com> writes:
>>
>>> |  addslashes() or magic_quotes. We note that these tools have been deprecated
>>> |  by the PHP group since version 4.0.
>>>
>>> Can anyone provide a source for the statement?
>>>
>> I'm not going to put words in Josh's mouth about where he got that from,
>> but anyone who reads all of the comments at
>> http://us3.php.net/manual/en/function.addslashes.php
>> ought to come away suitably unimpressed with the security of that
>> function.
>>
>
> Yes, sorry, I did see those comments, although I don't think they are from
> the PHP group themselves.  But I missed the statement on the pg_escape_string
> manual page saying "use of this function is recommended instead of
> addslashes()". I still think "since version 4.0" is wrong.
>
Better yet, use PEAR::DB or some other db abstraction package that will
handle all of this for you.

pgsql-general by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: delete is extremely slow
Next
From: Martijn van Oosterhout
Date:
Subject: Re: "make check" fails over NFS or tmpfs