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
commit2b632d973242e2c51f6719dc23c7f8528b7c468f (patch)
tree62a0d339ab0cb8fca57a1c4ef03b82a3c7e05120
parent7674c942c7f0a128b3b8a50e248b0b2fe02e41d8 (diff)
downloadphp-git-2b632d973242e2c51f6719dc23c7f8528b7c468f.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 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,
- &paramtype)) {
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &paramtype)) {
RETURN_FALSE;
}