Re: Deprecated functions
| From: | Stas Malyshev | Date: | Mon, 15 Sep 2014 06:27:55 +0000 |
| Subject: | Re: Deprecated functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77210@lists.php.net to get a copy of this message | ||
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/