From: Ilia Alshanetsky Date: Mon, 3 Mar 2008 21:13:29 +0000 (+0000) Subject: MFB: Fixed bug #44166 (Parameter handling flaw in X-Git-Tag: RELEASE_2_0_0a1~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18c0b63dd11afb3f56ef0eaf5877345b40a774a1;p=php MFB: Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers()) --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 9642b8324c..a1c586d745 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -999,7 +999,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; @@ -1140,6 +1140,10 @@ static PHP_METHOD(PDO, getAvailableDrivers) { HashPosition pos; pdo_driver_t **pdriver; + + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } array_init(return_value);