#39998 [Asn->Bgs]: php.exe in downloadable .ZIP package compiled with different API than modules

From: Date: Tue, 02 Jan 2007 03:45:04 +0000
Subject: #39998 [Asn->Bgs]: php.exe in downloadable .ZIP package compiled with different API than modules
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107096@lists.php.net to get a copy of this message
ID: 39998 Updated by: edink@php.net Reported By: solomierdaybasura at yahoo dot es -Status: Assigned +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 5.2.0 Assigned To: edink New Comment: The distro files are fine. You have most likely a mix up of two (or more) PHP installs. Previous Comments: ------------------------------------------------------------------------ [2007-01-01 20:09:29] solomierdaybasura at yahoo dot es Description: ------------ I've downloaded PHP 5.2.0 from .ZIP and from the installer for windows. They do not contain the same php.exe file. php.exe in the .ZIP file is compiled with an old API (20050922), as I constantly got errors from module such as MySQL/MySQLi extensions not working because they are compiled with API 20060613. However, the files provided with the installer DO WORK, as php.exe is compiled correctly and matches the modules' API. Reproduce code: --------------- - Download PHP 5.2.0 .zip package (windows binaries) from http://www.php.net/downloads.php - Uncompress and place php.ini under c:\windows, properly configure it to activate mysql and mysqli extensions. - Type 'php -m' on the command line Expected result: ---------------- [PHP Modules] . . mysql mysqli . . [Zend Modules] Actual result: -------------- PHP Warning: PHP Startup: mysql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20050922 These options need to match ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39998&edit=1

« previous php.bugs (#107096) next »