View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000047 | Xdebug | Usage problems (Wrong Results) | public | 2004-02-27 13:19 | 2005-12-30 17:00 |
Reporter | sergio | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000047: Profile data not dumped on file when profiling is called from PHP script | ||||
Description | If profiling is called from script with xdebug_start_profiling('/path/to/some/dir/'.$variableFilename) profiling data are displayed to screen but no written to file. The file as been created but it contain only 2 lines Start of function profiler End of function profiler If the profiling is started from php.ini all is working fine (no HTML output, data written to file) | ||||
Additional Information | this is the code used <?php //begin of profiling xdebug_start_profiling('/tmp/xdebug/profile_'.time().'.txt'); // code here // end and display of profiling $level = 4; // this is the format of the report usefull value 1, 4, 5 echo 'script: ',__FILE__, '@',date("d-m-Y H:i", time()), 'profile level ',$level; xdebug_dump_function_profile($level); xdebug_stop_profiling(); ?> | ||||
Tags | No tags attached. | ||||
Operating System | Red Hat 7.3, Mac OS X 10.3.2 | ||||
PHP Version | 4.3.10 | ||||
|
Sorry, this is reported in bug 000021 and solved. Readed after posting... :-} |
|
I'm posting again... I can replicate the behavior also omitting the xdebug_dump_function_profile() from the code. No profile data are written to file. It's probably my fault but where? |
|
You should remove the xdebug_stop_profiling() function as it will clean up all the data before the profiling information is written to the file. (You might also have to remove the xdebug_dump_function_profile() function). |
|
It is still dumping anything but Start of function profiler End of function profiler to file. The code i'm testing is the following <?php xdebug_start_profiling('/dati/home/aghemo/oracle.showroom.loc/xdebug/'.time().'.txt'); echo date("d-m-Y H:i", time()); phpinfo(); ?> If could be related I cannot guess way to start xdebug profiling from httpd.conf nor .htaccess; only php.ini auto start profiling works edited on: 2004-03-01 10:24 |
|
Does this still happen with the latest CVS version (2.0.0beta3-dev)? |
|
I got no feedback, so I'm closing this report as I can not duplicate it either. |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-02-27 13:19 | sergio | New Issue | |
2004-02-27 13:22 | sergio | Note Added: 0000101 | |
2004-02-27 15:08 | sergio | Note Added: 0000102 | |
2004-02-27 21:05 | derick | Note Added: 0000103 | |
2004-02-27 21:05 | derick | Status | new => feedback |
2004-03-01 10:06 | sergio | Note Added: 0000105 | |
2004-03-01 10:24 | sergio | Note Edited: 0000105 | |
2005-09-23 10:37 | derick | PHP Version | 4.3.2 => 4.3.10 |
2005-09-23 10:37 | derick | Note Added: 0000297 | |
2005-12-30 17:00 | derick | Status | feedback => resolved |
2005-12-30 17:00 | derick | Resolution | open => unable to reproduce |
2005-12-30 17:00 | derick | Assigned To | => derick |
2005-12-30 17:00 | derick | Note Added: 0000323 | |
2016-07-31 13:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 13:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |