Skip to content

Commit

Permalink
Fix GH-12297: PHP Startup: Invalid library (maybe not a PHP library) …
Browse files Browse the repository at this point in the history
…'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.
  • Loading branch information
nielsdos committed Sep 26, 2023
1 parent 82a84d0 commit 14fc3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ PHP NEWS
. Fixed bug GH-12282 (IntlDateFormatter::construct should throw an exception
on an invalid locale). (David Carlier)

- MySQLnd:
. Fixed bug GH-12297 (PHP Startup: Invalid library (maybe not a PHP library)
'mysqlnd.so' in Unknown on line). (nielsdos)

- PCRE:
. Fixed bug GH-11956 (Backport upstream fix, PCRE regular expressions with
JIT enabled gives different result). (nielsdos)
Expand Down
3 changes: 3 additions & 0 deletions ext/mysqlnd/php_mysqlnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
+----------------------------------------------------------------------+
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "mysqlnd.h"
#include "mysqlnd_priv.h"
Expand Down

0 comments on commit 14fc3d1

Please sign in to comment.