[0] Index.php 라인 10의 ParseError
구문 오류, 예상치 못한 ':', ',' 또는 ')'
<?phpnamespace appindexcontroller;use thinkfacadeDb;class Index{ 공개 함수 index() { dump (Db::query(sql:'SELECT * FROM '사용자' LIMI 1')); } 공용 함수 hello($name = 'ThinkPHP6') { 'hello,'를 반환합니다. $이름; }}
Index.php 라인 10
Call Stack
at ComposerAutoloadincludeFile('D:myphp_wwwPHPTuto...') in ClassLoader.php 라인 322
ClassLoader->loadClass('appindexcontroller...') )
spl_autoload_call('appindexcontroller...')
Controller.php 라인 103의 class_exists('appindexcontroller...')
Controller.php 라인 57의 Controller->controller('index')
Dispatch.php 라인 118의 Controller->exec()
Route.php 라인 748의 Dispatch->run()
Route->think{closure}(객체(요청), 객체 (클로저), null)
at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 206
at Middleware->think{closure}(object( Request)) TraceDebug.php 라인 48
at TraceDebug->handle(object(Request), object(Closure), null)
at call_user_func_array([object(TraceDebug), 'handle'], [object(Request) ), object(Closure), null]) Middleware.php line 206
at Middleware->think{closure}(object(Request)) in SessionInit.php line 58
at SessionInit->handle(object( Request), object(Closure), null)
at call_user_func_array([object(SessionInit), 'handle'], [object(Request), object(Closure), null]) in Middleware.php 라인 206
at Middleware ->LoadLangPack.php 라인 60
에서{클로저}(객체(요청))를 생각하세요. LoadLangPack->handle(object(Request), object(Closure), null)
at call_user_func_array([object(LoadLangPack) , 'handle'], [object(요청), object(Closure), null]) Middleware.php 라인 206
Middleware->think{closure}(object(요청)) CheckRequestCache.php 라인 53
at CheckRequestCache->handle(object(Request), object(Closure), null)
at call_user_func_array([object(CheckRequestCache), 'handle'], [object(Request), object(Closure), null]) Middleware.php 라인 206
Middleware->think{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Middleware.php 라인 150
Route.php 라인 755의 미들웨어->dispatch(object(Request))
Http.php 라인 187의 Route->dispatch(object(Request), object(Closure))
Http-> ;runWithRequest(object(Request)) in Http.php 라인 139
at Http->run() in index.php 라인 20
환경 변수
GET Data
/index/index
POST Dataempty
Filesempty
Cookies
PHPSESSID a334386e8fff32d2936329a874461407
pgv_pvi 4820957184
pgv_si s50686648 32
thinkphp_show_page_trace 0|0
Sessionempty
Server/Request Data
PATH C:Program Files (x86)InteliCLS 클라이언트;C:Program FilesInteliCLS 클라이언트; C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:프로그램 파일(x86)인텔인텔(R) 관리 엔진 구성 요소DAL;C:프로그램 파일인텔인텔(R) 관리 엔진 구성 요소DAL;C:프로그램 파일(x86) )인텔인텔(R) 관리 엔진 구성 요소IPT;C:프로그램 파일인텔인텔(R) 관리 엔진 구성 요소IPT;C:프로그램 파일IntelWiFibin;C:Program FilesCommon FilesIntelWirelessCommon;C:WINDOWSSystem32OpenSSH;C:UsersgznetAppDataLocalMicrosoftWindowsApps
SYSTEMROOT C:WINDOWS
COMSPEC C:WINDOWSsystem32cmd .exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:WINDOWS
PHP_FCGI_MAX_REQUESTS 1000
PHPRC D:/myphp_www/PHPTutorial/php/php-7.2.1-nts/
_FCGI_SHUTDOWN_EVENT_ 2240
SCRIPT_NAME /index.php
REQUEST_URI /index/index
QUERY_STR ING /index/index
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP /1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /index/index
REDIRECT_URL /index/index
REMOTE_PORT 50480
SCRIPT_FILENAME D:/myphp_www/PHPTutorial/WWW/tp6/public/index.php
SERVER_ADMIN admin@ php.cn
CONTEXT_DOCUMENT_ROOT D:/myphp_www/PHPTutorial/WWW/tp6/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT D:/myphp_ www/PHPTutorial/WWW/tp6/public
REMOTE_ADDR 127.0.0.1
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME tp6.io
SERVER_SOFTWARE Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot C:WINDOWS
HTTP_COOKIE PHPSESSID=a334386e8fff32d2936329a874461407; pgv_pvi=4820957184; pgv_si=s5068664832; thinkphp_show_page_trace=0|0
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.9
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q= 0.9,이미지/웹,이미지/ apng,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0(Windows NT 10.0; Win64; x64) AppleWebKit/537.36(KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
HTTP_UPGRADE_IN SECURE_REQUESTS 1
HTTP_CACHE_Control 최대- 연령=0
HTTP_CONNECTION 닫기
HTTP_HOST tp6.io
REDIRECT_STATUS 200
FCGI_ROLE 응답자
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1558856696.332
REQUEST_TIME 1558856696
환경 변수가 비어 있음
ThinkPHP 상수가 비어 있음
ThinkPHP V6.0.0 RC1 { 十年磨一剑-为API开发设计的高性能框架 }
치명적인 오류: 잡히지 않은 오류: D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkResponse.php:156의 null에서 멤버 함수 save() 호출: #0 D :myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkinitializerError.php(55): thinkResponse->send() #1 [내부 함수]: thinkinitializerError->appException(Object(Error)) #2 {main} D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkResponse.phpon 라인 156
치명적 오류: 포착되지 않은 오류: D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkResponse.php:156에서 null에 대한 멤버 함수 save() 호출: #0 D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkinitializerError.php(55): thinkResponse->send() #1 D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworks rcthinkinitializer오류. php(88): thinkinitializerError->appException(Object(thinkExceptionErrorException)) #2 [내부 함수]: thinkinitializerError->appShutdown() #3 {main}이 D:myphp_wwwPHPTutorialWWWtp6vendortopthinkframeworksrcthinkResponse.php에서 발생함 156