Skip to content

Commit 14fc3d1

Browse files
committed
Fix GH-12297: PHP Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown on line
On some configurations, the COMPILE_DL_MYSQLND must come from config.h. If it isn't set, the get_module function won't be exposed, resulting in a failure when trying to load the library. It's the same issue ext/fileinfo had a while back that was fixed in b0ba368. Closes GH-12299.
1 parent 82a84d0 commit 14fc3d1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ PHP NEWS
2222
. Fixed bug GH-12282 (IntlDateFormatter::construct should throw an exception
2323
on an invalid locale). (David Carlier)
2424

25+
- MySQLnd:
26+
. Fixed bug GH-12297 (PHP Startup: Invalid library (maybe not a PHP library)
27+
'mysqlnd.so' in Unknown on line). (nielsdos)
28+
2529
- PCRE:
2630
. Fixed bug GH-11956 (Backport upstream fix, PCRE regular expressions with
2731
JIT enabled gives different result). (nielsdos)

ext/mysqlnd/php_mysqlnd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
+----------------------------------------------------------------------+
1616
*/
1717

18+
#ifdef HAVE_CONFIG_H
19+
#include "config.h"
20+
#endif
1821
#include "php.h"
1922
#include "mysqlnd.h"
2023
#include "mysqlnd_priv.h"

0 commit comments

Comments
 (0)