Re: ext/mysql in PECL and E_DEPRECATED (was: [VOTE] ext/mysql deprecation in 5.5)
| From: | Ángel González | Date: | Wed, 28 Nov 2012 18:09:39 +0000 |
| Subject: | Re: ext/mysql in PECL and E_DEPRECATED (was: [VOTE] ext/mysql deprecation in 5.5) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64081@lists.php.net to get a copy of this message | ||
I see it as simple to show E_DEPRECATED but not when installed from PECL.
1) Add a
int mysql_extension_triggers_deprecated_warning = 1;
And use it as a conditional for triggering the warning.
2) Copy the extension code to PECL
3) Add these changes in PECL
- If the mysql functions are not already registered,
register them with the bundled code.
- Set mysql_extension_triggers_deprecated_warning = 0;
4) That's it.