|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesapc-stat-patch (last revision 2011-10-22 06:50 UTC by noda dot yoshikazu at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-22 07:04 UTC] noda dot yoshikazu at gmail dot com
[2016-11-18 21:36 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2016-11-18 21:36 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
Description: ------------ APC uses a stat64() call if the argument to include() is a variable. It doesn't, if the argument is a string. In both cases the opcode cache works fine. In applications with many include()s and slow storage, it would be nice to eliminate this. Reproduce code: --------------- <?php $file = "a.php"; include $file; include "b.php"; ?> Expected result: ---------------- No stat64() calls Actual result: -------------- open("/home/willem/index.php", O_RDONLY|O_LARGEFILE) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=58, ...}) = 0 getcwd("/", 4095) = 2 chdir("/home/willem") = 0 close(5) = 0 stat64("./a.php", {st_mode=S_IFREG|0644, st_size=2, ...}) = 0 getcwd("/home/willem", 4096)