-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Error accessing box
from Windows (getenv('ANSICON')
returns boolean)
#1002
Comments
Hey @andrey-helldar, I think this is due to the change to strict types in Box 3.8, which has led to the This should be fixable by basically falling back to an empty string when |
Yes, but I'm not using the environment settings and the In addition, if we try to execute a simple variable lookup code, we get the following: $ php -r "var_dump(getenv('ANSICON'));"
bool(false) |
What I'm meaning is, this is code from Box (not LZ). It doesn't matter whether you are using the Env component, it will still try and run this code as part of the environment checker. As you can see from your example code, running it returns As a temporary workaround, you could disable the requirements checker for your Phar by adding However, to fix this, it will require a change in Box so that this strict type check doesn't fail. |
@andrey-helldar, just to mention, this will be resolved once #999 is merged and released. 👍🏻 |
@owenvoke, wow. I was trying to find issues or PRs for my issue, but searched for |
same issue for me on Windows, reverting to 4.2.0 fixes it. |
#999 has been merged and 4.4.0 release. If there is still an issue please comment on it or open a new one. |
Bug report
I am using Laravel Zero which contains the Box binary.
Yesterday they updated the framework version with Box file version 4.3.8. Previously version 4.2.0 was used.
There are no problems with version 4.2.0, but in 4.3.8 they appeared and manifest themselves as follows:
box
version of the file, I get the same error.With all this, the error is displayed only under Windows. There are no problems when running inside Ubuntu.
box.json.dist
Output
On execution, the error points to the code
trim(getenv('ANSICON'))
I also downloaded the phar file from the latest release and also got an error:
Output
The text was updated successfully, but these errors were encountered: