Skip to content
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

在 phar 环境运行时,计算 Ip2region 路径时报错。 #126

Open
zoujingli opened this issue Aug 29, 2024 · 3 comments
Open

在 phar 环境运行时,计算 Ip2region 路径时报错。 #126

zoujingli opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@zoujingli
Copy link

dirname(): Argument #1 ($path) must be of type string, bool given[31] in phar:///kitchen.phar/vendor/xmo/mine-helpers/src/Ip2region.php

@dosubot dosubot bot added the bug Something isn't working label Aug 29, 2024
@zoujingli zoujingli changed the title 在 phar 环境运行时,在计算 Ip2region 路径时报错。 在 phar 环境运行时,计算 Ip2region 路径时报错。 Aug 29, 2024
@zoujingli
Copy link
Author

不使用 realpath 即可。

@zds-s
Copy link
Member

zds-s commented Aug 30, 2024

先手动替换一下这个类处理吧

Copy link

dosubot bot commented Nov 29, 2024

Hi, @zoujingli. I'm Dosu, and I'm helping the components team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The issue involves an error in a phar environment with the Ip2region path calculation.
  • The dirname() function is receiving a boolean instead of a string.
  • You suggested that not using realpath might resolve the issue.
  • @zds-s recommended manually replacing the class handling the issue as a temporary solution.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the components repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

2 participants