Skip to content

Commit eab54fe

Browse files
pboyd04derickr
authored andcommitted
PHPC-400: Handle IS_TRUE and IS_FALSE
1 parent 00a3e01 commit eab54fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bson.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -901,13 +901,13 @@ void phongo_bson_append(bson_t *bson, php_phongo_bson_flags_t flags, const char
901901
bson_append_null(bson, key, key_len);
902902
break;
903903
#if PHP_VERSION_ID >= 70000
904-
case IS_TRUE:
905-
bson_append_bool(bson, key, key_len, true);
906-
break;
904+
case IS_TRUE:
905+
bson_append_bool(bson, key, key_len, true);
906+
break;
907907

908-
case IS_FALSE:
909-
bson_append_bool(bson, key, key_len, false);
910-
break;
908+
case IS_FALSE:
909+
bson_append_bool(bson, key, key_len, false);
910+
break;
911911
#else
912912
case IS_BOOL:
913913
bson_append_bool(bson, key, key_len, Z_BVAL_P(entry));

0 commit comments

Comments
 (0)