xref: /php-src/Zend/tests/gh12366.phpt (revision 53dbb760)
1--TEST--
2GH-12366: Use-after-free of constant name when script doesn't fit in SHM
3--EXTENSIONS--
4opcache
5--INI--
6opcache.enable_cli=1
7opcache.file_update_protection=1
8--FILE--
9<?php
10$file = __DIR__ . '/gh12366.inc';
11// Update timestamp and use opcache.file_update_protection=1 to prevent included file from being persisted in shm.
12touch($file);
13require $file;
14?>
15--EXPECT--
16enum(Level::Debug)
17