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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user