File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Book/php7/internal_types/zvals Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ Because of this we need to create a new zend_string using ``zend_string_init()``
331
331
of the string on the heap. Because the zval "carries" its value, it will make sure to free this copy when the zval is
332
332
destroyed, or at least to decrement its refcount. This also applies to any other "complex" value of the zval. E.g.
333
333
if you set the ``zend_array* `` for an array, the zval will carry that later and release it when the zval is destroyed.
334
- By "releasing", we mean weither decrement the reference counter, or free the structure if reference counter falls to
334
+ By "releasing", we mean either decrement the reference counter, or free the structure if reference counter falls to
335
335
zero. When using primitive types like integers or doubles you obviously don't need to care about this, as they are
336
336
always copied.
337
337
All those memory management steps, such as allocation, free or reference counting; are detailed in the
You can’t perform that action at this time.
0 commit comments