summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-03-03 21:14:33 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-03-03 21:14:33 +0000
commit0418676cc672e204fa06599d14345fba36190350 (patch)
tree869ab2eb928bd63dfa45b1bd3140d8a40e521895
parent5d66c333851aa8137738afe7054f0c0f4e221af8 (diff)
downloadphp-git-0418676cc672e204fa06599d14345fba36190350.tar.gz
MFB: Fixed bug #44166 (Parameter handling flaw in
PDO::getAvailableDrivers())
-rwxr-xr-xext/pdo/pdo_dbh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index d8c5034637..fda9a08a2a 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);