Re: cvs: php-src(PHP_5_3) /ext/pdo pdo_dbh.c

From: 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:
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

« previous php.cvs (#48863) next »