Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type

This commit is contained in:
Ilia Alshanetsky 2009-11-20 18:54:08 +00:00
parent 5143fe41e2
commit 51c17c413c

View File

@ -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,
&paramtype)) {
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &paramtype)) {
RETURN_FALSE;
}