iliaa                                    Fri, 20 Nov 2009 18:54:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291096

Log:
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data 
type

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/pdo/pdo_dbh.c
    U   php/php-src/branches/PHP_5_3/ext/pdo/pdo_dbh.c
    U   php/php-src/trunk/ext/pdo/pdo_dbh.c

Modified: php/php-src/branches/PHP_5_2/ext/pdo/pdo_dbh.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/pdo/pdo_dbh.c      2009-11-20 17:07:32 UTC 
(rev 291095)
+++ php/php-src/branches/PHP_5_2/ext/pdo/pdo_dbh.c      2009-11-20 18:54:08 UTC 
(rev 291096)
@@ -1091,8 +1091,7 @@
        char *qstr;
        int qlen;

-       if (FAILURE == zend_parse_parameters(1 TSRMLS_CC, "s|l", &str, &str_len,
-                       &paramtype)) {
+       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", 
&str, &str_len, &paramtype)) {
                RETURN_FALSE;
        }


Modified: php/php-src/branches/PHP_5_3/ext/pdo/pdo_dbh.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo/pdo_dbh.c      2009-11-20 17:07:32 UTC 
(rev 291095)
+++ php/php-src/branches/PHP_5_3/ext/pdo/pdo_dbh.c      2009-11-20 18:54:08 UTC 
(rev 291096)
@@ -1144,8 +1144,7 @@
        char *qstr;
        int qlen;

-       if (FAILURE == zend_parse_parameters(1 TSRMLS_CC, "s|l", &str, &str_len,
-                       &paramtype)) {
+       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", 
&str, &str_len, &paramtype)) {
                RETURN_FALSE;
        }


Modified: php/php-src/trunk/ext/pdo/pdo_dbh.c
===================================================================
--- php/php-src/trunk/ext/pdo/pdo_dbh.c 2009-11-20 17:07:32 UTC (rev 291095)
+++ php/php-src/trunk/ext/pdo/pdo_dbh.c 2009-11-20 18:54:08 UTC (rev 291096)
@@ -1145,8 +1145,7 @@
        char *qstr;
        int qlen;

-       if (FAILURE == zend_parse_parameters(1 TSRMLS_CC, "s|l", &str, &str_len,
-                       &paramtype)) {
+       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", 
&str, &str_len, &paramtype)) {
                RETURN_FALSE;
        }


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

Reply via email to