Symfony随机崩溃 – DebugClassLoader.php

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

Warning: class_implements(): Class
���� does not exist and Could not be loaded

要么

Warning: class_implements(): Class H�d
���� does not exist and Could not be loaded

要么

ContextErrorException in DebugClassLoader.PHP line 203:
Warning: class_implements(): Class multipart/form-data does not exist and Could not be loaded

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

要么

OutOfMemoryException in DebugClassLoader.PHP line 203:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1141972672 bytes)

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

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

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

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

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

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

有任何想法吗?

编辑:

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

我在symfony调试栏中的配置:

enter image description here

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

> 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.

解决方法:

我遇到了同样的问题“警告:class_implements():类 不存在且无法加载”

增加PHP.ini中的realpath_cache_size,现在apache工作,没有错误.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...