简体   繁体   English

Intl.so扩展名未在Windows Google App Engine Php SDK中加载

[英]Intl.so extension not loading in Windows Google App Engine Php SDK

I've created a PHP app for Google App engine which uses the PHP extension intl.so . 我已经为Google App引擎创建了一个PHP应用程序,它使用了PHP扩展intl.so I've loaded the extension by adding the following code to the php.ini in the app folder on my hard disk. 我已通过将以下代码添加到硬盘上app文件夹中的php.ini中来加载扩展。

extension="intl.so"

My PHP script has the following code: 我的PHP脚本具有以下代码:

$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);

If I run the app local with the Google App Engine Launcher on Mac it works. 如果我在Mac上使用Google App Engine启动器在本地运行该应用程序,则可以运行。 On Windows I get the following message: 在Windows上,我收到以下消息:

Fatal error: Call to undefined function locale_accept_from_http() in .... 致命错误:在...中调用未定义的函数locale_accept_from_http()。

How do I load the extension in Windows? 如何在Windows中加载扩展?

Reinstall SDK didn't work. 重新安装SDK无效。

I found out that the extension is called "php_intl.dll" on Windows by looking at the Google App Engine logs and searching the PHP folder. 通过查看Google App Engine日志并搜索PHP文件夹,我发现该扩展名在Windows上称为“ php_intl.dll”。 My php.ini now looks like this and it works on both Mac and Windows: 我的php.ini现在看起来像这样,并且可以在Mac和Windows上使用:

extension="intl.so"    
extension="php_intl.dll"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM