未定义 class 常量 'FOLLOW_SYMLINKS

Undefined class constant 'FOLLOW_SYMLINKS

安装symfony 2.6后,执行时显示错误信息:

FatalErrorException in DirectoryResource.php line 82:
Error: Undefined class constant 'FOLLOW_SYMLINKS'

错误在包中:kriswallsmith

请帮帮我。

提前致谢

您 运行 使用哪个 PHP 版本? 5.2

这听起来与这个问题报告非常相似:https://github.com/caefer/sfImageTransformExtraPlugin/issues/5

class 常量 FOLLOW_SYMLINKS 是 RecursiveDirectoryIterator 的一部分,根据 PHP.net 手册页,它已在 5.3.1 和 5.2 中添加.11.由于之前版本中的各种问题,各种框架通常建议或要求至少 5.3.9 版本。

包裹是“kriswallsmith/assetic