xref: /PHP-7.4/ext/opcache/tests/bug76446.phpt (revision 609385bb)
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--
21Notice: Undefined variable: addlang in %sbug76446.php on line %d
22int(0)
23