summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug76446.phpt
blob: 41802747cd6d0f1dc7d89ff07e20170eafea0ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #76446 (zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function test()
{
    $openmenu = '';
    $openstr2 = "&amp;openmenu={$openmenu}{$addlang}\"";
    return 0;
}

var_dump(test());
?>
--EXPECTF--
Warning: Undefined variable $addlang in %s on line %d
int(0)