iliaa           Mon Mar  3 21:14:34 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo    pdo_dbh.c 
  Log:
  MFB: Fixed bug #44166 (Parameter handling flaw in
  PDO::getAvailableDrivers())
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_dbh.c?r1=1.82.2.31.2.21&r2=1.82.2.31.2.22&diff_format=u
Index: php-src/ext/pdo/pdo_dbh.c
diff -u php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.21 
php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.22
--- php-src/ext/pdo/pdo_dbh.c:1.82.2.31.2.21    Thu Feb 21 13:37:51 2008
+++ php-src/ext/pdo/pdo_dbh.c   Mon Mar  3 21:14:33 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_dbh.c,v 1.82.2.31.2.21 2008/02/21 13:37:51 iliaa Exp $ */
+/* $Id: pdo_dbh.c,v 1.82.2.31.2.22 2008/03/03 21:14:33 iliaa Exp $ */
 
 /* The PDO Database Handle Class */
 
@@ -992,7 +992,7 @@
        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 @@
 {
        HashPosition pos;
        pdo_driver_t **pdriver;
+
+       if (ZEND_NUM_ARGS()) {
+               WRONG_PARAM_COUNT;
+       }
        
        array_init(return_value);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to