]> 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 d3ccdcdc749a91be156b74f4f8d04ced3c99c7df..32dfa0ee512d37178ded240261730376041c35c0 100755 (executable)
@@ -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;
        }