]> granicus.if.org Git - php/commitdiff
- Don't allow passing NULL to type hinted parameter.
authorAndi Gutmans <andi@php.net>
Tue, 11 May 2004 14:28:40 +0000 (14:28 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 11 May 2004 14:28:40 +0000 (14:28 +0000)
Zend/zend_compile.c

index 23bb96b1e1de4e9cc7d2e745d7ed502cd51227c6..31414d1ed8bb44edb66ecf3835d772c1283168e2 100644 (file)
@@ -1138,6 +1138,7 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia
        if (class_type->op_type != IS_UNUSED) {
                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;
+               cur_arg_info->allow_null = 0;
        } else {
                cur_arg_info->class_name = NULL;
                cur_arg_info->class_name_len = 0;