mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
fix build
This commit is contained in:
parent
badfa1304d
commit
39522d9588
1 changed files with 3 additions and 0 deletions
|
@ -5739,6 +5739,9 @@ PHP_PGSQL_API int php_pgsql_result2array(PGresult *pg_result, zval *ret_array TS
|
|||
} else {
|
||||
char *element = PQgetvalue(pg_result, pg_row, i);
|
||||
if (element) {
|
||||
char *data;
|
||||
size_t data_len;
|
||||
|
||||
data_len = strlen(element);
|
||||
data = safe_estrndup(element, data_len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue