相关疑难解决方法(0)

hhvm-fastcgi + nginx如何让它在浏览器中显示致命错误

我一直在玩HHVM配置文件,我还没有能够向浏览器输出任何致命错误.它显示E_NOTICE和E_WARNING,但是当发生任何E_ERROR时,它会使页面留空,并且错误仅出现在HHVM日志文件中.

有没有办法让它在浏览器中显示?

我的HHVM配置文件如下:

PidFile = /var/run/hhvm/pid

Log {
  Level = Warning
  AlwaysLogUnhandledExceptions = true
  RuntimeErrorReportingLevel = 8191
  UseLogFile = true
  UseSyslog = false
  File = /var/log/hhvm/error.log
  InjectedStackTrace = false
  NativeStackTrace = false
  Access {
    * {
      File = /var/log/hhvm/access.log
      Format = %h %l %u % t \"%r\" %>s %b
    }
  }
}

ErrorHandling {
  CallUserHandlerOnFatals = true
  NoInfiniteLoopDetection = false
  NoInfiniteRecursionDetection = false
  ThrowBadTypeExceptions = false
  ThrowNotices = false
  NoticeFrequency = 1    # 1 out of these many notices to …
Run Code Online (Sandbox Code Playgroud)

hhvm

18
推荐指数
1
解决办法
3860
查看次数

HHVM + Hacklang:错误/警告输出到浏览器中

有没有办法告诉HHVM将Hacklang警告和错误输出到浏览器中?像PHP这样的东西启用display_errors,display_startup_errorserror_reporting设置为E_ALL

HHVM版本:

$ php -v

HipHop VM 3.1.0-dev+2014.04.09 (rel)
Compiler: heads/master-0-g4fc811c64c23a3686f66a2bea80ba47f3eaf9f3d
Repo schema: 79197c935790c0b9c9cb13566c3e727ace368117
Run Code Online (Sandbox Code Playgroud)

我尝试过以下配置:

$ cat /etc/hhvm/php.ini
; php options
display_startup_errors = On
error_reporting = E_ALL
display_errors = On

; hhvm specific 
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
Run Code Online (Sandbox Code Playgroud)

而且:

$ cat /etc/hhvm/server.ini 

; php options
pid = /var/run/hhvm/pid

; hhvm specific 
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true …
Run Code Online (Sandbox Code Playgroud)

hhvm hacklang

5
推荐指数
1
解决办法
4811
查看次数

标签 统计

hhvm ×2

hacklang ×1