Re: [PHP-DEV] Deprecated functions

[email protected] (Stas Malyshev)
Newsgroups php.internals
Organization SugarCRM
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.