Corveda / PHPSandbox

A PHP-based sandboxing library with a full suite of configuration and validation options.
https://phpsandbox.org
Other
220 stars 46 forks source link

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

Open asabirov opened 5 years ago

asabirov commented 5 years ago

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