Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33052 invoked by uid 1010); 14 Mar 2007 19:34:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33036 invoked from network); 14 Mar 2007 19:34:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2007 19:34:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 69.46.103.200 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 69.46.103.200 mail.globalsuite.net Linux 2.5 (sometimes 2.4) (4) Received: from [69.46.103.200] ([69.46.103.200:43333] helo=mail.globalsuite.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/F7-61662-15E48F54 for ; Wed, 14 Mar 2007 14:34:41 -0500 Received: from mail.globalsuite.net (unknown [127.0.0.1]) by mail.globalsuite.net (Symantec Mail Security) with ESMTP id 9888830079; Wed, 14 Mar 2007 13:34:38 -0600 (MDT) X-AuditID: c0a8013c-afb1ebb000003f1f-d2-45f84e4e8e60 Received: from IPOfCard1.guest-tek.com (c207.134.68-130.clta.globetrotter.net [207.134.68.130]) by mail.globalsuite.net (Symantec Mail Security) with ESMTP id 18A3D30156; Wed, 14 Mar 2007 13:34:38 -0600 (MDT) Received: from ZARNIWOOP ([192.168.2.46]) by IPOfCard1.guest-tek.com (8.11.6/8.11.6) with ESMTP id l2EJYN521541; Wed, 14 Mar 2007 14:34:23 -0500 Date: Wed, 14 Mar 2007 20:34:32 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <622207866.20070314203432@marcus-boerger.de> To: Zoe Slattery CC: PHP Developers Mailing List In-Reply-To: <45F8173F.3010902@googlemail.com> References: <45F8173F.3010902@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Subject: Re: [PHP-DEV] php.ini and PHPT From: helly@php.net (Marcus Boerger) Hello Zoe, we decided to go the --INI-- route to test as many configurations as possible. And only for specific tests change specific ini settings as necessary. If one usees phpt as a test framework for his on web stuff then it might be a good idea to do as you suggested. You would simply do "php run-tests.php -c ". Hope this satisfies you :-) best regards marcus p.s.: Looking forward for new tests from your side Wednesday, March 14, 2007, 4:39:43 PM, you wrote: > Hi - I wonder if anyone could help me with a testing question? > We have written a few additional test cases for string functions which I > was about to check-in, then I noticed that the test cases pass OK if I > use the php.ini-dist file and fail if I don't specify an file (ie use > all default settings). > The difference turns out to the be the use of precision =12 in the > php.ini-dist, rather than the the default value of 14. > It's easy enough to work around this and ensure that test cases pass in > both environments with an --INI-- section in the test case, however - I > wondered if there would be any value in having a php-ini file that was > explicitly used for tests? > We had been using the php.ini-dist file because it's slightly easier to > be precise about the test environment if you can say what you are using > rather than saying "I'm using the default values". I also find it rather > too easy to get the wrong php.ini file accidentally :-( so specifying > one is easier, even if it only contains default values. > Zoe > IBM Best regards, Marcus