Skip to content

PHP notices aren't shown on runner #3

Open
@ggorlen

Description

@ggorlen

PHP has useful runtime notices that aren't shown by the code runner, making it more difficult to debug PHP code. For example,

<?php
error_reporting(E_ALL);
print $doesntexist;
[][1];

should print:

PHP Notice:  Undefined variable: doesntexist in main.php on line 2
PHP Notice:  Undefined offset: 1 in main.php on line 3

I know the runner halts and captures when a warning or error is encountered but it doesn't appear to log notices. Is there a good reason not to print these notices on the runner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions