if (colon.v != NULL) {
/* This is a compound name.
* Try to fetch class and then find static method. */
+ zend_class_entry *last_scope = EG(scope);
+ EG(scope) = ce_org;
*ce_ptr = zend_u_fetch_class(Z_TYPE_P(callable), Z_UNIVAL_P(callable), clen, ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_SILENT TSRMLS_CC);
+ EG(scope) = last_scope;
if (!*ce_ptr) {
char *cname = estrndup(Z_STRVAL_P(callable), clen);
if (error) zend_spprintf(error, 0, "class '%v' not found", cname);