[php-src] master: Doc: Rename ZSTR_INIT to ZSTR_INIT_LITERAL in documentation

Weilin Du via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Weilin Du (LamentXU123)
Committer: GitHub (web-flow)
Pusher: LamentXU123
Date: 2026-07-11T17:06:34+08:00

Commit: https://github.com/php/php-src/commit/6e2048025023d85f08064eb34ea2918eb5932e5c
Raw diff: https://github.com/php/php-src/commit/6e2048025023d85f08064eb34ea2918eb5932e5c.diff

Doc: Rename ZSTR_INIT to ZSTR_INIT_LITERAL in documentation

We don't have a macro named ZSTR_INIT. This should be ZSTR_INIT_LITERAL instead.

Changed paths:
  M  docs/source/core/data-structures/zend_string.rst


Diff:

diff --git a/docs/source/core/data-structures/zend_string.rst b/docs/source/core/data-structures/zend_string.rst
index 292028e43497..d341347277a4 100644
--- a/docs/source/core/data-structures/zend_string.rst
+++ b/docs/source/core/data-structures/zend_string.rst
@@ -70,7 +70,7 @@ new strings.
    -  -  Function/Macro [#persistent]_
       -  Description
 
-   -  -  ``ZSTR_INIT(s, p)``
+   -  -  ``ZSTR_INIT_LITERAL(s, p)``
       -  Creates a new string from a string literal.
 
    -  -  ``zend_string_init(s, l, p)``
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.