cvs: phpdoc /scripts/iniupdate cvs-versions.php
| From: | Nuno Lopes | Date: | Wed, 05 Sep 2007 17:12:23 +0000 |
| Subject: | cvs: phpdoc /scripts/iniupdate cvs-versions.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969378028@lists.php.net to get a copy of this message | ||
nlopess Wed Sep 5 17:12:23 2007 UTC
Modified files:
/phpdoc/scripts/iniupdate cvs-versions.php
Log:
file() doesnt strip the \n, so adjust the loop. also protect that loop against infinite looping
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/cvs-versions.php?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/scripts/iniupdate/cvs-versions.php
diff -u phpdoc/scripts/iniupdate/cvs-versions.php:1.7 phpdoc/scripts/iniupdate/cvs-versions.php:1.8
--- phpdoc/scripts/iniupdate/cvs-versions.php:1.7 Wed Sep 5 15:35:59 2007
+++ phpdoc/scripts/iniupdate/cvs-versions.php Wed Sep 5 17:12:23 2007
@@ -27,7 +27,7 @@
chdir('sources');
- if (empty($GLOBALS['skip_download'])) {
+ if (empty($GLOBALS['skip_download']) || !is_dir('php-src')) {
cvs -q -d :pserver:cvsread@cvs.php.net:/repository co php-src > /dev/null;
}
@@ -42,7 +42,7 @@
do {
$l = array_shift($log);
- if ($l == 'symbolic names:') {
+ if (rtrim($l) === 'symbolic names:' || $l === NULL) {
break;
}
} while (1);