Skip to content

Commit 9f0fedc

Browse files
committed
Only fetch TSRMLS for 32-bit platforms in int64 visitor
This fixes a build error introduced in be58940.
1 parent f92666a commit 9f0fedc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bson.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ bool php_phongo_bson_visit_int64(const bson_iter_t *iter ARG_UNUSED, const char
530530
#else
531531
zval *retval = ((php_phongo_bson_state *)data)->zchild;
532532
#endif
533+
#if SIZEOF_PHONGO_LONG == 4
533534
TSRMLS_FETCH();
535+
#endif
534536

535537
ADD_ASSOC_INT64(retval, key, v_int64);
536538

0 commit comments

Comments
 (0)