cvs: phpweb /include ip-to-country.inc
| From: | Sara Golemon | Date: | Fri, 02 May 2003 23:28:34 +0000 |
| Subject: | cvs: phpweb /include ip-to-country.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17233@lists.php.net to get a copy of this message | ||
pollita Fri May 2 19:28:34 2003 EDT
Modified files:
/phpweb/include ip-to-country.inc
Log:
Some mirrors (us2 for example) run PHP versions prior to 4.2 which do not allow ommitting the
maxlen parameter from fgets()
Index: phpweb/include/ip-to-country.inc
diff -u phpweb/include/ip-to-country.inc:1.2 phpweb/include/ip-to-country.inc:1.3
--- phpweb/include/ip-to-country.inc:1.2 Fri May 2 16:05:09 2003
+++ phpweb/include/ip-to-country.inc Fri May 2 19:28:34 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: ip-to-country.inc,v 1.2 2003/05/02 20:05:09 goba Exp $
+// $Id: ip-to-country.inc,v 1.3 2003/05/02 23:28:34 pollita Exp $
/*
@@ -109,7 +109,7 @@
// Read in granularity from index file and
// convert current IP to something useful
- $granularity = intval(fgets($dbidx));
+ $granularity = intval(fgets($dbidx, 64));
$ip_chunk = intval($ip / $granularity);
// Loop till we can read the file