Re: cvs: php-src(PHP_5_3) /ext/pdo pdo_dbh.c
| From: | Ilia Alshanetsky | Date: | Tue, 04 Mar 2008 13:20:52 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) /ext/pdo pdo_dbh.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-48863@lists.php.net to get a copy of this message | ||
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:Ilia Alshanetskyiliaa Mon Mar 3 21:12:16 2008 UTCWhy not use the newly added zend_parse_parameters_none() ?Modified files: (Branch: PHP_5_3)/php-src/ext/pdo pdo_dbh.c Log: Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers())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