Pun intended, but really, what should i do to see the errors in my browser when using hhvm?
I’ve read that i have to implement my own error handler in order to see the errors on screen, i tried, didn’t work.
My hhvm logger only logs something from time to time, but not all, i.e:
# tail -f /var/log/hhvm/error.log
Failed to initialize central HHBC repository:\n Failed to initialize schema in /var/run/hhvm/hhvm.hhbc: \n Failed to open /usr/share/httpd/.hhvm.hhbc: 14 - unable to open database file\n
\nFatal error: Call to undefined function undefined() in /home/something/public_html/apps/init.php on line 176
Even though i have triggered multiple other fatal errors.
For what it worth, here’s my hhvm config:
# cat /etc/hhvm/server.ini
; php options
display_startup_errors = On
error_reporting = E_ALL
display_errors = On
pid = /var/run/hhvm/pid
; hhvm specific
#hhvm.server.file_socket=/var/run/hhvm/hhvm.sock
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.source_root = /home/something/public_html
hhvm.server.default_document = index.php
hhvm.server.fix_path_info = true
hhvm.log.level = Error
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
Anyone got this working properly with Yii 2 ?