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

Optimized the detect logical of swoole shortname #653

Merged
merged 2 commits into from Oct 7, 2019

Conversation

huangzhhui
Copy link
Member

@huangzhhui huangzhhui commented Oct 6, 2019

Optimized the detect logical of swoole shortname.

swoole.use_shortname = true       => string(1) "1"     => enabled
swoole.use_shortname = "true"     => string(1) "1"     => enabled
swoole.use_shortname = on         => string(1) "1"     => enabled
swoole.use_shortname = On         => string(1) "1"     => enabled
swoole.use_shortname = "On"       => string(2) "On"    => enabled
swoole.use_shortname = "on"       => string(2) "on"    => enabled
swoole.use_shortname = 1          => string(1) "1"     => enabled
swoole.use_shortname = "1"        => string(1) "1"     => enabled
swoole.use_shortname = 2          => string(1) "1"     => enabled
swoole.use_shortname = false      => string(0) ""      => disabled
swoole.use_shortname = "false"    => string(5) "false" => disabled
swoole.use_shortname = off        => string(0) ""      => disabled
swoole.use_shortname = Off        => string(0) ""      => disabled
swoole.use_shortname = "off"      => string(3) "off"   => disabled
swoole.use_shortname = "Off"      => string(3) "Off"   => disabled
swoole.use_shortname = 0          => string(1) "0"     => disabled
swoole.use_shortname = "0"        => string(1) "0"     => disabled
swoole.use_shortname = 00         => string(2) "00"    => disabled
swoole.use_shortname = "00"       => string(2) "00"    => disabled
swoole.use_shortname = ""         => string(0) ""      => disabled
swoole.use_shortname = " "        => string(1) " "     => disabled

@huangzhhui huangzhhui merged commit e9a7079 into hyperf:master Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants