From:             lester at lsces dot co dot uk
Operating system: Linux
PHP version:      5.4.6
Package:          MySQLi related
Bug Type:         Bug
Bug description:Problems building a shared mysqlnd extension

Description:
------------
This may be by design, but it is also being claimed that it does in fact
work, so the main object of this bug report is to get a documented
confirmation of the situation.
Fixed bug http://bugs.php.net/55609 (mysqlnd cannot be built shared).
(Johannes)  identifies the problem as having been fixed, but Rasmus claims
that it is not intended that mysqlnd should be built stand alone?
In any case when building as an apache2 module, a shared module is created,
but will not load with apache.  

Test script:
---------------
./configure --with-apxs2=/opt/apache2/bin/apxs --prefix=/opt/php5
--with-config-file-path=/opt/apache2/conf
--with-config-file-scan-dir=/opt/apache2/conf/php5.d
--enable-mysqlnd=shared --with-mysqli=shared 

I'm sure that should be a "--with-mysqli=mysqlnd,shared" but that stops
building of ./configure with a "can't find mysql" (Bug 50393)

Expected result:
----------------
mysqlnd.so and mysqli.so in the modules directory., which can be moved into
the running PHP installation.

Actual result:
--------------
When loading mysqlnd.so via apache, it fails with an PHP Warning:  PHP
Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown
on line 0 on the latest build, but I've also had
"Unable to load dynamic library '/opt/php5/ext/mysqlnd.so' -
/opt/php5/ext/mysqlnd.so: undefined symbol: executor_globals in Unknown on
line 0"  So I am going to recheck everything on the next machine that needs
updating

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62880&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62880&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62880&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62880&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62880&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62880&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62880&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62880&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62880&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62880&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62880&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62880&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62880&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62880&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62880&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62880&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62880&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62880&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62880&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62880&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62880&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62880&r=mysqlcfg

Reply via email to