3 1. Gallery2 doesn't work with PHP5+APC. There is something wrong
4 with the way methods are restored in some edge case I haven't
5 been able to figure out yet.
6 To reproduce install gallery2 and click down to an individual photo.
8 2. apc_store() probably needs some checks to skip trying to store
9 internal classes. Something along the lines of:
11 if(Z_TYPE_P(val) == IS_OBJECT) {
12 zend_class_entry *ce = Z_OBJCE_P(val);
13 if(ce->type == ZEND_INTERNAL_CLASS) {
14 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot cache internal objects");
19 in the apc_store() function in php_apc.c but I am wondering if it needs to do more
24 1. Some faster platform-specific locking mechanisms wouldd be nice. futex support
25 for the 2.6 Linux kernels, and/or x86-specific spinlock support.
27 2. The optimizer needs a lot of work.
29 3. Assert() elimination in the optimizer when some debug flag somewhere isn't set.