Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #17020 PHP-Error
Submitted: 2010-01-21 22:11 UTC
From: double Assigned: doconnor
Status: Closed Package: Cache (version 1.5.5)
PHP Version: 5.2.5 OS: Ubuntu
Roadmaps: (Not assigned)    

 [2010-01-21 22:11 UTC] double (Not Needed)
Description: ------------ PHP-Error[2048]: (Declaration of Cache_Container_file::garbageCollection() should be compatible with that of Cache_Container::garbageCollection()) in file /usr/share/php/Cache/Container/file.php on line 29 Test script: --------------- require('Net/Geo.php'); $net_geo = new Net_Geo(); $ip = gethostbyaddr(''); $results = $net_geo->getRecord($ip); var_dump($results); Expected result: ---------------- No PHP Error. Actual result: -------------- PHP Error


 [2010-01-23 08:41 UTC] doconnor (Daniel O'Connor)
Annoying - this package is well past the stable point, so changes to the API have to be approached carefully. At the same time, across many of the drivers, this method varies wildly. clockwerx@clockwerx-desktop:/media/disk/pear/packages-all/Cache$ ack-grep 'garbageCollection' Cache.php 143: $this->garbageCollection(); 352: function garbageCollection($force = false) 362: $this->container->garbageCollection($this->gc_maxlifetime); 365: } // end func garbageCollection Container/db.php 216: function garbageCollection($maxlifetime) Container/dbx.php 250: function garbageCollection($maxlifetime) Container/file.php 265: function garbageCollection($maxlifetime) 292: } // end func garbageCollection Container/mdb.php 332: function garbageCollection($maxlifetime) Container/msession.php 205: function garbageCollection($maxlifetime) 245: } // end func garbageCollection Container/phplib.php 34:* your databasesystem you might have to subclass fetch() and garbageCollection(). 223: function garbageCollection($maxlifetime) 262: } // end func garbageCollection Container/shm.php 181: $cachedata = $this->garbageCollection(time(), $cachedata); 227: function garbageCollection($maxlifetime, $cachedata = array()) 256: } // end func garbageCollection Container.php 342: function garbageCollection() 345: } // end func garbageCollection clockwerx@clockwerx-desktop:/media/disk/pear/packages-all/Cache$
 [2010-01-23 08:45 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.