You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpnamespacelang;
class IllegalStateException extends \Exception {
}
Actual result
$ hhvm test.php
Loading lang\Value
Loading IllegalStateException
Warning: include(IllegalStateException.php): File not found in /home/friebe/test.php on line 6
Fatal error: Uncaught Error: Class undefined: IllegalStateException in /home/friebe/test.php:10
The problem can be clearly seen in the second Loading output - it should include the namespace, but doesn't. This code works fine with older HHVM versions, e.g. 3.21.
Oops, sorry, seems to be a duplicate of #8275; although a slightly different case: This is related to code inside the functions, while the other bug is about type hints.
HHVM Version
Operating System and Version
Debian Stretch
Standalone code, or other way to reproduce the problem
test.php:
lang/Value.php:
lang/IllegalStateException.php:
Actual result
The problem can be clearly seen in the second
Loading
output - it should include the namespace, but doesn't. This code works fine with older HHVM versions, e.g. 3.21.Expected result
The text was updated successfully, but these errors were encountered: