mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
This commit is contained in:
parent
5143fe41e2
commit
51c17c413c
@ -1144,8 +1144,7 @@ static PHP_METHOD(PDO, quote)
|
||||
char *qstr;
|
||||
int qlen;
|
||||
|
||||
if (FAILURE == zend_parse_parameters(1 TSRMLS_CC, "s|l", &str, &str_len,
|
||||
¶mtype)) {
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, ¶mtype)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user