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.4.0alpha1~191^2~2373 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b632d973242e2c51f6719dc23c7f8528b7c468f;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 d3ccdcdc74..32dfa0ee51 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1145,8 +1145,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; }