1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/standard/string.c: don't use STR_EMPTY_ALLOC() (#19033)

This was the only remaining use of a compatibility alias from 10 years ago;
replace with `ZSTR_EMPTY_ALLOC()`.
This commit is contained in:
DanielEScherzer
2025-07-04 14:41:24 -07:00
committed by GitHub
parent 3558293ce8
commit 4e42ad5bf2

View File

@@ -2404,7 +2404,7 @@ PHP_FUNCTION(substr_replace)
if (repl_idx < repl_ht->nNumUsed) {
repl_str = zval_get_tmp_string(tmp_repl, &tmp_repl_str);
} else {
repl_str = STR_EMPTY_ALLOC();
repl_str = ZSTR_EMPTY_ALLOC();
}
}