]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44166 (Parameter handling flaw in
authorIlia Alshanetsky <iliaa@php.net>
Mon, 3 Mar 2008 21:13:29 +0000 (21:13 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 3 Mar 2008 21:13:29 +0000 (21:13 +0000)
PDO::getAvailableDrivers())

ext/pdo/pdo_dbh.c

index 9642b8324c76fcad15ee23e78092bf175cc55f09..a1c586d745d182d9f84c92c807c8795671c772e2 100755 (executable)
@@ -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);