cvs: pear /Services_Weather/Weather Common.php
| From: | Alexander Wirtz | Date: | Mon, 06 Oct 2003 15:13:53 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13425@lists.php.net to get a copy of this message | ||
eru Mon Oct 6 11:13:53 2003 EDT
Modified files:
/pear/Services_Weather/Weather Common.php
Log:
*Added checks for existing classes, needed by the services
Index: pear/Services_Weather/Weather/Common.php
diff -u pear/Services_Weather/Weather/Common.php:1.14 pear/Services_Weather/Weather/Common.php:1.15
--- pear/Services_Weather/Weather/Common.php:1.14 Mon Oct 6 10:00:54 2003
+++ pear/Services_Weather/Weather/Common.php Mon Oct 6 11:13:53 2003
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.14 2003/10/06 14:00:54 eru Exp $
+// $Id: Common.php,v 1.15 2003/10/06 15:13:53 eru Exp $
require_once "Services/Weather.php";
@@ -133,7 +133,7 @@
{
// Ugly, but it works. Why isn't file_exists capable of searching
// through the include_path? *sigh*
- $files = array("Cache.php");
+ $files = array("Cache.php", "XML/Unserializer.php",
"SOAP/Client.php");
for ($i = 0; $i < sizeof($files); $i++) {
if(($fp = @fopen($files[$i], "r", true)) !== false) {
$this->{"_has".basename($files[$i], ".php")} = true;