Skip to content
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

api.php exception handling bug #296

Open
miceZipper opened this issue Jan 24, 2022 · 0 comments · May be fixed by #297
Open

api.php exception handling bug #296

miceZipper opened this issue Jan 24, 2022 · 0 comments · May be fixed by #297

Comments

@miceZipper
Copy link

miceZipper commented Jan 24, 2022

My system:
Ubuntu Server 21.10
PHP 8.0.8 (cli) (built: Oct 26 2021 11:42:42) ( NTS )
Apache/2.4.48 (Ubuntu) (2022-01-05T14:29:15)

Hello team,
in case of the exception there is the try-catch statement in the api.php file. The $vbox variable is declared right before the try-catch statement and it is commented like it would be initiated further. But in the catch statement this variable is used like it had been initiated earlier. There is no $vbox initialization in the catch statement which causes PHP FATAL error in case of exception.

Kindly take a look into it please.

Thank in advance!

miceZipper added a commit to miceZipper/phpvirtualbox that referenced this issue Jan 24, 2022
miceZipper added a commit to miceZipper/phpvirtualbox that referenced this issue Jan 24, 2022
@miceZipper miceZipper linked a pull request Feb 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant