cvs: pearweb /include signatures.php
| From: | Stig Bakken | Date: | Thu, 25 Apr 2002 01:41:47 +0000 |
| Subject: | cvs: pearweb /include signatures.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3538@lists.php.net to get a copy of this message | ||
ssb Wed Apr 24 21:41:47 2002 EDT
Modified files:
/pearweb/include signatures.php
Log:
* one fread call is enough
Index: pearweb/include/signatures.php
diff -u pearweb/include/signatures.php:1.7 pearweb/include/signatures.php:1.8
--- pearweb/include/signatures.php:1.7 Wed Apr 24 21:40:37 2002
+++ pearweb/include/signatures.php Wed Apr 24 21:41:47 2002
@@ -31,10 +31,8 @@
if (!is_resource($fp)) {
return false;
}
- $contents = "";
- while (!feof($fp)) {
- $contents .= fread($fp, 10240);
- }
+ $contents = fread($fp, filesize($file));
+ fclose($fp);
// format: array( array(returntype, methodname, paramlist), ... )
settype($signatures, "array");
$matches = array();