Skip to content

Commit 5880fa2

Browse files
committed
build fix
1 parent 99a0468 commit 5880fa2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/pgsql/pgsql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ PHP_FUNCTION(pg_fetch_result)
19001900
{
19011901
zval *result;
19021902
zend_string *field_name;
1903-
zend_long row, field_offset = 0;
1903+
zend_long row = 0, field_offset = 0;
19041904
bool row_is_null = false;
19051905
PGresult *pgsql_result;
19061906
pgsql_result_handle *pg_result;
@@ -2236,7 +2236,7 @@ static void php_pgsql_data_info(INTERNAL_FUNCTION_PARAMETERS, int entry_type, bo
22362236
{
22372237
zval *result;
22382238
zend_string *field_name;
2239-
zend_long row, field_offset = 0;
2239+
zend_long row = 0, field_offset = 0;
22402240
bool row_is_null = false;
22412241
PGresult *pgsql_result;
22422242
pgsql_result_handle *pg_result;

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ PHP_FUNCTION(substr_replace)
23152315
HashTable *from_ht;
23162316
zend_long from_long;
23172317
HashTable *len_ht = NULL;
2318-
zend_long len_long;
2318+
zend_long len_long = 0;
23192319
bool len_is_null = 1;
23202320
zend_long l = 0;
23212321
zend_long f;

0 commit comments

Comments
 (0)