Browse Source

make __clone call case insensitive, just as other calls are

PEAR_1_4DEV
Stanislav Malyshev 23 years ago
parent
commit
78f8ca6e55
  1. 2
      Zend/zend_compile.c

2
Zend/zend_compile.c

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

Loading…
Cancel
Save