Symfony随机崩溃 - DebugClassLoader.php

Laj*_*rek 5 php apache caching symfony

我有基于symfony框架的网站,但在开发环境我有随机崩溃,例外:(有坏字符)

警告:class_implements():类 不存在且无法加载

要么

警告:class_implements():ClassH d 不存在且无法加载

要么

DebugClassLoader.php第203行中的ContextErrorException:
警告:class_implements():类multipart/form-data不存在且无法加载

(php不使用symfony表单,请求是GET)

要么

DebugClassLoader.php第203行中的OutOfMemoryException:
错误:允许的内存大小为134217728字节耗尽(尝试分配1141972672字节)

(内存限制设置为128MB,但需要大约6MB)

所有这些不同的异常都被抛在一个具有相同参数的URL上(用于测试目的),因此它们随机抛出整个Web.

这个错误不仅仅是生产环境的发展.

使用XAMPP/apache在Windows 7机器上开发环境.

如果我重新启动apache并按F5一切正常,网络正常工作.

我试图清除所有缓存但没有成功.

有任何想法吗?

编辑:


激活OPCache后问题仍然存在......

我在symfony调试栏中的配置: 在此输入图像描述

如果我php bin/symfony_requirements从CLI 运行命令

> PHP is using the following php.ini file:
  C:\xampp7.0.9\php\php.ini

> Checking Symfony requirements:
  ...........................WW.......


 [OK]
 Your system is ready to run Symfony projects


Optional recommendations to improve your setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * intl extension should be available
   > Install and enable the intl extension (used for validators).

 * a PHP accelerator should be installed
   > Install and/or enable a PHP accelerator (highly recommended).


Note  The command console could use a different php.ini file
~~~~  than the one used with your web server. To be on the
      safe side, please check the requirements from your web
      server using the web/config.php script.

小智 6

我与“警告:class_implements():类????不存在并且无法加载”存在相同的问题

我在php.ini中增加了realpath_cache_size,现在apache可以正常工作了,没有错误。