From d3949380b8c1dde2632de2d2f02ec9bce61f0274 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 20 Nov 2009 18:54:08 +0000 Subject: [PATCH] Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type --- ext/pdo/pdo_dbh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.40.0