Skip to content

Commit 63407c0

Browse files
committed
Tmp
1 parent bde2b37 commit 63407c0

19 files changed

+19
-0
lines changed

src/BSON/Binary.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static HashTable* php_phongo_binary_get_properties_hash(zend_object* object)
7171
intern = Z_OBJ_BINARY(object);
7272

7373
props = zend_array_dup(zend_std_get_properties(object));
74+
GC_SET_REFCOUNT(props, 0);
7475

7576
if (!intern->data) {
7677
return props;

src/BSON/DBPointer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ HashTable* php_phongo_dbpointer_get_properties_hash(zend_object* object)
7272
intern = Z_OBJ_DBPOINTER(object);
7373

7474
props = zend_array_dup(zend_std_get_properties(object));
75+
GC_SET_REFCOUNT(props, 0);
7576

7677
if (!intern->ref) {
7778
return props;

src/BSON/Decimal128.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ static HashTable* php_phongo_decimal128_get_properties_hash(zend_object* object)
6262
intern = Z_OBJ_DECIMAL128(object);
6363

6464
props = zend_array_dup(zend_std_get_properties(object));
65+
GC_SET_REFCOUNT(props, 0);
6566

6667
if (!intern->initialized) {
6768
return props;

src/BSON/Document.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static HashTable* php_phongo_document_get_properties_hash(zend_object* object, i
6363
intern = Z_OBJ_DOCUMENT(object);
6464

6565
props = zend_array_dup(zend_std_get_properties(object));
66+
GC_SET_REFCOUNT(props, 0);
6667

6768
if (!intern->bson) {
6869
return props;

src/BSON/Int64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ HashTable* php_phongo_int64_get_properties_hash(zend_object* object)
7070
intern = Z_OBJ_INT64(object);
7171

7272
props = zend_array_dup(zend_std_get_properties(object));
73+
GC_SET_REFCOUNT(props, 0);
7374

7475
if (!intern->initialized) {
7576
return props;

src/BSON/Iterator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static HashTable* php_phongo_iterator_get_properties_hash(zend_object* object)
161161
intern = Z_OBJ_ITERATOR(object);
162162

163163
props = zend_array_dup(zend_std_get_properties(object));
164+
GC_SET_REFCOUNT(props, 0);
164165

165166
zend_hash_str_update(props, "bson", sizeof("bson") - 1, &intern->bson);
166167
Z_TRY_ADDREF(intern->bson);

src/BSON/Javascript.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ HashTable* php_phongo_javascript_get_properties_hash(zend_object* object)
7777
intern = Z_OBJ_JAVASCRIPT(object);
7878

7979
props = zend_array_dup(zend_std_get_properties(object));
80+
GC_SET_REFCOUNT(props, 0);
8081

8182
if (!intern->code) {
8283
return props;

src/BSON/ObjectId.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static HashTable* php_phongo_objectid_get_properties_hash(zend_object* object)
8686

8787
props = zend_array_dup(zend_std_get_properties(object));
8888
GC_SET_REFCOUNT(props, 0);
89+
GC_SET_REFCOUNT(props, 0);
8990

9091
if (!intern->initialized) {
9192
return props;

src/BSON/PackedArray.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static HashTable* php_phongo_packedarray_get_properties_hash(zend_object* object
6464
intern = Z_OBJ_PACKEDARRAY(object);
6565

6666
props = zend_array_dup(zend_std_get_properties(object));
67+
GC_SET_REFCOUNT(props, 0);
6768

6869
if (!intern->bson) {
6970
return props;

src/BSON/Regex.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static HashTable* php_phongo_regex_get_properties_hash(zend_object* object)
8686
intern = Z_OBJ_REGEX(object);
8787

8888
props = zend_array_dup(zend_std_get_properties(object));
89+
GC_SET_REFCOUNT(props, 0);
8990

9091
if (!intern->pattern) {
9192
return props;

0 commit comments

Comments
 (0)