Re: cvs: php-src(PHP_5_3) /ext/pdo pdo_dbh.c
| From: | Antony Dovgal | Date: | Tue, 04 Mar 2008 08:28:58 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) /ext/pdo pdo_dbh.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-48850@lists.php.net to get a copy of this message | ||
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