From: Wez Furlong Date: Tue, 18 May 2004 08:45:28 +0000 (+0000) Subject: Quoting here leads to problems with databases that really support bound parameters. X-Git-Tag: RELEASE_0_1~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=940c896e157ed91f07d7af3ba93062e72171e142;p=php Quoting here leads to problems with databases that really support bound parameters. We should do this conditionally based on the emulate_prepare flag. --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 1d7d4bbc9d..a47d5edde3 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -265,6 +265,7 @@ static PHP_METHOD(PDOStatement, execute) } param.param_type = PDO_PARAM_STR; +#if 0 if(stmt->dbh->methods->quoter(stmt->dbh, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), "edstr, "edstrlen TSRMLS_DC)) { int refcount = (*tmp)->refcount; @@ -272,6 +273,7 @@ static PHP_METHOD(PDOStatement, execute) ZVAL_STRINGL(*tmp, quotedstr, quotedstrlen, 0); (*tmp)->refcount = refcount; } +#endif param.parameter = *tmp; if (!really_register_bound_param(¶m, stmt, 1 TSRMLS_CC)) {