arm - How to use dynamically loaded extensions on cross-compiled PHP? -
i have compiled php arm platform. i'm trying dynamically load extension i've compiled arm via php.ini (extension=...). however, extension not loaded , no errors reported.
things i've checked:
- php reading in correct php.ini file
- i can see changes made php.ini file -i option
- -d "extension=...", no extension loaded, no error.
- enable_dl=1, dl(...) command line doesn't work ("dynamic modules not supported in command line code")
php compiled following options:
./configure --host=arm-linux --target=arm -prefix=/php-5.5.8/_install --with-sqlite3 --without-pdo-sqlite --without-pear --disable-mbregex --enable-sockets --enable-fpm --enable-json --enable-session --enable-filter --disable-opcache --disable-libxml --disable-simplexml --without-zlib --disable-all
does have --disable-all option? there have enable dynamic extensions (even enable_dl, can't run dl(...) command line)? have statically compile extension php?
edit: statically linking extension works fine. it's not problem extension. more ideal able dynamically load extension.
the extension's support seams disabled configure script when try cross-compile php.
you check on cross-compiled cli
:~>php -i |grep dynamic dynamic library support not available<br />.
if use extension have 2 ways: - hack configure script manualy enable extension's support, bypassing checks - use native compiler target system
i used second one, loading extensions on arm native-compiled php 5.3.28
native complied cli
:~>php -i |grep dynamic dynamic library support => enabled
Comments
Post a Comment