Just used to the old syntax ;-)

On 4-Mar-08, at 3:28 AM, Antony Dovgal wrote:

On 04.03.2008 00:12, Ilia Alshanetsky wrote:
iliaa           Mon Mar  3 21:12:16 2008 UTC

 Modified files:              (Branch: PHP_5_3)
   /php-src/ext/pdo     pdo_dbh.c
 Log:
Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers())

Why not use the newly added  zend_parse_parameters_none() ?

        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;
+       }
        


--
Wbr,
Antony Dovgal

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


Ilia Alshanetsky





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

Reply via email to