]> granicus.if.org Git - php/commitdiff
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
authorIlia Alshanetsky <iliaa@php.net>
Fri, 20 Nov 2009 18:54:08 +0000 (18:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 20 Nov 2009 18:54:08 +0000 (18:54 +0000)
ext/pdo/pdo_dbh.c

index 2d39e6ed355fd21d3178bf4b23a919f0d038186d..3f190c12121b99910ba442595a0ade9e203b3aa7 100755 (executable)
@@ -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,
-                       &paramtype)) {
+       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &paramtype)) {
                RETURN_FALSE;
        }