Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3837 invoked by uid 1010); 16 Jun 2005 16:58:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3822 invoked from network); 16 Jun 2005 16:58:01 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 16 Jun 2005 16:58:01 -0000 X-Host-Fingerprint: 169.229.139.92 dhcp-139-92.OHR.Berkeley.EDU Received: from ([169.229.139.92:23820] helo=localhost.localdomain) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id E5/DA-20931-49FA1B24 for ; Thu, 16 Jun 2005 12:57:56 -0400 Message-ID: To: internals@lists.php.net References: <20050616163021.80366.qmail@web50807.mail.yahoo.com> Date: Thu, 16 Jun 2005 09:57:49 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Posted-By: 169.229.139.92 Subject: Re: In regards to E_STRICT and PHP5 From: pollita@php.net ("Sara Golemon") > 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); -Sara