-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--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" |