Skip to content

Commit 4b60eac

Browse files
committed
Use ZVAL_STR instead of ZVAL_STRINGL when copying a zend_string
1 parent 170f634 commit 4b60eac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ext/pgsql/pgsql.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4696,7 +4696,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
46964696
err = 1;
46974697
}
46984698
else {
4699-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
4699+
ZVAL_STR(&new_val, Z_STR_P(val));
47004700
}
47014701
#undef REGEX0
47024702
}
@@ -4746,7 +4746,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
47464746
}
47474747
}
47484748
else {
4749-
ZVAL_STRING(&new_val, Z_STRVAL_P(val));
4749+
ZVAL_STR(&new_val, Z_STR_P(val));
47504750
}
47514751
#undef REGEX0
47524752
#undef REGEX1
@@ -4850,7 +4850,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
48504850
err = 1;
48514851
}
48524852
else {
4853-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
4853+
ZVAL_STR(&new_val, Z_STR_P(val));
48544854
convert_to_long(&new_val);
48554855
}
48564856
}
@@ -4896,7 +4896,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
48964896
err = 1;
48974897
}
48984898
else {
4899-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
4899+
ZVAL_STR(&new_val, Z_STR_P(val));
49004900
php_pgsql_add_quotes(&new_val, 1);
49014901
}
49024902
#undef REGEX0
@@ -4965,7 +4965,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
49654965
err = 1;
49664966
}
49674967
else {
4968-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
4968+
ZVAL_STR(&new_val, Z_STR_P(val));
49694969
php_pgsql_add_quotes(&new_val, 1);
49704970
}
49714971
#undef REGEX0
@@ -4998,7 +4998,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
49984998
err = 1;
49994999
}
50005000
else {
5001-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
5001+
ZVAL_STR(&new_val, Z_STR_P(val));
50025002
php_pgsql_add_quotes(&new_val, 1);
50035003
}
50045004
#undef REGEX0
@@ -5151,7 +5151,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
51515151
err = 1;
51525152
}
51535153
else {
5154-
ZVAL_STRINGL(&new_val, Z_STRVAL_P(val), Z_STRLEN_P(val));
5154+
ZVAL_STR(&new_val, Z_STR_P(val));
51555155
php_pgsql_add_quotes(&new_val, 1);
51565156
}
51575157
#undef REGEX0

0 commit comments

Comments
 (0)