From: Ilia Alshanetsky Date: Fri, 20 Nov 2009 18:54:08 +0000 (+0000) Subject: Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type X-Git-Tag: php-5.2.12RC2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3949380b8c1dde2632de2d2f02ec9bce61f0274;p=php Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 2d39e6ed35..3f190c1212 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1091,8 +1091,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; }