Allow both parameter orderings

This commit is contained in:
Marcus Boerger 2003-04-30 15:22:57 +00:00
parent 4ad3ecc758
commit bafbc8bdb2

View File

@ -901,7 +901,9 @@ PHP_FUNCTION(sqlite_unbuffered_query)
const char *tail;
int mode;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sr|l", &sql, &sql_len, &zdb, &mode)) {
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
ZEND_NUM_ARGS() TSRMLS_CC, "sr|l", &sql, &sql_len, &zdb, &mode) &&
FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &zdb, &sql, &sql_len, &mode)) {
return;
}