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 | 51c17c413c9dfbc398958e28dda67f8e02d13946 (patch) | |
| tree | 1396f8b42d987531d101b50d5c5c4d009fa14963 | |
| parent | 5143fe41e26f5cadeadbefaaa07715ef5407063d (diff) | |
| download | php-git-51c17c413c9dfbc398958e28dda67f8e02d13946.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 265b05aa6f..7f81d9408a 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1144,8 +1144,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; } |
