We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290b1a1 commit fc801beCopy full SHA for fc801be
Book/php7/internal_types/strings/zend_strings.rst
@@ -90,7 +90,7 @@ The most fundamental string creation function on which all others are based is `
90
ZSTR_VAL(str)[i] = 'a';
91
}
92
// Don't forget to null-terminate!
93
- ZSTR_LEN(str)[len] = '\0';
+ ZSTR_VAL(str)[len] = '\0';
94
95
This function allocates a string of a certain length (as always, the length does not include the trailing null byte),
96
and leaves its initialization to you. Like all string allocation functions, it accepts a parameter that determines
0 commit comments