@@ -82,15 +82,15 @@ static bool php_phongo_query_opts_append_document(bson_t* opts, const char* opts
82
82
return true;
83
83
} /* }}} */
84
84
85
- #define PHONGO_QUERY_OPT_BOOL_EX (opt , zarr , key , deprecated ) \
86
- if ((zarr) && php_array_existsc((zarr), (key))) { \
87
- if ((deprecated)) { \
85
+ #define PHONGO_QUERY_OPT_BOOL_EX (opt , zarr , key , deprecated ) \
86
+ if ((zarr) && php_array_existsc((zarr), (key))) { \
87
+ if ((deprecated)) { \
88
88
php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "The \"%s\" option is deprecated and will be removed in a future release", key); \
89
- } \
90
- if (!BSON_APPEND_BOOL(intern->opts, (opt), php_array_fetchc_bool((zarr), (key)))) { \
91
- phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", (opt)); \
92
- return false; \
93
- } \
89
+ } \
90
+ if (!BSON_APPEND_BOOL(intern->opts, (opt), php_array_fetchc_bool((zarr), (key)))) { \
91
+ phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", (opt)); \
92
+ return false; \
93
+ } \
94
94
}
95
95
96
96
#define PHONGO_QUERY_OPT_BOOL (opt , zarr , key ) PHONGO_QUERY_OPT_BOOL_EX((opt), (zarr), (key), 0)
@@ -106,15 +106,15 @@ static bool php_phongo_query_opts_append_document(bson_t* opts, const char* opts
106
106
/* Note: handling of integer options will depend on SIZEOF_ZEND_LONG and we
107
107
* are not converting strings to 64-bit integers for 32-bit platforms. */
108
108
109
- #define PHONGO_QUERY_OPT_INT64_EX (opt , zarr , key , deprecated ) \
110
- if ((zarr) && php_array_existsc((zarr), (key))) { \
111
- if ((deprecated)) { \
109
+ #define PHONGO_QUERY_OPT_INT64_EX (opt , zarr , key , deprecated ) \
110
+ if ((zarr) && php_array_existsc((zarr), (key))) { \
111
+ if ((deprecated)) { \
112
112
php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "The \"%s\" option is deprecated and will be removed in a future release", key); \
113
- } \
114
- if (!BSON_APPEND_INT64(intern->opts, (opt), php_array_fetchc_long((zarr), (key)))) { \
115
- phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", (opt)); \
116
- return false; \
117
- } \
113
+ } \
114
+ if (!BSON_APPEND_INT64(intern->opts, (opt), php_array_fetchc_long((zarr), (key)))) { \
115
+ phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", (opt)); \
116
+ return false; \
117
+ } \
118
118
}
119
119
120
120
#define PHONGO_QUERY_OPT_INT64 (opt , zarr , key ) PHONGO_QUERY_OPT_INT64_EX((opt), (zarr), (key), 0)
0 commit comments