Re: bad test case that depends on user local ini

From: Date: Mon, 31 Dec 2007 11:44:10 +0000
Subject: Re: bad test case that depends on user local ini
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-34292@lists.php.net to get a copy of this message
On Sun, 2007-12-30 at 14:47 +0100, Christian Hoffmann wrote: > problems unfixed. Just consider the following scenario: You've got an > existing PHP installation. Let's assume you are using Apache w/ a > multi-threaded mpm and as such have built php with zts. All your > extensions are built with zend thread safety as well, of course. Then > you decide that switching to another web server and using FastCGI might > be better, as such you turn off zts for the new build as you don't need > it anymore. Building works fine, but suddenly almost all tests are > starting to fail. Why? Because run-tests.php uses the global php.ini > file and tries to load your zts extensions which cannot work for obvious > reasons. But then the installed php wouldn't work either unless you fix the php.ini first. :) Besides, the 'make test' does NOT include the extension lines from the php.ini. I added a fix for this long time ago to only load those shared extensions which were currently build. Not sure in what PHP version it was included in..but it is in the current PHP_5_2 branch. --Jani -- Patches/Donations: http://pecl.php.net/~jani/

« previous php.internals (#34292) next »