]> granicus.if.org Git - php/commitdiff
make __clone call case insensitive, just as other calls are
authorStanislav Malyshev <stas@php.net>
Sun, 27 Jul 2003 11:42:21 +0000 (11:42 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 27 Jul 2003 11:42:21 +0000 (11:42 +0000)
Zend/zend_compile.c

index c1641c31ab30aef4485f4d882acb76d4bf62e98a..1c9f1f8314ca73fc75313e496be9b83db83a5605 100644 (file)
@@ -1119,7 +1119,7 @@ void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC)
        last_op = &CG(active_op_array)->opcodes[last_op_number];
 
        if ((last_op->op2.op_type == IS_CONST) && (last_op->op2.u.constant.value.str.len == sizeof(ZEND_CLONE_FUNC_NAME)-1)
-               && !memcmp(last_op->op2.u.constant.value.str.val, ZEND_CLONE_FUNC_NAME, sizeof(ZEND_CLONE_FUNC_NAME))) {
+               && !strncasecmp(last_op->op2.u.constant.value.str.val, ZEND_CLONE_FUNC_NAME, sizeof(ZEND_CLONE_FUNC_NAME))) {
                last_op->opcode = ZEND_CLONE;
                left_bracket->op_type = IS_UNUSED;
                zval_dtor(&last_op->op2.u.constant);