Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9653 invoked from network); 14 Oct 2008 12:11:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2008 12:11:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=johncart@cisco.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=johncart@cisco.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cisco.com designates 144.254.224.140 as permitted sender) X-PHP-List-Original-Sender: johncart@cisco.com X-Host-Fingerprint: 144.254.224.140 ams-iport-1.cisco.com Received: from [144.254.224.140] ([144.254.224.140:24201] helo=ams-iport-1.cisco.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/13-25867-A5C84F84 for ; Tue, 14 Oct 2008 08:11:06 -0400 X-IronPort-AV: E=Sophos;i="4.33,409,1220227200"; d="scan'208";a="22562043" Received: from ams-dkim-1.cisco.com ([144.254.224.138]) by ams-iport-1.cisco.com with ESMTP; 14 Oct 2008 12:11:03 +0000 Received: from ams-core-1.cisco.com (ams-core-1.cisco.com [144.254.224.150]) by ams-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id m9ECB3Jd003506 for ; Tue, 14 Oct 2008 14:11:03 +0200 Received: from xbh-ams-332.emea.cisco.com (xbh-ams-332.cisco.com [144.254.231.87]) by ams-core-1.cisco.com (8.13.8/8.13.8) with ESMTP id m9ECB3P0010978 for ; Tue, 14 Oct 2008 12:11:03 GMT Received: from xmb-ams-33e.emea.cisco.com ([144.254.231.75]) by xbh-ams-332.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 14 Oct 2008 14:11:03 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 14 Oct 2008 14:08:58 +0200 Message-ID: In-Reply-To: <941E2BA9-750D-4ADD-B633-6C63B92A1C6C@pooteeweet.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Deprecate define_syslog_variables in 5.3 Thread-Index: Ackt0ImkVGGo5OfDS8GNQdOKyYkC8gAJLajA References: <2dedb8a0810131904x523ffceau26c9ab299baf66fa@mail.gmail.com> <941E2BA9-750D-4ADD-B633-6C63B92A1C6C@pooteeweet.org> To: X-OriginalArrivalTime: 14 Oct 2008 12:11:03.0600 (UTC) FILETIME=[EDC33300:01C92DF5] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=1477; t=1223986263; x=1224850263; c=relaxed/simple; s=amsdkim1002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=johncart@cisco.com; z=From:=20=22John=20Carter=20-X=20(johncart=20-=20PolicyApp= 20Ltd=20at=20Cisco)=22=20 |Subject:=20RE=3A=20[PHP-DEV]=20Deprecate=20define_syslog_v ariables=20in=205.3 |Sender:=20; bh=ckpwZRyy1UVDQcmiLhFqvXx/VocNee5quoVe96TOoGE=; b=CHE6BwDyphFhrjAUp03u7amBkktlVsNRZ+r6o6ygsQh6te+xXneaJTsb8o rYylilJI80YLmqdv6zsa0p3tT9y/2Mp7+kVDdMoCdqpGGevZW1xM0BgX9cXt 2e01MyRc/H; Authentication-Results: ams-dkim-1; header.From=johncart@cisco.com; dkim=pass ( sig from cisco.com/amsdkim1002 verified; ); Subject: RE: [PHP-DEV] Deprecate define_syslog_variables in 5.3 From: johncart@cisco.com ("John Carter -X (johncart - PolicyApp Ltd at Cisco)") We use syslog a lot. I've always found define_syslog_variables to be pointless and frankly a little bizarre. +1 on this. John. -----Original Message----- From: Lukas Kahwe Smith [mailto:mls@pooteeweet.org]=20 Sent: 14 October 2008 08:42 To: Kalle Sommer Nielsen Cc: PHP Development Subject: Re: [PHP-DEV] Deprecate define_syslog_variables in 5.3 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=20 > unsure if its intentional to keep this old functionality in PHP,=20 > 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=20 > removed in HEAD. I agree. Fixing your code is easy (just remove the call to =20 define_syslog_variables() and the $ in front of LOG), maintains BC =20 with older PHP releases. On the up side this function could create an insanely hard to debug =20 problem for users, is redundant and was a very bad idea from the start =20 (and the docs seem incorrect too). That being said I never used this function or the constants in my =20 code. So is there anyone that does actually use it and has some =20 objection? regards, Lukas Kahwe Smith mls@pooteeweet.org --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php