Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:543 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77908 invoked from network); 31 Mar 2003 14:21:47 -0000 Received: from unknown (HELO ammma.de) (213.83.39.131) by pb1.pair.com with SMTP; 31 Mar 2003 14:21:47 -0000 Received: from ammma.net (ammma.net [62.225.101.66]) by ammma.de (8.11.6/8.11.6/AMMMa AG) with ESMTP id h2VELQR20814 for ; Mon, 31 Mar 2003 16:21:26 +0200 Received: from neo.wg.de (jan.ammma.mil [192.168.100.11]) by ammma.net (8.9.3/8.9.3/AMMMa AG) with ESMTP id QAA24467 for ; Mon, 31 Mar 2003 16:21:43 +0200 Received: by neo.wg.de (Postfix, from userid 30) id 9884367B36; Mon, 31 Mar 2003 16:21:44 +0200 (CEST) Received: from ammma.net (ammma.net [62.225.101.66]) by jan.dip.ammma.net (Horde) with HTTP for ; Mon, 31 Mar 2003 16:21:44 +0200 Message-ID: <1049120504.4e3ce44aaa4a6@jan.dip.ammma.net> X-Priority: 3 (Normal) Date: Mon, 31 Mar 2003 16:21:44 +0200 To: internals@lists.php.net References: <20030331124553.14192.qmail@pb1.pair.com> <20030331131228.GA2502@lxr> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Subject: Re: [PHP-DEV] magic_quotes_sybase and php_stripslashes From: jan@horde.org (Jan Schneider) Quoting Jani Taskinen : > Heh..so magic_quotes_sybase ini setting affects how stripslashes() > function works too? Pretty high WTF factor there. It should be > an additional option for php_stripslashes() that is passed where > appropriate. As long as it affects addslashes() it should also affect stripslashes(). The WTF factor would be even higher else. > On Mon, 31 Mar 2003, Sander Roobol wrote: > > >On Mon, Mar 31, 2003 at 03:45:13PM +0200, moshe doron wrote: > >> could some1 explain the first if here (php_stripslashes:cybase mode) > >> http://lxr.php.net/source/php4/ext/standard/string.c#2324 > >> that have nothing with slashes but with quotes? > > > >Sybase escapes ' with '' and NUL with \0 so we needed a special > >version of php_stripslashes(). > > > >Sander > > > >> > >> could this if be removed safely? Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft