diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-03-03 21:12:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-03-03 21:12:16 +0000 |
commit | 1a3f7f64509725a2ecac2a266e79391ac9d731cf (patch) | |
tree | 4c72bef71951dec0ecefb8df34aeb606e2c95505 | |
parent | 1aa32afa8ab6d6f6011b322766d8aaf210b63501 (diff) | |
download | php-git-1a3f7f64509725a2ecac2a266e79391ac9d731cf.tar.gz |
Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers())
-rwxr-xr-x | ext/pdo/pdo_dbh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 65a5735d2c..a9444c1477 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -992,7 +992,7 @@ static PHP_METHOD(PDO, errorInfo) pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); if (ZEND_NUM_ARGS()) { - RETURN_FALSE; + WRONG_PARAM_COUNT; } PDO_CONSTRUCT_CHECK; @@ -1133,6 +1133,10 @@ static PHP_METHOD(PDO, getAvailableDrivers) { HashPosition pos; pdo_driver_t **pdriver; + + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } array_init(return_value); |