Search Results

PHP opcode caches - require_once is slow

php opcode+cache apc xcache eaccelerator mmcache issues require_once
If you got a large OO PHP application, you usually come with many files included using “require_once()”. Different test from different sources shows that using require_once works up to 4 times slower than require. Basically, all known PHP opcode caches suffers from this issue (APC, XCache, ea/mmcache).

There’s patches [...]

Serious problems with $_POST array handling in recently released PHP 5.1.3

A critical bug with $_POST array handling as well as the FastCGI sapi have been discovered in PHP 5.1.3. The problem is actually messing data in $_POST:

<form method="post" action="" enctype="multipart/form-data">
<input type="text" name="java[server_1]" value="jboss">
<input type="text" name="java[server_2]" value="tomcat">
<input type="submit"></form>
Returning array:
(
[java] => Array
(
[...]