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

bin/server -c 不携带路径会报 NOTICE #19

Closed
wi1dcard opened this issue Nov 28, 2018 · 2 comments
Closed

bin/server -c 不携带路径会报 NOTICE #19

wi1dcard opened this issue Nov 28, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@wi1dcard
Copy link
Collaborator

➜  smproxy bin/server -c

PHP Notice:  Undefined offset: 2 in /Users/xxx/web/smproxy/src/Command/Command.php on line 29
PHP Stack trace:
PHP   1. {main}() /Users/xxx/web/smproxy/bin/server:0
PHP   2. SMProxy\Command\Command->run() /Users/xxx/web/smproxy/bin/server:10

Notice: Undefined offset: 2 in /Users/xxx/web/smproxy/src/Command/Command.php on line 29

Call Stack:
    0.0024     391384   1. {main}() /Users/xxx/web/smproxy/bin/server:0
    0.0471    1897160   2. SMProxy\Command\Command->run() /Users/xxx/web/smproxy/bin/server:10

ERROR: No such file or directory!

观察 /Users/xxx/web/smproxy/src/Command/Command.php on line 29 代码发现,应当做好判断。

@wi1dcard
Copy link
Collaborator Author

另外我建议设置全局的 error_handler,同时关闭报错信息显示。

@wi1dcard wi1dcard added the enhancement New feature or request label Nov 28, 2018
@louislivi
Copy link
Owner

dd6b2ed 已解决

@louislivi louislivi self-assigned this Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants