Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35602 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49338 invoked by uid 1010); 19 Feb 2008 19:03:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49323 invoked from network); 19 Feb 2008 19:03:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 19:03:27 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:38055] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/5C-55225-DF72BB74 for ; Tue, 19 Feb 2008 14:03:27 -0500 Received: from [192.168.0.151] (77-57-23-243.dclient.hispeed.ch [77.57.23.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id 78A001224181; Tue, 19 Feb 2008 20:03:45 +0100 (CET) Cc: internals@lists.php.net Message-ID: <0CCD7542-1B7D-459B-A2A7-BFA0D70450DE@pooteeweet.org> To: clynx In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Tue, 19 Feb 2008 20:02:44 +0100 References: X-Mailer: Apple Mail (2.919.2) X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.135, required 6, AWL 0.04, RDNS_DYNAMIC 0.10) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: Re: [PHP-DEV] [RFC] Annotations From: mls@pooteeweet.org (Lukas Kahwe Smith) On 19.02.2008, at 00:22, clynx wrote: > I have thought about a new feature for some days now. The initial > plan was to create a new keyword "deprecated" which should simply > trigger a warning when the right error level was set. This could > have been combined with the E_DEPRECATED level from 5.3 (maybe, > otherwise E_STRICT). > > The goal was to have a possibility for PHP projects to mark some > functions, classes or methods as no longer recommend to use. The > first step would be to set this new keyword, and after some releases > the developers could remove this item. Just as it is handled in PHP > itself. > I know that there is a phpDoc property for this, but when you > execute your code you'll never realize that. Well the topic of annotations is a big one in its own right. However once we have E_DEPRECATED you can at least use trigger_error() to get your desired effect. regards, Lukas