Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96257 invoked from network); 18 Nov 2010 08:05:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 08:05:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:60797] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/55-60012-44ED4EC4 for ; Thu, 18 Nov 2010 03:05:24 -0500 Received: by qwi4 with SMTP id 4so269982qwi.29 for ; Thu, 18 Nov 2010 00:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=UQetf7IteI6s26AxXXMY8E02S/b/ntSWWsdMuGEEnRw=; b=eszneLb68X/9rJVo0uFIwCRkb5CJi7SxItP2WrHxWGHF93fITyepxgMKU3yVkhLMnL npEJjy8D23kLnEkh/uDlcUXpwJDMNqjBMxWhZfrOoKQ4CYYxN1Xf3ACaaboh3MDYD28G DTX7iL0IRS23IxwZGHLLRBnR/BDFNToeaZSfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=luMxfffmWQgsWKHWjN4Flfx5LOM+PYIjQV8quExIoj6orpJSpPC5H9RbjGK1l+vGMk ZFJfo55OpcMRiX3gDVI3gV5RNhLmeJnNp9DN6OVBHz3lwWZcFPmFLDTLMj0446GsjD8g MrM1UVwwg/Q6Cj/RtHEEZ+4EuHyUFA2X3h3HQ= MIME-Version: 1.0 Received: by 10.224.20.9 with SMTP id d9mr290304qab.228.1290067522065; Thu, 18 Nov 2010 00:05:22 -0800 (PST) Sender: kalle.php@gmail.com Received: by 10.220.185.69 with HTTP; Thu, 18 Nov 2010 00:05:22 -0800 (PST) In-Reply-To: <887FE7CFF6F8DE4BB3A9535F53AFD06A2C5A4581@il-ex2.zend.net> References: <6628E909-5B8E-4FB4-A28F-ECAF7FCA27AB@roshambo.org> <201011172340.37217.larry@garfieldtech.com> <887FE7CFF6F8DE4BB3A9535F53AFD06A2C5A4581@il-ex2.zend.net> Date: Thu, 18 Nov 2010 09:05:22 +0100 X-Google-Sender-Auth: hV3Ieqys4bj76JcFOs1nuY3PYto Message-ID: To: Zeev Suraski Cc: Larry Garfield , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Magic quotes in trunk From: kalle@php.net (Kalle Sommer Nielsen) 2010/11/18 Zeev Suraski : > The voice of reason... > As much as I'd like to see magic quotes burning in hell (had the option t= o kill them when they were small, but unfortunately didn't), I'm wondering = whether the people +1'ing are thinking about the potential consequences to = doing this, and if they're also volunteering to respond (nicely!!) to the e= ndless complaints, flames, and just general "what happened???!!!" mailing l= ist emails that may flood us when this happens. =A0With 6.0, we talked abou= t having prepend-scripts that emulate magic quotes available, since like it= or not - there are probably billions of lines of code out there that rely = on the existence of magic quotes. > I don't have a strong opinion on whether we should remove magic quotes al= together in 5.4 and provide emulation instructions, or just disable it by d= efault as a first step. I think we either should kill it or disable it now and remove it in the next major version of PHP, be that 5.5 or 6.0. I don't think we should provide emulation instructions, but rather some improved chapters in the manual about what they are, how they work and how to make sure applications are "protected" / compatible against them, so even the basis PHP developer takes it into consideration. Because even doing: $mysqli->query('SELECT * FROM `developers` WHERE `username` =3D \'' . $_GET['username'] . '\'); is bad with or without magic_quotes, theres a security issue non the less if people are writing code like that. I think we need to better educate our developers about these features, and I wouldn't mind writing some manual pages regarding this we can advertise with the release. Or at least find out how big a problem with would be, because there are still many companies with legacy code applications running an ancient version of PHP and never would upgrade or similar reasons. But all in all, I think it depends on us advertising it properly in the manual, how to deal with it that is. --=20 regards, Kalle Sommer Nielsen kalle@php.net