cvs: php-master-web /scripts mirror-test
| From: | jim winstead | Date: | Tue, 19 Nov 2002 18:32:34 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-13687@lists.php.net to get a copy of this message | ||
jimw Tue Nov 19 13:32:34 2002 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
php 4.2.3 returns "" from fgets() when a timeout occurs, which would put this in a
endless loop
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.14 php-master-web/scripts/mirror-test:1.15
--- php-master-web/scripts/mirror-test:1.14 Sun Sep 15 10:27:31 2002
+++ php-master-web/scripts/mirror-test Tue Nov 19 13:32:34 2002
@@ -33,9 +33,9 @@
do {
$line = fgets($fp);
- } while ($line !== false && $line != "\r\n" && $line !=
"\n");
+ } while ($line !== false && $line != "" && $line !=
"\r\n" && $line != "\n");
- if ($line === false) {
+ if ($line === false || $line == "") {
#echo "didn't get past headers for $row[hostname]\n";
continue;
}