cvs: pear-core / package-PEAR.xml package2.xml /PEAR Common.php /PEAR/Frontend CLI.php /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php
/tests/PEAR_Common test_bug5717.phpt /tests/PEAR_PackageFile/v1 test_bug5717.phpt /tests/PEAR_PackageFile_v2_Validator test_bug5717.phpt
| From: | Greg Beaver | Date: | Wed, 19 Oct 2005 04:11:30 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml package2.xml /PEAR Common.php /PEAR/Frontend CLI.php /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php /tests/PEAR_Common test_bug5717.phpt /tests/PEAR_PackageFile/v1 test_bug5717.phpt /tests/PEAR_PackageFile_v2_Validator test_bug5717.phpt |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-35699@lists.php.net to get a copy of this message | ||
cellog Wed Oct 19 00:11:30 2005 EDT
Added files:
/pear-core/tests/PEAR_Common test_bug5717.phpt
/pear-core/tests/PEAR_PackageFile/v1 test_bug5717.phpt
/pear-core/tests/PEAR_PackageFile_v2_Validator test_bug5717.phpt
Modified files:
/pear-core/PEAR Common.php
/pear-core/PEAR/Frontend CLI.php
/pear-core/PEAR/PackageFile v1.php
/pear-core/PEAR/PackageFile/v2 Validator.php
/pear-core package-PEAR.xml package2.xml
Log:
* fix Bug #5717: analyzeSourceCode() fails to process certain
quote situations properly
* fix running of post-install scripts with empty or no paramgroup
in CLI frontend
move to 1.4.3 preparation in package.xml
add tests for bug 5717
http://cvs.php.net/diff.php/pear-core/PEAR/Common.php?r1=1.147&r2=1.148&ty=u Index: pear-core/PEAR/Common.php diff -u pear-core/PEAR/Common.php:1.147 pear-core/PEAR/Common.php:1.148 --- pear-core/PEAR/Common.php:1.147 Sun Sep 11 13:51:06 2005 +++ pear-core/PEAR/Common.php Wed Oct 19 00:11:21 2005 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Common.php,v 1.147 2005/09/11 17:51:06 cellog Exp $ + * @version CVS: $Id: Common.php,v 1.148 2005/10/19 04:11:21 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1.0 * @deprecated File deprecated since Release 1.4.0a1 @@ -712,6 +712,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/PEAR/Frontend/CLI.php?r1=1.55&r2=1.56&ty=u Index: pear-core/PEAR/Frontend/CLI.php diff -u pear-core/PEAR/Frontend/CLI.php:1.55 pear-core/PEAR/Frontend/CLI.php:1.56 --- pear-core/PEAR/Frontend/CLI.php:1.55 Sun Sep 18 19:03:08 2005 +++ pear-core/PEAR/Frontend/CLI.php Wed Oct 19 00:11:26 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CLI.php,v 1.55 2005/09/18 23:03:08 cellog Exp $ + * @version CVS: $Id: CLI.php,v 1.56 2005/10/19 04:11:26 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -273,7 +273,10 @@ $answers = $this->confirmDialog($group['param']); } } - if ($answers) { + if ((isset($answers) && $answers) || !isset($group['param'])) { + if (!isset($answers)) { + $answers = array(); + } array_unshift($completedPhases, $group['id']); if (!$script->run($answers, $group['id'])) { $script->run($completedPhases, '_undoOnError'); http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.64&r2=1.65&ty=u Index: pear-core/PEAR/PackageFile/v1.php diff -u pear-core/PEAR/PackageFile/v1.php:1.64 pear-core/PEAR/PackageFile/v1.php:1.65 --- pear-core/PEAR/PackageFile/v1.php:1.64 Tue Oct 18 20:43:10 2005 +++ pear-core/PEAR/PackageFile/v1.php Wed Oct 19 00:11:27 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v1.php,v 1.64 2005/10/19 00:43:10 cellog Exp $ + * @version CVS: $Id: v1.php,v 1.65 2005/10/19 04:11:27 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -1401,6 +1401,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.79&r2=1.80&ty=u Index: pear-core/PEAR/PackageFile/v2/Validator.php diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.79 pear-core/PEAR/PackageFile/v2/Validator.php:1.80 --- pear-core/PEAR/PackageFile/v2/Validator.php:1.79 Tue Oct 18 20:38:58 2005 +++ pear-core/PEAR/PackageFile/v2/Validator.php Wed Oct 19 00:11:27 2005 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Validator.php,v 1.79 2005/10/19 00:38:58 cellog Exp $ +// $Id: Validator.php,v 1.80 2005/10/19 04:11:27 cellog Exp $ /** * Private validation class used by PEAR_PackageFile_v2 - do not use directly, its * sole purpose is to split up the PEAR/PackageFile/v2.php file to make it smaller @@ -1779,6 +1779,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.287&r2=1.288&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.287 pear-core/package-PEAR.xml:1.288 --- pear-core/package-PEAR.xml:1.287 Sat Oct 8 19:44:42 2005 +++ pear-core/package-PEAR.xml Wed Oct 19 00:11:28 2005 @@ -66,25 +66,18 @@ </maintainer> </maintainers> <release> - <version>1.4.2</version> - <date>2005-10-08</date> + <version>1.4.3</version> + <date>2005-10-18</date> <license>PHP License</license> <state>stable</state> <notes> Minor bugfix release - - * fix issues with API for adding tasks to package2.xml - * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps - * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 - * fix Bug #5527: No need for cpp - * fix Bug #5529: configure options in package.xml 2.0 will be ignored - * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 - * fix Bug #5531: adding of installconditions/binarypackage/configure options - to extsrc may fail - * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace - * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error - * fix Bug #5619: pear makerpm produces invalid .spec dependancy code - * fix Bug #5629: pear install http_download dies with bad error message + * fix installation of files named like ".test" + * fix base class for writeable unixeol/windowseol classes + * fix running of post-install scripts with empty or no paramgroup + in CLI frontend + * fix Bug #5717: analyzeSourceCode() fails to process certain + quote situations properly </notes> <provides type="class" name="OS_Guess"/> <provides type="class" name="System"/> @@ -477,5 +470,27 @@ * fix Bug #5513: PEAR 1.4 does not install non-pear.php.net packages </notes> </release> + <release> + <version>1.4.2</version> + <date>2005-10-08</date> + <license>PHP License</license> + <state>stable</state> + <notes> + Minor bugfix release + + * fix issues with API for adding tasks to package2.xml + * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps + * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 + * fix Bug #5527: No need for cpp + * fix Bug #5529: configure options in package.xml 2.0 will be ignored + * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 + * fix Bug #5531: adding of installconditions/binarypackage/configure options + to extsrc may fail + * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error + * fix Bug #5619: pear makerpm produces invalid .spec dependancy code + * fix Bug #5629: pear install http_download dies with bad error message + </notes> + </release> </changelog> </package> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.179&r2=1.180&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.179 pear-core/package2.xml:1.180 --- pear-core/package2.xml:1.179 Sat Oct 8 19:44:42 2005 +++ pear-core/package2.xml Wed Oct 19 00:11:28 2005 @@ -65,9 +65,9 @@ <email>mj@php.net</email> <active>no</active> </helper> - <date>2005-10-08</date> + <date>2005-10-18</date> <version> - <release>1.4.2</release> + <release>1.4.3</release> <api>1.4.0</api> </version> <stability> @@ -77,19 +77,12 @@ <license uri="http://www.php.net/license">PHP License</license> <notes> Minor bugfix release - - * fix issues with API for adding tasks to package2.xml - * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps - * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 - * fix Bug #5527: No need for cpp - * fix Bug #5529: configure options in package.xml 2.0 will be ignored - * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 - * fix Bug #5531: adding of installconditions/binarypackage/configure options - to extsrc may fail - * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace - * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error - * fix Bug #5619: pear makerpm produces invalid .spec dependancy code - * fix Bug #5629: pear install http_download dies with bad error message + * fix installation of files named like ".test" + * fix base class for writeable unixeol/windowseol classes + * fix running of post-install scripts with empty or no paramgroup + in CLI frontend + * fix Bug #5717: analyzeSourceCode() fails to process certain + quote situations properly </notes> <contents> <dir name="/"> @@ -587,5 +580,33 @@ * fix Bug #5513: PEAR 1.4 does not install non-pear.php.net packages </notes> </release> + <release> + <version> + <release>1.4.2</release> + <api>1.4.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2005-10-08</date> + <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <notes> + Minor bugfix release + + * fix issues with API for adding tasks to package2.xml + * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps + * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 + * fix Bug #5527: No need for cpp + * fix Bug #5529: configure options in package.xml 2.0 will be ignored + * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 + * fix Bug #5531: adding of installconditions/binarypackage/configure options + to extsrc may fail + * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error + * fix Bug #5619: pear makerpm produces invalid .spec dependancy code + * fix Bug #5629: pear install http_download dies with bad error message + </notes> + </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_Common/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_Common/test_bug5717.phpt +++ pear-core/tests/PEAR_Common/test_bug5717.phpt --TEST-- PEAR_Common->analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $testdir = $statedir; @mkdir($testdir); $fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test1.php', 'w'); fwrite($fp, '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>'); fclose($fp); $res = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test1.php'); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => $testdir . DIRECTORY_SEPARATOR . 'test1.php', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt +++ pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt --TEST-- PEAR_PackageFile_v1->_analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Parser'. DIRECTORY_SEPARATOR . 'test_basicparse'. DIRECTORY_SEPARATOR . 'package.xml'; $val = &$parser->parse(implode('', file($pathtopackagexml)), $pathtopackagexml); $val->validate(PEAR_VALIDATE_NORMAL); // setup purposes only $testdir = $statedir; @mkdir($testdir); $fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test1.php', 'w'); fwrite($fp, '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>'); fclose($fp); $res = $val->_analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test1.php'); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => $testdir . DIRECTORY_SEPARATOR . 'test1.php', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt +++ pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt --TEST-- PEAR_PackageFile_Parser_v2_Validator->analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_nochanneloruri'. DIRECTORY_SEPARATOR . 'package.xml'; $pf = &$parser->parse(implode('', file($pathtopackagexml)), $pathtopackagexml); $pf = new PEAR_PackageFile_V2; $res = $pf->analyzeSourceCode('<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>', true); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\\n"; $count++; } } function ignored(){} } ?>', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done
http://cvs.php.net/diff.php/pear-core/PEAR/Common.php?r1=1.147&r2=1.148&ty=u Index: pear-core/PEAR/Common.php diff -u pear-core/PEAR/Common.php:1.147 pear-core/PEAR/Common.php:1.148 --- pear-core/PEAR/Common.php:1.147 Sun Sep 11 13:51:06 2005 +++ pear-core/PEAR/Common.php Wed Oct 19 00:11:21 2005 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Common.php,v 1.147 2005/09/11 17:51:06 cellog Exp $ + * @version CVS: $Id: Common.php,v 1.148 2005/10/19 04:11:21 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1.0 * @deprecated File deprecated since Release 1.4.0a1 @@ -712,6 +712,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/PEAR/Frontend/CLI.php?r1=1.55&r2=1.56&ty=u Index: pear-core/PEAR/Frontend/CLI.php diff -u pear-core/PEAR/Frontend/CLI.php:1.55 pear-core/PEAR/Frontend/CLI.php:1.56 --- pear-core/PEAR/Frontend/CLI.php:1.55 Sun Sep 18 19:03:08 2005 +++ pear-core/PEAR/Frontend/CLI.php Wed Oct 19 00:11:26 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CLI.php,v 1.55 2005/09/18 23:03:08 cellog Exp $ + * @version CVS: $Id: CLI.php,v 1.56 2005/10/19 04:11:26 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -273,7 +273,10 @@ $answers = $this->confirmDialog($group['param']); } } - if ($answers) { + if ((isset($answers) && $answers) || !isset($group['param'])) { + if (!isset($answers)) { + $answers = array(); + } array_unshift($completedPhases, $group['id']); if (!$script->run($answers, $group['id'])) { $script->run($completedPhases, '_undoOnError'); http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.64&r2=1.65&ty=u Index: pear-core/PEAR/PackageFile/v1.php diff -u pear-core/PEAR/PackageFile/v1.php:1.64 pear-core/PEAR/PackageFile/v1.php:1.65 --- pear-core/PEAR/PackageFile/v1.php:1.64 Tue Oct 18 20:43:10 2005 +++ pear-core/PEAR/PackageFile/v1.php Wed Oct 19 00:11:27 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v1.php,v 1.64 2005/10/19 00:43:10 cellog Exp $ + * @version CVS: $Id: v1.php,v 1.65 2005/10/19 04:11:27 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -1401,6 +1401,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.79&r2=1.80&ty=u Index: pear-core/PEAR/PackageFile/v2/Validator.php diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.79 pear-core/PEAR/PackageFile/v2/Validator.php:1.80 --- pear-core/PEAR/PackageFile/v2/Validator.php:1.79 Tue Oct 18 20:38:58 2005 +++ pear-core/PEAR/PackageFile/v2/Validator.php Wed Oct 19 00:11:27 2005 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Validator.php,v 1.79 2005/10/19 00:38:58 cellog Exp $ +// $Id: Validator.php,v 1.80 2005/10/19 04:11:27 cellog Exp $ /** * Private validation class used by PEAR_PackageFile_v2 - do not use directly, its * sole purpose is to split up the PEAR/PackageFile/v2.php file to make it smaller @@ -1779,6 +1779,7 @@ continue; } else { $inquote = false; + continue; } } switch ($token) { http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.287&r2=1.288&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.287 pear-core/package-PEAR.xml:1.288 --- pear-core/package-PEAR.xml:1.287 Sat Oct 8 19:44:42 2005 +++ pear-core/package-PEAR.xml Wed Oct 19 00:11:28 2005 @@ -66,25 +66,18 @@ </maintainer> </maintainers> <release> - <version>1.4.2</version> - <date>2005-10-08</date> + <version>1.4.3</version> + <date>2005-10-18</date> <license>PHP License</license> <state>stable</state> <notes> Minor bugfix release - - * fix issues with API for adding tasks to package2.xml - * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps - * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 - * fix Bug #5527: No need for cpp - * fix Bug #5529: configure options in package.xml 2.0 will be ignored - * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 - * fix Bug #5531: adding of installconditions/binarypackage/configure options - to extsrc may fail - * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace - * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error - * fix Bug #5619: pear makerpm produces invalid .spec dependancy code - * fix Bug #5629: pear install http_download dies with bad error message + * fix installation of files named like ".test" + * fix base class for writeable unixeol/windowseol classes + * fix running of post-install scripts with empty or no paramgroup + in CLI frontend + * fix Bug #5717: analyzeSourceCode() fails to process certain + quote situations properly </notes> <provides type="class" name="OS_Guess"/> <provides type="class" name="System"/> @@ -477,5 +470,27 @@ * fix Bug #5513: PEAR 1.4 does not install non-pear.php.net packages </notes> </release> + <release> + <version>1.4.2</version> + <date>2005-10-08</date> + <license>PHP License</license> + <state>stable</state> + <notes> + Minor bugfix release + + * fix issues with API for adding tasks to package2.xml + * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps + * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 + * fix Bug #5527: No need for cpp + * fix Bug #5529: configure options in package.xml 2.0 will be ignored + * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 + * fix Bug #5531: adding of installconditions/binarypackage/configure options + to extsrc may fail + * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error + * fix Bug #5619: pear makerpm produces invalid .spec dependancy code + * fix Bug #5629: pear install http_download dies with bad error message + </notes> + </release> </changelog> </package> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.179&r2=1.180&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.179 pear-core/package2.xml:1.180 --- pear-core/package2.xml:1.179 Sat Oct 8 19:44:42 2005 +++ pear-core/package2.xml Wed Oct 19 00:11:28 2005 @@ -65,9 +65,9 @@ <email>mj@php.net</email> <active>no</active> </helper> - <date>2005-10-08</date> + <date>2005-10-18</date> <version> - <release>1.4.2</release> + <release>1.4.3</release> <api>1.4.0</api> </version> <stability> @@ -77,19 +77,12 @@ <license uri="http://www.php.net/license">PHP License</license> <notes> Minor bugfix release - - * fix issues with API for adding tasks to package2.xml - * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps - * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 - * fix Bug #5527: No need for cpp - * fix Bug #5529: configure options in package.xml 2.0 will be ignored - * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 - * fix Bug #5531: adding of installconditions/binarypackage/configure options - to extsrc may fail - * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace - * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error - * fix Bug #5619: pear makerpm produces invalid .spec dependancy code - * fix Bug #5629: pear install http_download dies with bad error message + * fix installation of files named like ".test" + * fix base class for writeable unixeol/windowseol classes + * fix running of post-install scripts with empty or no paramgroup + in CLI frontend + * fix Bug #5717: analyzeSourceCode() fails to process certain + quote situations properly </notes> <contents> <dir name="/"> @@ -587,5 +580,33 @@ * fix Bug #5513: PEAR 1.4 does not install non-pear.php.net packages </notes> </release> + <release> + <version> + <release>1.4.2</release> + <api>1.4.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2005-10-08</date> + <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <notes> + Minor bugfix release + + * fix issues with API for adding tasks to package2.xml + * fix Bug #5520: pecl pickle fails on pecl pickle fails on extension/package deps + * fix Bug #5523: pecl pickle misses to put configureoptions into package.xml v1 + * fix Bug #5527: No need for cpp + * fix Bug #5529: configure options in package.xml 2.0 will be ignored + * fix Bug #5530: PEAR_PackageFile_v2->getConfigureOptions() API incompatible with v1 + * fix Bug #5531: adding of installconditions/binarypackage/configure options + to extsrc may fail + * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error + * fix Bug #5619: pear makerpm produces invalid .spec dependancy code + * fix Bug #5629: pear install http_download dies with bad error message + </notes> + </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_Common/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_Common/test_bug5717.phpt +++ pear-core/tests/PEAR_Common/test_bug5717.phpt --TEST-- PEAR_Common->analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $testdir = $statedir; @mkdir($testdir); $fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test1.php', 'w'); fwrite($fp, '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>'); fclose($fp); $res = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test1.php'); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => $testdir . DIRECTORY_SEPARATOR . 'test1.php', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt +++ pear-core/tests/PEAR_PackageFile/v1/test_bug5717.phpt --TEST-- PEAR_PackageFile_v1->_analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Parser'. DIRECTORY_SEPARATOR . 'test_basicparse'. DIRECTORY_SEPARATOR . 'package.xml'; $val = &$parser->parse(implode('', file($pathtopackagexml)), $pathtopackagexml); $val->validate(PEAR_VALIDATE_NORMAL); // setup purposes only $testdir = $statedir; @mkdir($testdir); $fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test1.php', 'w'); fwrite($fp, '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>'); fclose($fp); $res = $val->_analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test1.php'); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => $testdir . DIRECTORY_SEPARATOR . 'test1.php', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt +++ pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug5717.phpt --TEST-- PEAR_PackageFile_Parser_v2_Validator->analyzeSourceCode(), bug #5717 --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_nochanneloruri'. DIRECTORY_SEPARATOR . 'package.xml'; $pf = &$parser->parse(implode('', file($pathtopackagexml)), $pathtopackagexml); $pf = new PEAR_PackageFile_V2; $res = $pf->analyzeSourceCode('<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\n"; $count++; } } function ignored(){} } ?>', true); $phpunit->assertNoErrors('post-parse'); $phpunit->assertEquals(array ( 'source_file' => '<?php class blah { function blah() { foreach ($this->dsns as $i => $dsn) { $text .= "[$count] " . ($i ? "(Package $i) " : \'\') . $dsn . "\\n"; $count++; } } function ignored(){} } ?>', 'declared_classes' => array ( 0 => 'blah', ), 'declared_interfaces' => array ( ), 'declared_methods' => array ( 'blah' => array ( 0 => 'blah', 1 => 'ignored', ), ), 'declared_functions' => array ( ), 'used_classes' => array ( ), 'inheritance' => array ( ), 'implements' => array ( ), ), $res, 'analysis'); echo 'tests done'; ?> --EXPECT-- tests done