Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63888 invoked from network); 31 Mar 2003 14:02:49 -0000 Received: from unknown (HELO cs78146114.pp.htv.fi) (62.78.146.114) by pb1.pair.com with SMTP; 31 Mar 2003 14:02:49 -0000 Received: from localhost (jani@localhost) by cs78146114.pp.htv.fi (8.11.6/8.11.6) with ESMTP id h2VE2nT28179; Mon, 31 Mar 2003 17:02:49 +0300 X-Authentication-Warning: cs78146114.pp.htv.fi: jani owned process doing -bs Date: Mon, 31 Mar 2003 17:02:49 +0300 (EEST) Sender: jani@cs78146114.pp.htv.fi Reply-To: Jani Taskinen To: moshe doron cc: internals@lists.php.net In-Reply-To: <20030331131228.GA2502@lxr> Message-ID: References: <20030331124553.14192.qmail@pb1.pair.com> <20030331131228.GA2502@lxr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] magic_quotes_sybase and php_stripslashes From: sniper@iki.fi (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. --Jani 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? >> >> tnx >> moshe. >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > -- <- For Sale! ->