Skip to content

Commit

Permalink
A possible typo
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoguang Sun <[email protected]>
  • Loading branch information
sunxiaoguang authored and nikic committed May 31, 2024
1 parent a3f6b8f commit c2c52d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Book/php7/internal_types/strings/zend_strings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ This also brings us to the next topic: refcount management. Rather than using ra
return zend_string_copy(str);

Unlike ``GC_ADDREF()``, the ``zend_string_addref()`` function will handle immutable strings properly. However, the
function that is used most often by far is ``zend_string_copy()``. This function also only increments the refcount,
function that is used most often by far is ``zend_string_copy()``. This function not only increments the refcount,
but also returns the original string. This makes code more readable in practice.

While a ``zend_string_dup()`` function that performs an actual copy of the string (rather than only a refcount
Expand Down

0 comments on commit c2c52d9

Please sign in to comment.