Index: Zend/zend_compile.c =================================================================== RCS file: /repository/ZendEngine2/zend_compile.c,v retrieving revision 1.647.2.27.2.41.2.17 diff -u -p -r1.647.2.27.2.41.2.17 zend_compile.c --- Zend/zend_compile.c 9 Nov 2007 13:34:39 -0000 1.647.2.27.2.41.2.17 +++ Zend/zend_compile.c 11 Nov 2007 16:40:27 -0000 @@ -1322,6 +1322,9 @@ void zend_do_receive_arg(zend_uchar op, if (class_type->op_type != IS_UNUSED) { cur_arg_info->allow_null = 0; if (class_type->u.constant.type == IS_STRING) { + if (!strcasecmp(Z_STRVAL(class_type->u.constant), "static")) { + zend_error(E_COMPILE_ERROR, "static is not allowed as class type hint"); + } zend_resolve_class_name(class_type, &opline->extended_value, 1 TSRMLS_CC); cur_arg_info->class_name = class_type->u.constant.value.str.val; cur_arg_info->class_name_len = class_type->u.constant.value.str.len;