RE: [PHP-DEV] run-tests.php improvement for PHP 7.0+
| From: | Anatol Belski | Date: | Mon, 09 May 2016 19:22:05 +0000 |
| Subject: | RE: [PHP-DEV] run-tests.php improvement for PHP 7.0+ | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93131@lists.php.net to get a copy of this message | ||
Hi Derick,
> -----Original Message-----
> From: Derick Rethans [mailto:derick@php.net]
> Sent: Monday, May 9, 2016 8:36 PM
> To: PHP Developers Mailing List <internals@lists.php.net>
> Cc: Anatol Belski <ab@php.net>
> Subject: [PHP-DEV] run-tests.php improvement for PHP 7.0+
>
> Hi!
>
> I've recently been having some looks at issues between xdebug and opcache,
> and this meant that I need to write a test case for it.
>
> Ages ago I added support for the "--EXTENSIONS--" section in .phpt files,
to load
> extensions that the test 'depends' on. Each item would be added to the php
> invocation as a "-dextension=name.so". For opcache however, that needs to
be
> "-dzend_extension=opcache.so".
>
> The attached patch checks for opcache in the list of extensions and then
uses
> zend_extension=. I'd like to have this in PHP 7.0 and trunk - any
objections?
>
IMHO fine for 7.0. Not that much zend_extension's do exist, so hardcoding
some is simpler than adding yet another section.
Regards
Anatol