Skip to content

Fatal error: Cannot use isset() on the result of an expression  #16

@asabirov

Description

@asabirov

PHPSandbox throws an error if there's a check for a superglobal variable.

The code:

<?php
isset($_SERVER);
?>

The error message:

Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /.../vendor/corveda/php-sandbox/src/PHPSandbox.php(6885) : eval()'d code on line 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions