Skip to content

Commit d265f25

Browse files
Hailongnikic
authored andcommitted
Fix way to set string to interned for PHP 7.3
1 parent fe58fd8 commit d265f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Book/php7/extensions_design/globals_management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ Here is the patched example introducing true globals, we just show the diff abou
372372
*result = zend_string_init(str, strlen(str), 1);
373373
zend_string_hash_val(*result);
374374

375-
GC_FLAGS(*result) |= IS_INTERNED;
375+
GC_ADD_FLAGS(*result, IS_STR_INTERNED);
376376
}
377377

378378
static void pib_rnd_init(void)

0 commit comments

Comments
 (0)