1

使用由 Amazon AWS 提供并作为 phar 存档发布的 PHP SDK 2,我在 QA 服务器上收到以下错误(开发人员很好)

Fatal error: Uncaught exception 'PharException' with message 
    '__HALT_COMPILER(); must be declared in a phar' in /home/www/libs/s3/aws.phar:17 
    Stack trace: #0 /home/www/libs/s3/aws.phar(17): Phar::mapPhar('aws.phar') 
                        #1 /home/www/libs/...
                        ...

环顾四周,我发现这可能与 suhosin 安全扩展有关。我需要保持 eaccelerator 运行,并希望保持加固的服务器。来自 phpinfo() 的详细信息是

PHP Version 5.3.19-1~dotdeb.0

This server is protected with the Suhosin Patch 0.9.10
Copyright (c) 2006-2007 Hardened-PHP Project Copyright (c) 2007-2012 SektionEins GmbH

eAccelerator

eAccelerator support    enabled
Version         0.9.6.1
Caching Enabled     true
Optimizer Enabled       true
Check mtime Enabled     true
...

php.ini 确实有 suhosin.executor.include.whitelist="phar"

有没有其他人经历过这个?

(我在 AWS PHP 支持论坛上发布了一个类似的问题)

关于如何让 aws.phar 与 suhosin 一起工作的任何想法?

4

0 回答 0