iliaa           Mon Mar  3 21:13:29 2008 UTC

  Modified files:              
    /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.147&r2=1.148&diff_format=u
Index: php-src/ext/pdo/pdo_dbh.c
diff -u php-src/ext/pdo/pdo_dbh.c:1.147 php-src/ext/pdo/pdo_dbh.c:1.148
--- php-src/ext/pdo/pdo_dbh.c:1.147     Thu Feb 21 13:38:12 2008
+++ php-src/ext/pdo/pdo_dbh.c   Mon Mar  3 21:13:29 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_dbh.c,v 1.147 2008/02/21 13:38:12 iliaa Exp $ */
+/* $Id: pdo_dbh.c,v 1.148 2008/03/03 21:13:29 iliaa Exp $ */
 
 /* The PDO Database Handle Class */
 
@@ -999,7 +999,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;
 
@@ -1140,6 +1140,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