mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
It is not sufficient to just add the additional types for aliased variables at the end of type inference, because types of derived variables may depend on them. Make sure the additional types are always added whenever the type of an aliased variable is updated.
23 lines
399 B
PHP
23 lines
399 B
PHP
--TEST--
|
|
Bug #75893: file_get_contents $http_response_header variable bugged with opcache
|
|
--INI--
|
|
opcache.enable_cli=1
|
|
track_errors=1
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
echo $undef;
|
|
$foo = $php_errormsg;
|
|
var_dump($foo[0]);
|
|
}
|
|
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
|
|
|
|
Notice: Undefined variable: undef in %s on line %d
|
|
string(1) "U"
|