Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28088 invoked by uid 1010); 16 Jun 2005 17:15:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28073 invoked from network); 16 Jun 2005 17:15:23 -0000 Received: from unknown (HELO zend.com) (127.0.0.1) by localhost with SMTP; 16 Jun 2005 17:15:23 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:46508] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 3E/2F-20931-AA3B1B24 for ; Thu, 16 Jun 2005 13:15:23 -0400 Received: (qmail 29795 invoked from network); 16 Jun 2005 17:15:20 -0000 Received: from localhost (HELO zeev-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 16 Jun 2005 17:15:20 -0000 Message-ID: <5.1.0.14.2.20050616201504.04588450@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 16 Jun 2005 20:15:20 +0300 To: "Sara Golemon" Cc: internals@lists.php.net In-Reply-To: References: <20050616163021.80366.qmail@web50807.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: In regards to E_STRICT and PHP5 From: zeev@zend.com (Zeev Suraski) At 19:57 16/06/2005, Sara Golemon wrote: > > If there is any merit to E_STRICT as it stands currently I find it to > > be negated by the fact that it throws messages for completely > > acceptable code that the engine is both willing and capable of > > handling. If var is not acceptable, I think it should be removed as a > > keyword. If it is acceptable, the engine shouldn't complain about it. > > (of course, I think it is acceptable.) > > >Answer: No, it's not acceptable. But expecting everyone out there using PHP >to update their code (which they probably didn't write themselves anyway) is >even more unacceptable. Solution: Throw no warnings in the default error >reporting level, but provide a hook for script developers to find the code >that needs changing. > >If anything, E_STRICT needs expanding. For example, zend_function_entry >should have a flag to indicate deprecation. When a deprecated method is >called: zend_error(E_STRICT, "Call to deprecated function %s()", fname); I think that's a good idea. Zeev