diff options
Diffstat (limited to 'ext/pdo/pdo_sql_parser.re')
| -rw-r--r-- | ext/pdo/pdo_sql_parser.re | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index 96c131fe96..629f3079c2 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -218,8 +218,7 @@ safe:  						buf = php_stream_copy_to_mem(stm, PHP_STREAM_COPY_ALL, 0);  						if (!buf) { -							ret = -1; -							goto clean_up; +							buf = ZSTR_EMPTY_ALLOC();  						}  						if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen,  								param->param_type)) {  | 
