Skip to content

Commit 1cff6a0

Browse files
flaviohelenonikic
authored andcommitted
Fix a typo on PHP7/ZVALS
1 parent 9b23758 commit 1cff6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Book/php7/zvals/casts_and_operations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exists::
8888
zend_string *tmp_str;
8989
zend_string *str = zval_get_tmp_string(val, &tmp_str);
9090
// Do something with str.
91-
zend_tmp_string_release(str);
91+
zend_tmp_string_release(tmp_str);
9292

9393
This API works the same way as ``zval_get_string()``, but avoids a refcount increment and decrement for the common
9494
case where the value is already a string.

0 commit comments

Comments
 (0)