mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
initialize memory with 0's, so we won't get garbage if the statement does not set the var
This commit is contained in:
parent
7b42968afd
commit
8c44974966
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, d
|
|||
zval_dtor(param->parameter);
|
||||
|
||||
Z_STRLEN_P(param->parameter) = param->max_value_len;
|
||||
Z_STRVAL_P(param->parameter) = emalloc(Z_STRLEN_P(param->parameter)+1);
|
||||
Z_STRVAL_P(param->parameter) = ecalloc(1, Z_STRLEN_P(param->parameter)+1);
|
||||
P->used_for_output = 1;
|
||||
|
||||
P->actual_len = Z_STRLEN_P(param->parameter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue