Bug #15860 [Bgs]: Possible regression of Bug #7657

From: Date: Sun, 01 Mar 2009 11:18:39 +0000
Subject: Bug #15860 [Bgs]: Possible regression of Bug #7657
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-85@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15860&edit=1 ID: 15860 Updated by: l.alberton@quipo.it Reported By: jeremy dot degroot at gmail dot com Summary: Possible regression of Bug #7657 Status: Bogus Type: Bug Package: Pager Operating System: Linux (Fedora) Package Version: 2.4.7 PHP Version: 5.2.0 -Assigned To: +Assigned To: doconnor Roadmap Versions: New Comment: <div id="changeset"> <span class="removed">-Assigned To:</span> <span class="added">+Assigned To: doconnor</span> </div> Confirmed. Pager works fine with autoload, provided you pass the right parameters and class name. Previous Comments: ------------------------------------------------------------------------ [2009-02-03 15:29:25] doconnor <div id="changeset"> <span class="removed">-Status: Open</span> <span class="added">+Status: Bogus</span> </div> The test script you have there is not the same as the one creating the error, because you aren't ever passing in ".class". ------------------------------------------------------------------------ [2009-02-02 10:56:06] jeremydegroot Description: ------------ Having an autoload function set causes Pager to attempt to autoload jumping and sliding classes. This behavior was reported in version 2.4.1 and marked corrected and closed. It seems to have reappeared in version 2.4.7 Test script: --------------- <?PHP require_once 'Pager/Pager.php'; $params = array( 'mode' => 'Sliding', 'perPage' => 3, 'delta' => 2, 'itemData' => array('a','b','c','d','e') ); $pager = & Pager::factory($params); // do some stuff ... function __autoload($class_name) { include_once $class_name . ".php"; } ?> Actual result: -------------- Fatal error: require_once() [function.require]: Failed opening required 'classes/main/Pager_Jumping.class.php' (include_path='.:/usr/share/pear:/classes/main/') ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15860&edit=1

« previous php.pear.bugs (#85) next »