Skip to content

Commit d9b13a2

Browse files
committed
Fix PHP 7.4 support (hopefully)
1 parent 5c8bd44 commit d9b13a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scalar_objects.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ static zval *get_zval_ptr_real(
6767
#if PHP_VERSION_ID >= 80000
6868
zval *zv = zend_get_zval_ptr(opline, op_type, node, execute_data, type);
6969
#elif PHP_VERSION_ID >= 70300
70-
zend_free_op *should_free;
71-
zval *zv = zend_get_zval_ptr(opline, op_type, node, execute_data, should_free, type);
70+
zend_free_op should_free;
71+
zval *zv = zend_get_zval_ptr(opline, op_type, node, execute_data, &should_free, type);
7272
#else
73-
zend_free_op *should_free;
74-
zval *zv = zend_get_zval_ptr(op_type, node, execute_data, should_free, type);
73+
zend_free_op should_free;
74+
zval *zv = zend_get_zval_ptr(op_type, node, execute_data, &should_free, type);
7575
#endif
7676
ZVAL_DEREF(zv);
7777
return zv;

0 commit comments

Comments
 (0)