This is out of the error log:
PHP Warning: PHP Startup: BOPEE Extension: Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP compiled with build ID=API20090626,NTS,VC9
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: CustomExt Module: Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP compiled with build ID=API20090626,NTS,VC9
These options need to match
in Unknown on line 0
How I get the non-threadsafe source for PHP? The only download link I found on windows.php.net/download was http://windows.php.net/downloads/releases/php-5.3.2-src.zip and that appears to be the threadsafe code --- or is there some way of telling the source that it's actually non-threadsafe?
I have tried putting --disable-zts on the commandline for configure.bat but whilst that has a good effect on the outputs from configure.bat, it doesn't seem to make the source any less threadsafe.
In your case above, PHP itself is non-thread-safe (NTS), but the module is thread-safe (TS). The module is thread-safe because the Zend Thread-Safe ZTS constant is defined (either in the module's source code or in VS 2008's Preprocessor Definitions).
Simply changing ZTS=1 to ZTS=0 does not work.
You must completely remove the definition of ZTS.
Related
I'm getting the below warning while adding the solr-client extinctions.
PHP Warning: PHP Startup: solr: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match in Unknown on line 0
can any one Please hep me out in this ?
PHP Warning: PHP Startup: solr: Unable to initialize module
1:Check extension_dir directive in php.ini. It should point to folder with 5.2 modules.
2:This is because PHP extensions are developped in C, and are "close" to the internals of PHP -- which means that, if the APIs of those internals change, the extension must be re-compiled, to use the new versions.
And, between PHP 5.2 and PHP 5.3, for what I remember, there have been some modifications in the internal data-structures used by the PHP engine -- which means extensions must be re-compiled, in order to match that new version of those data-structures.
How to update your PHP extensions will depend on which system you are using.
If you are on windows, you can find the .dll for some extensions here : http://downloads.php.net/pierre/
For more informations about the different versions, you can take a look at what's said on the left-sidebar of windows.php.net.
If you are on Linux, you must either :
Check what your distribution provides
Or use the pecl command, to re-download the sources of the extensions in question, and re-compile them.
I installed the recent versions of xampp for windows and yaml on my PC with windows 8.1 64bit.
The versions were
xampp-win32-7.0.9-1-VC14-installer.exe
php_yaml-2.0.0rc8-7.0-ts-vc14-x86.zip
I put the line of extension=php_yaml.dll to the end of php.ini file.
I copied php_yaml.dll to C:/xampp/php/ext folder.
I copied yaml.dll to C:/xampp/apache/bin folder.
phpinfo(); command displayed that yaml was enabled.
But bad warning still appeared on command prompt when typing php command:
$ php
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The spec
ified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The specified
module could not be found.
in Unknown on line 0
See it on screenshots:
How to fix it?
Add ;C:\xampp\apache\bin to PATH Windows environment variable.
I fixed mine by downloading the correct version of yaml. The yaml Version has to match the installed PHP version. Make sure that you match the thread-safe and non-thread-safe option with your PHP aswell.
How to check if your PHP is thread-safe
I believe I have an issue with my PHP installation
When I type php into the command line, i get the following
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Can anyone advise?
I tried this - http://jason.pureconcepts.net/2014/11/install-apache-php-mysql-mac-os-x-yosemite/
As the author of that post, the issue is with the previously compiled modules pdo_pgsql and pgsql.
As noted in the comments, you will need to reinstall these modules for the Yosemite's of PHP (run php -v).
Steps for doing so with these specific modules has been answered already.
I just had the same issue and I don't use Postgres so I really didn't care for installing PEAR and then autoconfig, etc.
So I found that you can simply comment out those extensions in php.ini
To find the ini file location:
php -i | grep php.ini
And then comment out the above 2 extensions in the ini file. Mine was located at: /Library/Server/Web/Config/php/php.ini
I'm trying to get this extension to run on my PHP 5.4 installation. https://github.com/iliaal/php_excel
I've copied both libxl.dll and php_excel.dll into my ext folder. I'm running a IIS server on server2k8.
I however get these errors when starting my PHP engine.
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Invalid
library (maybe not a PHP library) 'libxl.dll' in Unknown on line 0
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Unable
to load dynamic library 'C:/PHP/ext/php_excel.dll' - The specified
module could not be found.
in Unknown on line 0
I've made sure that i've downloaded the correct file from the precompiled ftp site. http://windows.php.net/downloads/pecl/snaps/excel/20140606/
Does anyone have any tips, on what I might do wrong here?
This could be caused by the "thread safe (ts)" and "none thread safe (nts)" versions of the php binaries.
Maybe you have downloaded the nts version of php_excel.dll and are trying to use it with a ts version of php.
If you do that the error "The specified module could not be found." is thrown.
After compiling my own php extension using VC9 (2008) and VC10 (2010) using the next steps:
http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/
I get the next error when initializing php:
PHP Warning: PHP Startup: FirstPHPExt Module: Unable to initialize module
Module compiled with build ID=API20090626,TS
PHP compiled with build ID=API20090626,TS,VC9
These options need to match
in Unknown on line 0
Why it doesn't says that I compiled the module with VC9?
More info:
Operating System: Windows7 x64
PHP: 5.3.3,TS,VC9
Ok, I found the solution:
You must add a preprocessor constant into php-src/Zend/zend_build.h:
#define PHP_COMPILER_ID "VC9"
And it will work.
Solution found here: http://forums.zend.com/viewtopic.php?f=55&t=2045
The official documentation for building PHP and extensions is in the wiki.
You should create a config.w32 file to your extension and build it through the command line. That's the method that's officially supported.
And it is strongly recommended to use the same CRT (VC9) than php itself. There are known issues when mixed CRTs are used between apache, php or its extensions.