源代码:
define('IS_CGI', (0 === strpos(PHP_SAPI, 'cgi') || false !== strpos(PHP_SAPI, 'fcgi')) ? 1 : 0);
可不可以直接写成:
define('IS_CGI', (false !== strpos(PHP_SAPI, 'cgi')) ? 1 : 0);
因为cgi只有这三种:
cgi, cgi-fcgi,fpm-fcgi
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这个问题你应该在thinkphp的github项目下面提issue给它的开发者....