PHP: 7.3.5
PSYSH: 0.11.9, 0.11.10
Sometimes I manually include
or require
to test something. This used to work, but as of 0.11.9 (maybe earlier) and 0.11.10 when I run the command $a = require_once 'file.php';
$a is left unset, and the code is not included in the shell. No error is thrown, seemingly nothing occurs. Using sudo
also does not seem to work.
The command is also not included in the command history.
This affects require
, require_once
, include
, and include_once
.
I am initializing a base code behind it using a configuration function, and that does include Composer.
I didn't see anything in the notes about this in the release notes or Wiki, and it seems strange that I can no longer do so.
I am currently using an older version of PHP, 7.3.5, but I do not see support for that discontinued yet.
This has worked fine in previous versions of PSYSH so it not working now came as a bit of a surprise! Let me know if this is a known issue, or related to my own setup, or a PHP 7 issue.