Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39955 invoked by uid 1010); 31 Aug 2003 15:07:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39912 invoked from network); 31 Aug 2003 15:07:46 -0000 Received: from unknown (HELO bagend.shire) (67.124.12.145) by pb1.pair.com with SMTP; 31 Aug 2003 15:07:46 -0000 Received: (qmail 19469 invoked by uid 1000); 31 Aug 2003 15:11:49 -0000 Date: Sun, 31 Aug 2003 15:11:49 +0000 To: internals@lists.php.net Message-ID: <20030831151149.GC16462@bagend.shire> Mail-Followup-To: internals@lists.php.net References: <1062302408.2724.33.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1062302408.2724.33.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): > > $email->body = "This is a test email. Testing c:\test\foo.exe"; > > When the $email object is later broke down and stored in the database > addslashes is done (as it should be) before the variable is stored. > > If you check the database though, no slashes were added to the string. addslashes() is working properly. What you're experiencing is the database servers' translation of '\\' -> '\'. The documentation on addslashes explains this: http://php.net/addslashes > I am doing something wrong (or did I misunderstand something) or is this > in fact a bug? I have tested it on PHP 4.2, 4.3.2, and 4.3.3 and the btw, you should post these questions to the php-general list, especially when you are in doubt if you're using the function properly. Curt -- "I used to think I was indecisive, but now I'm not so sure."