cvs: pear / AllTests.php

From: Date: Thu, 05 Jul 2007 06:13:06 +0000
Subject: cvs: pear / AllTests.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-47861@lists.php.net to get a copy of this message
cweiske Thu Jul 5 06:13:06 2007 UTC Modified files: /pear AllTests.php Log: Seems there are packages without an _ in name http://cvs.php.net/viewvc.cgi/pear/AllTests.php?r1=1.11&r2=1.12&diff_format=u Index: pear/AllTests.php diff -u pear/AllTests.php:1.11 pear/AllTests.php:1.12 --- pear/AllTests.php:1.11 Thu Jul 5 06:08:50 2007 +++ pear/AllTests.php Thu Jul 5 06:13:06 2007 @@ -170,7 +170,9 @@ foreach ($arPackages as $strPackageName) { $arParts = explode('_', $strPackageName); //we don't need the class file name - array_pop($arParts); + if (count($arParts) > 1) { + array_pop($arParts); + } $strParts = $strMyDir . '/' . $strPackageName; foreach ($arParts as $strPart) { $strFullerPath = $strParts . '/' . $strPart; @@ -201,7 +203,9 @@ foreach ($arPackages as $strPackageName) { $arParts = explode('_', $strPackageName); //we don't need the class file name - array_pop($arParts); + if (count($arParts) > 1) { + array_pop($arParts); + } $arPackDirs = array(); $strParts = $strMyDir . '/' . $strPackageName;

« previous php.pear.cvs (#47861) next »