Skip to content

Commit ea2ac18

Browse files
author
fate0
committed
Fixed ISSUE #1
1 parent 1d70a9f commit ea2ac18

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xmark.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,7 @@ static int php_xmark_rope_end_handler(zend_execute_data *execute_data) {
917917
ZVAL_NEW_ARR(&z_rope);
918918
zend_hash_init(Z_ARRVAL(z_rope), opline->extended_value+1, NULL, ZVAL_PTR_DTOR, 0);
919919

920-
if ((XMARK_OP2_TYPE(opline) & IS_CV) || Z_TYPE_P(op2) != IS_STRING)
921-
rope[opline->extended_value] = zval_get_string(op2);
922-
else
923-
rope[opline->extended_value] = Z_STR_P(op2);
920+
rope[opline->extended_value] = zval_get_string(op2);
924921

925922
zval tmp;
926923
for (i=0; i<=opline->extended_value; i++) {

0 commit comments

Comments
 (0)