Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68870 invoked from network); 14 Oct 2008 07:42:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2008 07:42:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:60856] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/3E-36838-56D44F84 for ; Tue, 14 Oct 2008 03:42:29 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 1BD64414400B; Tue, 14 Oct 2008 07:43:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PtwgqAbh+LJD; Tue, 14 Oct 2008 09:43:50 +0200 (CEST) Received: from [192.168.80.161] (unknown [195.226.16.50]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 500124144009; Tue, 14 Oct 2008 09:43:50 +0200 (CEST) Cc: "PHP Development" Message-ID: <941E2BA9-750D-4ADD-B633-6C63B92A1C6C@pooteeweet.org> To: Kalle Sommer Nielsen In-Reply-To: <2dedb8a0810131904x523ffceau26c9ab299baf66fa@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 14 Oct 2008 09:41:59 +0200 References: <2dedb8a0810131904x523ffceau26c9ab299baf66fa@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) Subject: Re: [PHP-DEV] Deprecate define_syslog_variables in 5.3 From: mls@pooteeweet.org (Lukas Kahwe Smith) On 14.10.2008, at 04:04, Kalle Sommer Nielsen wrote: > Hello internals > > I've been looking at the function define_syslog_variables(), and I'm > unsure if its intentional to keep this old functionality in PHP, > seeing as define_syslog_variables defines a shortcut for each of the > LOG_* constants in the form of $LOG_*. > > Therefore I propose the function is being deprecated in 5.3 and > removed in HEAD. I agree. Fixing your code is easy (just remove the call to define_syslog_variables() and the $ in front of LOG), maintains BC with older PHP releases. On the up side this function could create an insanely hard to debug problem for users, is redundant and was a very bad idea from the start (and the docs seem incorrect too). That being said I never used this function or the constants in my code. So is there anyone that does actually use it and has some objection? regards, Lukas Kahwe Smith mls@pooteeweet.org