|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58705 require/require_once not special cased like include/include_once
Submitted: 2009-05-27 14:07 UTC Modified: 2009-05-27 14:18 UTC
From: Assigned: kannan (profile)
Status: Closed Package: xhprof (PECL)
PHP Version: 5.2.5 OS:
Private report: No CVE-ID: None
 [2009-05-27 14:07 UTC]
As per XHProf documentation, (, "include", "include_once"/"require"/"require_once" operations are special cased.

For example, an 
  include "lib/common.php"; 
operation will get reported in XHProf as two function entries:

    * load::lib/common.php - This represents the work done by the interpreter to compile/load the file. [Note: If you are using a PHP opcode cache like APC, then the compile only happens on a cache miss in APC.]
    * run_init::lib/common.php - This represents initialization code executed at the file scope as a result of the include operation.

However, the implementation is currently only doing this special casing for include/include_once, but not require/ require_once.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-27 14:18 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Checked in fix to trunk. The fix should be available starting from release 0.9.2.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 14:01:24 2020 UTC