Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97257 invoked from network); 6 Feb 2009 19:13:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2009 19:13:32 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.184 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.128.184 fk-out-0910.google.com Received: from [209.85.128.184] ([209.85.128.184:40642] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/1B-59347-BDB8C894 for ; Fri, 06 Feb 2009 14:13:31 -0500 Received: by fk-out-0910.google.com with SMTP id b27so855413fka.7 for ; Fri, 06 Feb 2009 11:13:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=dNL3w9uZE3NdeS4lGypSM4ylQ11UPg9m1gY/DtyKxTk=; b=L7c2nHFoQNxhj8N2zb0rUmhvDWgIPTtKlhwjXwgRuMtmcs0adylA5WAwD/D8nhp3qX fG2GqUv0cy8bYkkiVLL8BkH/w6SJ1HLEYtVW7F0vcQJWtyfQgWzkr5QlCuzBZk7UUT2O m2jl/JY/YxLRwB5wnysYhjIgFYAviM0TynfR8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=H1F3HsYYsp8t2oFzy/56NBAPi6KVqhlEOrnAyTe/BfUYnzM3oVeDBRVqZvRlg/w614 3N42Q6YZdLzNPU7nV+hGbCGcZ6U53M5eQdgwLuSl5CbGTogBbE40mQH/y+R5TIKt6vhP aJ7auU6NmtEXxCYXHWRIoKJ/4RndS+6feYobg= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.223.114.79 with SMTP id d15mr1794320faq.88.1233947183386; Fri, 06 Feb 2009 11:06:23 -0800 (PST) Date: Fri, 6 Feb 2009 20:06:23 +0100 X-Google-Sender-Auth: bd0a4756e6dbd67f Message-ID: <2dedb8a0902061106p4333682g56a1ec29196e7f3e@mail.gmail.com> To: Internals Content-Type: multipart/mixed; boundary=001636c59672898f97046244b7aa Subject: Throwing E_DEPRECATED on startup From: kalle@php.net (Kalle Sommer Nielsen) --001636c59672898f97046244b7aa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit G'day I'd like to propose a change for when PHP starts to throw an E_DEPRECATED notice for each of the deprecated ini directives (such as register_globals, safe_mode ect.) like in HEAD where they just throw a warning (more about that below). I have attached a patch for this in 5.3 (which is the only branch this patch really relates to). As you can see in the patch, I've also changed the zend.ze1_compatibility_mode to throw an fatal error instead of a previously warning which forces people to update their php.ini or refactor their script to use newer and better behavior. Speaking of changing to a fatal error, I would also like to propose to do the same in HEAD (which I've also attached a patch to). I'd like to include this in the next 5.3 release, whether its Beta 2 or RC1, feedback are welcome! -- Kalle Sommer Nielsen --001636c59672898f97046244b7aa--