X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftoken.c;h=316c734384843e16e275face12f3c9c81cf382ad;hp=5dbb2eccad9df30bb227ac5157c656a4379f5756;hb=2559f07a178b681dc240e20153ff5abdff54cb34;hpb=f24325648c601d4b0835074f271072f4832e4478 diff --git a/src/token.c b/src/token.c index 5dbb2ec..316c734 100644 --- a/src/token.c +++ b/src/token.c @@ -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