Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86027 invoked by uid 1010); 31 Dec 2007 11:44:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86012 invoked from network); 31 Dec 2007 11:44:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2007 11:44:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.178 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.178 mho-01-bos.mailhop.org Received: from [63.208.196.178] ([63.208.196.178:57763] helo=mho-01-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/5A-02434-016D8774 for ; Mon, 31 Dec 2007 06:44:17 -0500 Received: from [81.22.163.71] (helo=[10.6.109.159]) by mho-01-bos.mailhop.org with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1J9J40-000LCk-Rz; Mon, 31 Dec 2007 11:44:13 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 81.22.163.71 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+ySR00ZSrVi52aLchk1DoUGu6gcjneWxs= Reply-To: jani.taskinen@iki.fi To: Christian Hoffmann Cc: phpxcache , php-dev List In-Reply-To: <4777A16D.9090309@gentoo.org> References: <28139bc0712291916y2874424eg889334eeb462db81@mail.gmail.com> <4777A16D.9090309@gentoo.org> Content-Type: text/plain Date: Mon, 31 Dec 2007 13:44:10 +0200 Message-ID: <1199101450.20679.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] bad test case that depends on user local ini From: jani.taskinen@sci.fi (Jani Taskinen) 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/