Skip to content

Commit 0e0d3bb

Browse files
bukkanikic
authored andcommitted
Fix small typo in zvals memory management
1 parent b596db4 commit 0e0d3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Book/php7/zvals/memory_management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ The ``SEPARATE_ARRAY()`` macro takes care not only of shared arrays, but also of
426426
ZVAL_EMPTY_ARRAY(&val); // Immutable empty array.
427427
SEPARATE_ARRAY(&val); // Mutable copy of empty array.
428428

429-
The ``SEPARATE_ZVAL_NOREF()`` macro separates a generic zval, but is only rarely useful, as sepatation typically
429+
The ``SEPARATE_ZVAL_NOREF()`` macro separates a generic zval, but is only rarely useful, as separation typically
430430
directly precedes a modification, and you need to know the zval type to perform any meaningful modification anyway.
431431

432432
Objects and resources do not require separation, as they have reference-like semantics.

0 commit comments

Comments
 (0)