Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77210 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16091 invoked from network); 15 Sep 2014 06:27:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2014 06:27:59 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 173.203.6.139 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 173.203.6.139 smtp139.ord.emailsrvr.com Linux 2.6 Received: from [173.203.6.139] ([173.203.6.139:48463] helo=smtp139.ord.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/86-64534-EE686145 for ; Mon, 15 Sep 2014 02:27:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp30.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id 6D21528008E; Mon, 15 Sep 2014 02:27:56 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp30.relay.ord1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 1B44B280092; Mon, 15 Sep 2014 02:27:56 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (c-73-53-124-150.hsd1.wa.comcast.net [73.53.124.150]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Mon, 15 Sep 2014 06:27:56 GMT Message-ID: <541686EB.1020401@sugarcrm.com> Date: Sun, 14 Sep 2014 23:27:55 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Tjerk Meesters , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Deprecated functions From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The above are, as far as I’m concerned, all potential candidates for > removal in PHP 7, so in order to reliably test a deprecated function > I would suggest introducing a hidden function with this signature: > > void __deprecated__() { } > > And mark that function as eternally deprecated using the > ZEND_ACC_DEPRECATED flag. If this is needed only for testing, this should only be enabled with ZEND_DEBUG flag active. Like leak() one. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/