interned strings
[m6w6/ext-psi] / src / token.c
index 5dbb2eccad9df30bb227ac5157c656a4379f5756..316c734384843e16e275face12f3c9c81cf382ad 100644 (file)
@@ -46,7 +46,7 @@ struct psi_token *psi_token_init(token_t token_typ, const char *token_txt,
        T->col = col;
        T->line = line;
        T->file = zend_string_copy(file);
-       T->text = zend_string_init(token_txt, token_len, 1);
+       T->text = zend_string_init_interned(token_txt, token_len, 1);
 #if PSI_DEBUG_TOKEN_ALLOC
        fprintf(stderr, "PSI: token_init %p\n", T);
 #endif