main
members
work
about me
avatar
Paul(admin)
post

PHP 5.3.0 NTS doesn't load some modules

Post replyCan't edit post
Watch topicCan't delete post
Wednesday, November 11 2009, 13:25
This puzzled me for a bit: I downloaded the latest version of PHP for Windows, 5.3.0 non-thread-safe (NTS). Since PHP is only running in a single process, I thought I'd grab the faster non-threaded version.
As a result, many of my modules stopped loading, including php_gd, php_mysql and php_openssl, extensions you really can't live without.
I only really noticed the problem when all my locally hosted sites reported "DB Error: extension not found." Looking in Apache's error.log, the problem was revealed:
Warning:  PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
The moral of this story: save yourself the headache. Download the thread-safe PHP binaries instead.
Rating:
Actions:Post replyWatch topic
No comments.Post reply

More updates

Click here to read more news items.
Members have extra privileges. You can login or register.
© 2005–2012 P. F. Lammertsma
No members currently online; 605 hits today by 137 unique users