php 更新到MacOS索诺马后,Apache错误日志中出现SwiftNativeNSStringBase错误

7gs2gvoe  于 5个月前  发布在  PHP
关注(0)|答案(1)|浏览(71)

我最近更新了我的Mac到索诺马(14.2.1),我通过Macports在我的本地机器上运行Apache/PHP/MySql的几个网站。一切运行正常,我只是不能让本地网站之一工作。
这是在Apache错误_log:+[__SwiftNativeNSStringBase initialize] may have been in progress in another thread when fork() was called.+[__SwiftNativeNSStringBase initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.[core:notice] [pid 6373] AH00052: child pid 6914 exit signal Abort trap (6)
一个常见的解决方案似乎是把它放在.zshrc中,但它对我不起作用:export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
我还添加了export DISABLE_SPRING=true,这是另一个建议,但它对我也不起作用。网站不再加载。
任何帮助都是非常感激的,谢谢。

8yparm6h

8yparm6h1#

好的,找到了。这是PHP-FPM中gettext模块的问题,如这里所述:https://github.com/php/php-src/issues/11818#issuecomment-1693882303
摘要:不要只做_('Translate me')而不设置putenv('LC_ALL=en_US')或任何其他语言环境。

相关问题