From: Dmitry Stogov Date: Mon, 1 Oct 2007 09:33:02 +0000 (+0000) Subject: Fixed bug #42798 (__autoload() not triggered for classes used in method signature). X-Git-Tag: RELEASE_2_0_0a1~1703 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f30167922a337e2312dd4ef87b5172660dd023f4;p=php Fixed bug #42798 (__autoload() not triggered for classes used in method signature). --- diff --git a/Zend/tests/bug42798.phpt b/Zend/tests/bug42798.phpt new file mode 100644 index 0000000000..1c45867722 --- /dev/null +++ b/Zend/tests/bug42798.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #42798 (_autoload() not triggered for classes used in method signature) +--FILE-- +refcount; is_ref = p->is_ref; - if (!zend_u_get_constant_ex(ZEND_STR_TYPE, Z_UNIVAL_P(p), Z_UNILEN_P(p), &const_value, scope, Z_TYPE_P(p) TSRMLS_CC)) { + if (!zend_u_get_constant_ex(ZEND_STR_TYPE, Z_UNIVAL_P(p), Z_UNILEN_P(p), &const_value, scope, Z_REAL_TYPE_P(p) TSRMLS_CC)) { if ((UG(unicode) && (colon.u = u_memrchr(Z_USTRVAL_P(p), ':', Z_USTRLEN_P(p))) && colon.u > Z_USTRVAL_P(p) && *(colon.u-1) == ':') || (!UG(unicode) && (colon.s = zend_memrchr(Z_STRVAL_P(p), ':', Z_STRLEN_P(p))) && colon.s > Z_STRVAL_P(p) && *(colon.s-1) == ':')) { if (UG(unicode)) {