我有一个错误。在应用程序根目录中使用我的“php.ini”。如下...
[php.ini]
html_errors = "Off"
display_errors = "Off"
error_reporting = E_ALL ^ E_WARNING ^ E_NOTICE
auto_prepend_file = "configure.php"
[错误]
ERROR 2014-08-25 03:20:57,158 php_runtime.py:226] The PHP runtime is not available
Traceback (most recent call last):
File "/home/foo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 222, in new_instance
self._runtime_config_getter().application_root)
File "/home/foo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 195, in _check_environment
raise _PHPEnvironmentError(check_process_stdout)
_PHPEnvironmentError
在使用未自定义的 php_runtime.py 期间我会收到此错误。当我编辑此行时,此错误无关紧要。
[原来的]
186 args = [php_executable_path, '-c', application_root, '-f',
187 _CHECK_ENVIRONMENT_SCRIPT_PATH]
[定制]
186 args = [php_executable_path, '-f',
187 _CHECK_ENVIRONMENT_SCRIPT_PATH]
(“-c 选项”被禁用)
我的 php 选项“auto_prepend_file”是谋杀。但我没有任何想法。我需要“auto_prepend_file”进行自动加载,而无需将包含 init 文件放在每个源文件的开头。