Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55238 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68130 invoked from network); 5 Sep 2011 23:02:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2011 23:02:41 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:54239] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/75-25098-F05556E4 for ; Mon, 05 Sep 2011 19:02:40 -0400 Received: by yie16 with SMTP id 16so3883991yie.29 for ; Mon, 05 Sep 2011 16:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=aRf5Y8Zwjcuvspm+sY//tuEDas5FrTfATmM+RDZqejQ=; b=alz1kFXoz8Ywq6ja4J63YsDXrRoYk7KYvrF1Up+AJ7Q0X7GauhKYSAR/uhtq0iuntL SrlIIFSCNMCgrb2P7YBHuXwlfzkuYw7GuqpioPEkNS35uH4eLlMA2TkK3btQ2tgChJ8w AdXNMHggGTee6lO5ygqFtzzmW+QJ3bLk5lOT8= MIME-Version: 1.0 Received: by 10.236.37.202 with SMTP id y50mr20514546yha.101.1315263756916; Mon, 05 Sep 2011 16:02:36 -0700 (PDT) Received: by 10.147.168.14 with HTTP; Mon, 5 Sep 2011 16:02:36 -0700 (PDT) In-Reply-To: <4E65306E.8080901@sugarcrm.com> References: <4E65306E.8080901@sugarcrm.com> Date: Tue, 6 Sep 2011 01:02:36 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] REDIRECTTEST fails From: tyra3l@gmail.com (Ferenc Kovacs) On Mon, Sep 5, 2011 at 10:26 PM, Stas Malyshev wro= te: > Hi! > > I have the pdo_mysql common.phpt test failing on my config, specifically = the > REDIRECTTEST part. It is probably due to the way I run the tests, but oth= er > tests work fine, only this one is wrong. So my environment is like this: > My build directory in under php source in separate dir, so for 5.4 I'm > building in ~/php-5.4/cgi. I run tests like this: > > ~/php-5.4/cgi$ ./cliphp ../run-tests.php ../ext/pdo_mysql/tests/common.ph= pt > > Works just fine for most tests, but not for REDIRECTTEST, it returns: > > ERROR: cannot open directory: > ext/pdo/tests/PHP_5_4/ext/pdo_mysql/tests/common.phpt] > > The path it produces seems to be some weird combination of redirected pat= h, > my current dir and test's path, but I can't figure out how it gets there. > Any ideas? I see a relative path in ext/pdo_mysql/tests/common.phpt : $config =3D array( 'TESTS' =3D> 'ext/pdo/tests' ); could you try setting that to: $config =3D array( 'TESTS' =3D> dirname(__FILE__).'/ext/pdo/tests' ); --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu