summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-08-01 22:45:31 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-08-01 22:45:31 +0000
commit3f1b9990a4b6abc681b490f00e2ef66f9e39771d (patch)
tree5895cd5c0a76828e448b3913f530646c925df408 /ext/pdo_sqlite
parente942c16f7cbc7075b7cb868a509dec7b1e2cb850 (diff)
downloadphp-git-3f1b9990a4b6abc681b490f00e2ef66f9e39771d.tar.gz
Fixed bug #41831 (pdo_sqlite prepared statements convert resources to
strings).
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r--ext/pdo_sqlite/sqlite_statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c
index 8e58ff8367..c831795246 100644
--- a/ext/pdo_sqlite/sqlite_statement.c
+++ b/ext/pdo_sqlite/sqlite_statement.c
@@ -109,7 +109,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
php_stream *stm;
php_stream_from_zval_no_verify(stm, &param->parameter);
if (stm) {
- SEPARATE_ZVAL_IF_NOT_REF(&param->parameter);
+ SEPARATE_ZVAL(&param->parameter);
Z_TYPE_P(param->parameter) = IS_STRING;
Z_STRLEN_P(param->parameter) = php_stream_copy_to_mem(stm,
&Z_STRVAL_P(param->parameter), PHP_STREAM_COPY_ALL, 0);