# Bug or not: accel_init_interned_string_for_php returns non-interned strings

- Thread: https://externals.io/message/103646
- Original archive: https://news-web.php.net/php.internals/103646
- Started by lauri.kentta@gmail.com on 2018-12-28T12:11:59+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #103646 — lauri.kentta@gmail.com — 2018-12-28T12:11:59+00:00

URL: https://externals.io/message/103646#103646

I'm investigating the various segfault bugs in PHP 7.3.0.

I was looking at ext/opcache/ZendAccelerator.c:545 and :552, where 
accel_init_interned_string_for_php returns normal strings instead of 
interned strings. As I understand it, there could be (buggy) code which 
frees a string prematurely (possible with normal string but would not 
happen with interned), causing corruption.

Is this a bug or just some Zend quirk?

-- 
Lauri Kenttä
