Skip to content

Commit be65b64

Browse files
committed
Fixup ordering
1 parent 9d66170 commit be65b64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

php_phongo.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,17 @@ zend_object_handlers* phongo_get_std_object_handlers(void);
6565
if (!(intern)->php_properties) { \
6666
ALLOC_HASHTABLE((intern)->php_properties); \
6767
zend_hash_init((intern)->php_properties, 0, NULL, ZVAL_PTR_DTOR, 0); \
68+
GC_ADDREF((intern)->php_properties); \
6869
} \
6970
if (is_temp) { \
7071
(props) = zend_array_dup((intern)->php_properties); \
7172
} else { \
73+
(props) = zend_array_dup((intern)->php_properties); \
7274
if ((intern)->properties) { \
73-
(props) = (intern)->properties; \
75+
HashTable *__tmp = (intern)->properties; \
7476
(intern)->properties = NULL; \
75-
zend_hash_release(props); \
77+
zend_hash_release(__tmp); \
7678
} \
77-
(props) = zend_array_dup((intern)->php_properties); \
7879
(intern)->properties = (props); \
7980
} \
8081
} while (0)

0 commit comments

Comments
 (0)