-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing $file in custom error handler #4625
Comments
printing backtrace content here shows that we have an empty content at 0 when we declare a namespace :
|
If you replace the If you keep the |
I am going over old issues on this repository, to see which ones apply to the current versions of hhvm. I have tested your repro, but with an explicit <?hh // partial
namespace X;
class Test {
public static function invoke() {
\set_error_handler(function($severity, $message, $file) {
\var_dump($file);
});
\trigger_error('array given', \E_USER_WARNING);
}
}
Test::invoke(); |
In this case (http://3v4l.org/dWuvG) is
$file
empty string:If you remove a namespace declaration, the problem will disappear (see http://3v4l.org/dETSj)
The text was updated successfully, but these errors were encountered: