简体   繁体   English

Symfony安装问题

[英]Symfony installation problems

I'm trying to set up Symfony on my 64-bit Vista laptop that's using Zend Server CE for an all-in-one PHP stack. 我试图在使用Zend Server CE的多合一PHP堆栈的64位Vista笔记本电脑上设置Symfony。 I'm trying to configure it with Netbeans as the IDE but I keep getting an error when I try to create a Symfony project; 我正在尝试使用Netbeans作为IDE对其进行配置,但是在尝试创建Symfony项目时却不断出现错误; I've pointed it to my PHP.exe file located in C:\\Program Files (x86)\\Zend\\ZendServer\\bin\\php.exe and my symfony.bat located in C:\\Users\\Wayne\\Frameworks\\symfony\\data\\bin\\symfony.bat . 我已将其指向位于C:\\Program Files (x86)\\Zend\\ZendServer\\bin\\php.exe PHP.exe文件和位于C:\\Users\\Wayne\\Frameworks\\symfony\\data\\bin\\symfony.bat symfony.bat C:\\Users\\Wayne\\Frameworks\\symfony\\data\\bin\\symfony.bat Netbeans gives me a generic "Cannot create symfony project" error, so I tried to check it manually and create the project. Netbeans给我一个通用的“无法创建symfony项目”错误,因此我尝试手动检查它并创建项目。 This gives me an error call to undefined function token_get_all() , which seems to reference the built-in tokenizer for PHP 5. Checking my PHP extensions in Zend, tokenizer is enabled and the php_tokenizer.dll is where it should be, so I'm not sure why this isn't working right. 这给我带来了call to undefined function token_get_all()的错误call to undefined function token_get_all() ,该call to undefined function token_get_all()似乎引用了PHP 5的内置令牌生成器。在Zend中检查我的PHP扩展,已启用令牌生成器,并且php_tokenizer.dll位于应有的位置,所以我我不确定这为什么行不通。

Any ideas? 有任何想法吗? I'll gladly provide more information if necessary. 如有必要,我将很乐意提供更多信息。 I'm using the latest version of Zend Server CE with PHP 5.3.2, so tokenizer should be working fine. 我正在使用最新版本的Zend Server CE和PHP 5.3.2,因此令牌生成器应该工作正常。

Keep in mind that the CLI and the webserver may use different php.ini files. 请记住,CLI和Web服务器可能使用不同的php.ini文件。 Do a php -i > info.txt to check the CLI's settings (including the .ini file it uses). 执行php -i > info.txt以检查CLI的设置(包括它使用的.ini文件)。

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

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