Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4812 invoked by uid 1010); 31 Aug 2003 18:57:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4786 invoked from network); 31 Aug 2003 18:57:50 -0000 Received: from unknown (HELO bagend.shire) (67.124.12.145) by pb1.pair.com with SMTP; 31 Aug 2003 18:57:50 -0000 Received: (qmail 41971 invoked by uid 1000); 31 Aug 2003 19:01:53 -0000 Date: Sun, 31 Aug 2003 19:01:53 +0000 To: internals@lists.php.net Message-ID: <20030831190153.GG16462@bagend.shire> Mail-Followup-To: internals@lists.php.net References: <1062302408.2724.33.camel@localhost> <20030831151149.GC16462@bagend.shire> <1062346210.552.17.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1062346210.552.17.camel@localhost> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] Looking for comments whether this is a bug or not From: php-dev@zirzow.dyndns.org (Curt Zirzow) * Thus wrote Jeremy Johnstone (jsjohnst@altdns.net): > On Sun, 2003-08-31 at 10:11, Curt Zirzow wrote: > > * Thus wrote Jeremy Johnstone (jsjohnst@altdns.net): > > You might want to check the documentation again as it does not say > anything about the db server translating \\ into \. This seems highly > illogical, because if thats the case then addslashes("This is Jeremy's > test of c:\test\foo.exe") would get corrupted when you strippedslashes > after you pulled it back out of the database. If this is the case, which > database servers translate this way? I will then make sure I go update > the documentation accordingly. I suppose it doesn't say that directly but it does explain what characters need to be quoted with the '\'. Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte). When to use stripslashes() and addslashes() depends on the php.ini setting 'magic_quotes_gpc', as noted in both of the functions documentation. > > > > btw, you should post these questions to the php-general list, > > especially when you are in doubt if you're using the function > > properly. > > > > Actually I was quite sure I was using the function correctly, I said > that in case I misunderstood something in the documentation and thus > needed to update the documentation accordingly. I was letting you know that in future posts, questions regarding proper use of functions or finding bugs should be posted to the php-general list. Curt -- "I used to think I was indecisive, but now I'm not so sure."