We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e7677 commit 0bfde7dCopy full SHA for 0bfde7d
src/MongoDB/ReadPreference.c
@@ -52,7 +52,7 @@ PHP_METHOD(ReadPreference, __construct)
52
{
53
php_phongo_readpreference_t *intern;
54
zend_error_handling error_handling;
55
- long mode;
+ phongo_long mode;
56
zval *tagSets = NULL;
57
SUPPRESS_UNUSED_WARNING(return_value_ptr) SUPPRESS_UNUSED_WARNING(return_value) SUPPRESS_UNUSED_WARNING(return_value_used)
58
@@ -88,7 +88,7 @@ PHP_METHOD(ReadPreference, __construct)
88
}
89
break;
90
default:
91
- phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Invalid mode: %ld", mode);
+ phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Invalid mode: %" PHONGO_LONG_FORMAT, mode);
92
return;
93
94
0 commit comments