Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11921 invoked from network); 30 Jul 2008 14:12:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2008 14:12:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:39463] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/7C-60483-BD670984 for ; Wed, 30 Jul 2008 10:12:44 -0400 Received: from 247.Red-81-46-168.staticIP.rima-tde.net (socks3.corp.yahoo.com [216.145.54.15]) (authenticated bits=0) by mail.lerdorf.com (8.14.3/8.14.3/Debian-5) with ESMTP id m6UECaJa030400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 30 Jul 2008 07:12:39 -0700 Message-ID: <489076D3.8000106@lerdorf.com> Date: Wed, 30 Jul 2008 16:12:35 +0200 User-Agent: Thunderbird/3.0a2pre (Macintosh; 2008071516) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.lerdorf.com [204.11.219.139]); Wed, 30 Jul 2008 07:12:40 -0700 (PDT) Subject: PEAR Build fix From: rasmus@lerdorf.com (Rasmus Lerdorf) Could someone please fix this: Generating phar.php Generating phar.phar Pear package PHP_Archive found: API Version: 1.0.0 (stable). Pear package PHP_Archive or Archive.php class file not found. clicommand.inc directorygraphiterator.inc directorytreeiterator.inc invertedregexiterator.inc pharcommand.inc phar.inc Build complete. Don't forget to run 'make test'. The problem is that in phar.php it does a pear list-files PHP_Archive This outputs a bunch of filenames ending with: test /usr/local/lib/php/test/PHP_Archive/tests/test_require.php test /usr/local/lib/php/test/PHP_Archive/tests/test_tar.tar test /usr/local/lib/php/test/PHP_Archive/tests/twophars.phpt php /usr/local/lib/php/PHP/Archive.php in phar.php the regex to check if Archive.php exists looks like this: if (preg_match(",^php[ \t]+([^ \t].*pear[\\\\/]PHP[\\\\/]Archive.php)$,", $ent, $matches)) { which is obviously not going to match that last Archive.php line. So, two fixes here. First, fix the error message to more accurately describe what is going on. And second, assuming /usr/local/lib/php/PHP/Archive.php is the right file here, fix the regex. -Rasmus