xref: /PHP-8.0/ext/opcache/tests/bug76446.phpt (revision 36935e42)
1--TEST--
2Bug #76446 (zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
9--FILE--
10<?php
11function test()
12{
13    $openmenu = '';
14    $openstr2 = "&amp;openmenu={$openmenu}{$addlang}\"";
15    return 0;
16}
17
18var_dump(test());
19?>
20--EXPECTF--
21Warning: Undefined variable $addlang in %s on line %d
22int(0)
23