Bug #77609 [Csd->ReO]: Tests from mailparse extension fails
| From: | remi@php.net | Date: | Wed, 20 Mar 2019 08:52:10 +0000 |
| Subject: | Bug #77609 [Csd->ReO]: Tests from mailparse extension fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220092@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77609&edit=1
ID: 77609
Updated by: remi@php.net
Reported by: ralf dot habacker at freenet dot de
Summary: Tests from mailparse extension fails
-Status: Closed
+Status: Re-Opened
Type: Bug
Package: *Mail Related
Operating System: linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
re-opened as current fix breaks everything.
See comment on https://github.com/php/php-src/commit/3ead67239419632eecb83f0f101ead2021ee6c14
Previous Comments:
------------------------------------------------------------------------
[2019-03-01 21:46:14] petk@php.net
Automatic comment on behalf of ralf.habacker@freenet.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3ead67239419632eecb83f0f101ead2021ee6c14
Log: Fix #77609: Tests from mailparse extension fails
------------------------------------------------------------------------
[2019-02-28 22:46:41] petk@php.net
The following pull request has been associated:
Patch Name: Add installed php extensions to temporary created ini file
On GitHub: https://github.com/php/php-src/pull/3898
Patch: https://github.com/php/php-src/pull/3898.patch
------------------------------------------------------------------------
[2019-02-13 00:15:43] ralf dot habacker at freenet dot de
> PHP_DEPRECATED_DIRECTIVES_REGEX =
> '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
Was the intention perhaps to exclude (zend_extension|extension_debug)?
Changing this lead to the next issue:
At https://github.com/php/php-src/blob/dd8e59da8f5aafd9d77a0f1f17e5e272d09f643f/Makefile.global#L100
there is php called with -d extension_dir=.. expecting installed extensions in a local build dir.
Running make test now returns
Warning: PHP Startup: Unable to load dynamic library
'/home/ralf/src/pecl-mail-mailparse-build/modules/pdo.so' -
/home/ralf/src/pecl-mail-mailparse-build/modules/pdo.so: cannot open shared object file: No such
file or directory in Unknown on line 0
------------------------------------------------------------------------
[2019-02-12 23:59:40] ralf dot habacker at freenet dot de
The definition of PHP_DEPRECATED_DIRECTIVES_REGEX is https://github.com/php/php-src/blob/6e3600f41b95d97d11ef48f817e6389a4ee95091/Makefile.global#L86
------------------------------------------------------------------------
[2019-02-12 23:56:33] ralf dot habacker at freenet dot de
> Maybe I'm missing something important, but did you actually build PHP with mbstring
> support?
yes
> Does php -m list mbstring?
yes
The problem is that running 'make test' in a phpize'd build creates a custom php ini
file not including the installed extensions. In principal there is code to include installed php
related config files (see https://github.com/php/php-src/blob/master/Makefile.global#L99),
but extensions are excluded by PHP_DEPRECATED_DIRECTIVES_REGEX, which is
Makefile:130:PHP_DEPRECATED_DIRECTIVES_REGEX =
'^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=77609
--
Edit this bug report at https://bugs.php.net/bug.php?id=77609&edit=1