You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!(Z_TYPE_P(filter) ==IS_ARRAY||Z_TYPE_P(filter) ==IS_OBJECT)) {
324
324
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENTTSRMLS_CC, "Expected filter to be array or object, %s given", zend_get_type_by_const(Z_TYPE_P(filter)));
325
325
return false;
326
326
}
327
327
convert_to_object(filter);
328
328
329
-
MAKE_STD_ZVAL(zquery);
330
-
array_init(zquery);
331
-
332
329
if (options) {
333
330
/* TODO: Ensure batchSize, limit, and skip are 32-bit */
if (modifiers&& !(Z_TYPE_P(modifiers) ==IS_ARRAY||Z_TYPE_P(modifiers) ==IS_OBJECT)) {
352
349
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENTTSRMLS_CC, "Expected modifiers to be array or object, %s given", zend_get_type_by_const(Z_TYPE_P(modifiers)));
if (projection&& !(Z_TYPE_P(projection) ==IS_ARRAY||Z_TYPE_P(projection) ==IS_OBJECT)) {
364
360
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENTTSRMLS_CC, "Expected projection to be array or object, %s given", zend_get_type_by_const(Z_TYPE_P(projection)));
if (sort&& !(Z_TYPE_P(sort) ==IS_ARRAY||Z_TYPE_P(sort) ==IS_OBJECT)) {
377
373
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENTTSRMLS_CC, "Expected sort to be array or object, %s given", zend_get_type_by_const(Z_TYPE_P(sort)));
0 commit comments