Skip to content

Optimized the detect logical of swoole shortname#653

Merged
huangzhhui merged 2 commits into
hyperf:masterfrom
huangzhhui:shortname
Oct 7, 2019
Merged

Optimized the detect logical of swoole shortname#653
huangzhhui merged 2 commits into
hyperf:masterfrom
huangzhhui:shortname

Conversation

@huangzhhui
Copy link
Copy Markdown
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.

2 participants