1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00

make __clone call case insensitive, just as other calls are

This commit is contained in:
Stanislav Malyshev
2003-07-27 11:42:21 +00:00
parent 618d6c904d
commit 78f8ca6e55

View 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);