Skip to content

Commit

Permalink
Don't ignore the 2nd parameter to PDO's quote() method that identifie…
Browse files Browse the repository at this point in the history
…s the data type
  • Loading branch information
Ilia Alshanetsky committed Nov 20, 2009
1 parent 7674c94 commit 2b632d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/pdo/pdo_dbh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2b632d9

Please sign in to comment.