php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57121 APC + Gallery2 = Runtime Errors
Submitted: 2006-07-01 02:57 UTC Modified: 2006-07-08 03:48 UTC
From: stripslashes at stripslashes dot net Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 5.1.2 OS: Ubuntu Dapper 6.06 x86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stripslashes at stripslashes dot net
New email:
PHP Version: OS:

 

 [2006-07-01 02:57 UTC] stripslashes at stripslashes dot net
Description:
------------
Gallery 2 (latest version: 2.1.1 - http://gallery.menalto.com/) and APC 3.0.10.

When one navigates down to showing the actual image (inside any number of albums and sub-albums), PHP issues a FATAL ERROR.

Gallery 2 Source: http://prdownloads.sourceforge.net/gallery/gallery-2.1.1a-full.tar.gz?use_mirror=superb-east

All actions origionate from /path/to/htdocs/gallery/main.php

Reproduce code:
---------------
/* in the gallery source, file /path/to/htdocs/gallery/modules/core/classes/helpers/GalleryEntityHelper_simple.class */
foreach ($onLoad as $id) {
  $ret = $cached[$id]->onLoad();
  if ($ret) {
    return array($ret->wrap(__FILE__, __LINE__), null);
  }
  GalleryDataCache::put("GalleryEntityHelper::loadEntitiesById($id)", $cached[$id]);
}

/* this file can be viewed here: http://stripslashes.net/gallery/modules/core/classes/helpers/GalleryEntityHelper_simple.class.phps */

Expected result:
----------------
Display the image.

http://stripslashes.net/gallery/main.php?g2_itemId=7507

Actual result:
--------------
Fatal error: Call to undefined method GalleryPhotoItem::onLoad() in /path/to/htdocs/gallery/modules/core/classes/helpers/GalleryEntityHelper_simple.class on line 102

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-01 03:06 UTC] stripslashes at stripslashes dot net
The gallery link I provided (stripslashes.net/gallery) is currently filtered from APC, so you cannot test the error there, only the expected result.
 [2006-07-01 14:22 UTC] stripslashes at stripslashes dot net
I have narrowed the problem down to the callery core class files (located in /path/to/htdocs/gallery/modules/core/) and this allows me to change the filter for APC to "-gallery.*\.class" (only the core class files), instead of globally disabling it on all gallery pages.  This should narrow down your search.
 [2006-07-07 05:43 UTC] gopalv82 at yahoo dot com
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PECL.

This is a throwback from a large set of bugs ...

Please enable dynamic_error in your apc.ini, which warns what files to filter out.

And 5.0.x is not very high on my list of versions to support.
 [2006-07-08 03:47 UTC] stripslashes at stripslashes dot net
I incorrectly labled the PHP version as 5.0.2, but I am actually running 5.1.2.  I fail to see another open bug report describing problems with Gallery.  Perhaps you can point me in the right direction.

Also, you can view php and apc info at http://stripslashes.net/utils/phpinfo/ and http://stripslashes.net/utils/apcinfo/, respectively.
 [2006-07-08 03:48 UTC] stripslashes at stripslashes dot net
Why would the status be filed under "bogus" and not "duplicate"?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC