php.net |  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: kannan@php.net Assigned: kannan (profile)
Status: Closed Package: xhprof (PECL)
PHP Version: 5.2.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 28 = ?
Subscribe to this entry?

 
 [2009-05-27 14:07 UTC] kannan@php.net
Description:
------------
As per XHProf documentation, (http://mirror.facebook.net/facebook/xhprof/doc.html#include_funcs), "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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-27 14:18 UTC] kannan@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC