1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/opcache/tests/bug76446.phpt
Máté Kocsis 36935e42ea Improve undefined variable error messages
Closes GH-5312
2020-03-31 13:02:32 +02:00

23 lines
446 B
PHP

--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)