summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-11-20 18:54:08 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-11-20 18:54:08 +0000
commit51c17c413c9dfbc398958e28dda67f8e02d13946 (patch)
tree1396f8b42d987531d101b50d5c5c4d009fa14963
parent5143fe41e26f5cadeadbefaaa07715ef5407063d (diff)
downloadphp-git-51c17c413c9dfbc398958e28dda67f8e02d13946.tar.gz
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
-rwxr-xr-xext/pdo/pdo_dbh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 265b05aa6f..7f81d9408a 100755
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -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;
}