Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joomla #29

Open
ghost opened this issue Dec 30, 2011 · 1 comment
Open

Joomla #29

ghost opened this issue Dec 30, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 30, 2011

Have you tried profiling a Joomla page with the GUI. It isnt working I have not debugged it completely yet but for some reason the $_xhprof array doesn't exists by the time the application is invoked. Very odd. It exists in the header.php then when the application starts it disappears.
Anyways I tried this on Joomla 1.5 and it is a no go.

if i try to print_r( the array at the top of the footer code it doesn't exist.

@pborreli
Copy link

$_xhprof is defined as global, Joomla (i don't know why and i really don't want to know) clears all global variables at runtime.

https://github.com/joomla/joomla-platform/blob/4329ba0c4c0df438afa70a8e222dcf278fdb78ec/libraries/joomla/environment/request.php#L566

To avoid this behaviour you can upgrade Joomla as clean method has been removed or put this line at the top of your index.php

define('_JREQUEST_NO_CLEAN', 1); 

dshafik pushed a commit to dshafik/xhprof that referenced this issue Oct 23, 2013
fixes PR preinheimer#20 when using randomly generated run ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant