diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-11-20 18:54:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-11-20 18:54:08 +0000 |
commit | 2b632d973242e2c51f6719dc23c7f8528b7c468f (patch) | |
tree | 62a0d339ab0cb8fca57a1c4ef03b82a3c7e05120 | |
parent | 7674c942c7f0a128b3b8a50e248b0b2fe02e41d8 (diff) | |
download | php-git-2b632d973242e2c51f6719dc23c7f8528b7c468f.tar.gz |
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
-rwxr-xr-x | ext/pdo/pdo_dbh.c | 3 |
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, - ¶mtype)) { + if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, ¶mtype)) { RETURN_FALSE; } |