@@ -224,6 +224,7 @@ bool php_phongo_bson_visit_binary(const bson_iter_t *iter __attribute__((unused)
224
224
} else {
225
225
return true;
226
226
}
227
+ Z_SET_REFCOUNT_P (zchild , 1 );
227
228
228
229
return false;
229
230
}
@@ -254,6 +255,7 @@ bool php_phongo_bson_visit_oid(const bson_iter_t *iter __attribute__((unused)),
254
255
} else {
255
256
return true;
256
257
}
258
+ Z_SET_REFCOUNT_P (zchild , 1 );
257
259
258
260
return false;
259
261
}
@@ -290,6 +292,7 @@ bool php_phongo_bson_visit_date_time(const bson_iter_t *iter __attribute__((unus
290
292
} else {
291
293
return true;
292
294
}
295
+ Z_SET_REFCOUNT_P (zchild , 1 );
293
296
294
297
return false;
295
298
}
@@ -326,6 +329,7 @@ bool php_phongo_bson_visit_regex(const bson_iter_t *iter __attribute__((unused))
326
329
} else {
327
330
return true;
328
331
}
332
+ Z_SET_REFCOUNT_P (zchild , 1 );
329
333
330
334
return false;
331
335
}
@@ -355,6 +359,7 @@ bool php_phongo_bson_visit_code(const bson_iter_t *iter __attribute__((unused)),
355
359
} else {
356
360
return true;
357
361
}
362
+ Z_SET_REFCOUNT_P (zchild , 1 );
358
363
359
364
return false;
360
365
}
@@ -384,6 +389,7 @@ bool php_phongo_bson_visit_codewscope(const bson_iter_t *iter __attribute__((unu
384
389
} else {
385
390
return true;
386
391
}
392
+ Z_SET_REFCOUNT_P (zchild , 1 );
387
393
388
394
return false;
389
395
}
@@ -420,6 +426,7 @@ bool php_phongo_bson_visit_timestamp(const bson_iter_t *iter __attribute__((unus
420
426
} else {
421
427
return true;
422
428
}
429
+ Z_SET_REFCOUNT_P (zchild , 1 );
423
430
424
431
return false;
425
432
}
@@ -462,6 +469,7 @@ bool php_phongo_bson_visit_maxkey(const bson_iter_t *iter __attribute__((unused)
462
469
} else {
463
470
return true;
464
471
}
472
+ Z_SET_REFCOUNT_P (zchild , 1 );
465
473
466
474
return false;
467
475
}
@@ -481,6 +489,7 @@ bool php_phongo_bson_visit_minkey(const bson_iter_t *iter __attribute__((unused)
481
489
} else {
482
490
return true;
483
491
}
492
+ Z_SET_REFCOUNT_P (zchild , 1 );
484
493
485
494
return false;
486
495
}
0 commit comments