We have to check if the fcall info cache contains a pointer if we
use __call, otherwise we endup in a static lookup.
- Core:
. Fixed bug #65088 (Generated configure script is malformed on OpenBSD).
(Adam)
+ . Fixed bug #65108 (is_callable() triggers Fatal Error). (David Soria Parra)
OPcache
. OPcache must be compatible with LiteSpeed SAPI (Dmitry)
}
if ((check_flags & IS_CALLABLE_CHECK_NO_ACCESS) == 0 &&
(fcc->calling_scope &&
- (fcc->calling_scope->__call ||
+ ((fcc->calling_scope->__call && fcc->object_ptr) ||
fcc->calling_scope->__callstatic))) {
if (fcc->function_handler->op_array.fn_flags & ZEND_ACC_PRIVATE) {
if (!zend_check_private(fcc->function_handler, fcc->object_ptr ? Z_OBJCE_P(fcc->object_ptr) : EG(scope), lmname, mlen TSRMLS_CC)) {