我一直在尝试在HHVM上运行phpmyadmin.通常的php文件正常运行,但每当我尝试访问localhost:8080/phpmyadmin时它会给我一个没有错误消息的空白页面.我假设它必须处理mysql.PS:mysql已安装在我的系统上.
这是server.hdf
PidFile = /var/run/hhvm/pid
Server {
SourceRoot = /var/www/
DefaultDocument = index.php
}
Log {
Level = Warning
AlwaysLogUnhandledExceptions = true
RuntimeErrorReportingLevel = 8191
UseLogFile = true
UseSyslog = false
File = /var/log/hhvm/error.log
Access {
* {
File = /var/log/hhvm/access.log
Format = %h %l %u % t \"%r\" %>s %b
}
}
}
Repo {
Central {
Path = /var/log/hhvm/.hhvm.hhbc
}
}
#include "/usr/share/hhvm/hdf/static.mime-types.hdf"
StaticFile {
FilesMatch {
* {
pattern = .*\.(dll|exe)
headers {
* = Content-Disposition: attachment
}
}
}
Extensions : StaticMimeTypes
}
MySQL {
TypedResults = false
}
Run Code Online (Sandbox Code Playgroud)
小智 8
问题很久以前,但也许这将有助于未来的人:
打开libraries/dbi/DBIMysqli.class.php
搜索mysqli_real_connect(2次出现)
Typecast $ server_port,即(int)$ server_port
至少那对我有用......