Re: E_DEPRECATED and directives warnings
| From: | Christopher Jones | Date: | Mon, 08 Nov 2010 18:49:11 +0000 |
| Subject: | Re: E_DEPRECATED and directives warnings | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65665@lists.php.net to get a copy of this message | ||
On 11/04/2010 12:26 AM, eyal.t wrote:
Hi, Noticed that setting E_DEPRECATED on, causes the deprecated warnings only to show on directives that were set in php.ini (rather than those set during runtime by ini_set()). Furthermore, it throws those warning only on CLI execution as opposed to running in a webserver context. Is this actually the designated behaviour? As we're running the phpts in webserver context, many tests that expect this warning to be thrown (such as ext/session/tests/003) fail for us. So I guess for now, we should simply filter out 'Warning: Directive.*' warnings from the expected result?You might want to propose some enhancements to ini_set(). Another alternative is that your test framework can keep a list of deprecated directives and print a fake copy of the associated error message into the test log - but the filtering you suggest would probably be as effective. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/