Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony2应用程序/控制台分段故障,已安装stock 2.0.16_Symfony - Fatal编程技术网

Symfony2应用程序/控制台分段故障,已安装stock 2.0.16

Symfony2应用程序/控制台分段故障,已安装stock 2.0.16,symfony,Symfony,我试图让Symfony2在我的共享网络主机上工作,但当我运行应用程序/控制台时,它会出错。这是默认的Symfony2 2.0.16安装 [kadaan@webhost Symfony]$ php app/console Segmentation fault [kadaan@webhost Symfony]$ php -v PHP 5.3.13 (cgi-fcgi) (built: May 8 2012 17:05:11) Copyright (c) 1997-2012 The PHP Grou

我试图让Symfony2在我的共享网络主机上工作,但当我运行应用程序/控制台时,它会出错。这是默认的Symfony2 2.0.16安装

[kadaan@webhost Symfony]$ php app/console
Segmentation fault
[kadaan@webhost Symfony]$ php -v
PHP 5.3.13 (cgi-fcgi) (built: May  8 2012 17:05:11)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
我是所有文件的所有者,它们都是全局可读的。我没有访问apache日志的权限,因此无法检查日志中是否有任何有用的内容

下面是我对Symfony的check.php的输出,以防有用:

** Mandatory requirements **

  OK        Checking that PHP version is at least 5.3.2 (5.3.13 installed)
  OK        Checking that the "date.timezone" setting is set
  OK        Checking that app/cache/ directory is writable
  OK        Checking that the app/logs/ directory is writable
  OK        Checking that the json_encode() is available
  OK        Checking that the SQLite3 or PDO_SQLite extension is available
  OK        Checking that the session_start() is available
  OK        Checking that the ctype_alpha() is available
  OK        Checking that the token_get_all() is available
  OK        Checking that the APC version is at least 3.0.17

** Optional checks **

  OK        Checking that the PHP-XML module is installed
  OK        Checking that the token_get_all() function is available
  OK        Checking that the mb_strlen() function is available
  OK        Checking that the iconv() function is available
  OK        Checking that the utf8_decode() is available
  OK        Checking that the posix_isatty() is available

[[WARNING]] Checking that the intl extension is available: FAILED
            *** Install and enable the intl extension (used for validators) ***

[[WARNING]] Checking that a PHP accelerator is installed: FAILED
            *** Install a PHP accelerator like APC (highly recommended) ***

[[WARNING]] Checking that php.ini has short_open_tag set to off: FAILED
            *** Set short_open_tag to off in php.ini ***

[[WARNING]] Checking that php.ini has magic_quotes_gpc set to off: FAILED
            *** Set magic_quotes_gpc to off in php.ini ***
  OK        Checking that php.ini has register_globals set to off
  OK        Checking that php.ini has session.auto_start set to off

** Optional checks (Doctrine) **

  OK        Checking that PDO is installed
  OK        Checking that PDO has some drivers installed: mysql, sqlite, sqlite2

有没有其他人解决了这个问题,或者可以给我一些建议来检查哪些内容?

你能尝试使用不同的php版本吗?不幸的是,我的webhost只有5.3版本可供我使用。我有一个phpbb和drupal安装,两者都工作得很好,所以我相信这是关于symfony2是如何与php一起玩的,这是不愉快的。你能调试它失败的地方吗?在那之后,创建一个复制问题的短脚本并向主机提交一个报告,这似乎是他们的php构建的一个问题。好的,我最终在Symfony/vendor/Symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php中跟踪到第362行:$valid=$dom->schemaValidateSource$source;我对$dom和$source做了一个var_转储:这可能意味着这个bug与php构建的xml支持有关。