|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-10-23 07:28 UTC] public at grik dot net
Description:
------------
after building php and running make test an error comes out
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' - dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
a test script with dl('pdo_mysql.so'); does not give any error
Test script:
---------------
$ configure --with-pdo-mysql=shared; make; make test
Expected result:
----------------
=====================================================================
PHP_SAPI : cli
PHP_VERSION : 7.0.0RC5
ZEND_VERSION: 3.0.0-dev
PHP_OS : Darwin - Darwin airgri.Dlink 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
INI actual : /usr/local/src/php-7.0.0RC5/tmp-php.ini
More .INIs :
CWD : /usr/local/src/php-7.0.0RC5
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2015-10-23 10:17:07
=====================================================================
...
Actual result:
--------------
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' - dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
Referenced from: /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so
Expected in: flat namespace
in /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' - dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
Referenced from: /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so
Expected in: flat namespace
in /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so in Unknown on line 0
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 08:00:01 2025 UTC |
Hello this issue has been fixed in recent PHP versions. Now "make test" and run-tests.php script also automatically load the shared extensions from the modules directory. The "make test" does this automatically, when running run-tests.php manually, the -d extension_dir=/path/to/php-src/modules need to be passed, for example, like this: ./sapi/cli/php run-tests.php -d extension_dir=modules path/to/php-src/ext/foo/tests Probably running the raw run-tests.php script could be improved a bit further at some point also to do this more intuitively. In case you're still experiencing similar issues, please report back at https://github.com/php/php-src/issues Thank you.