Skip to content

Commit 793b52b

Browse files
committed
Fixed crash bug when the non-OO interface was used.
1 parent 8b9d23c commit 793b52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,7 @@ PHP_FUNCTION(date_modify)
29542954

29552955
php_date_modify(object, modify, modify_len, return_value TSRMLS_CC);
29562956

2957-
RETURN_ZVAL(getThis(), 1, 0);
2957+
RETURN_ZVAL(object, 1, 0);
29582958
}
29592959
/* }}} */
29602960

0 commit comments

Comments
 (0)