mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
Allow both parameter orderings
This commit is contained in:
parent
4ad3ecc758
commit
bafbc8bdb2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user