View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001669 | Xdebug | Uncategorized | public | 2019-05-21 09:28 | 2019-06-28 11:48 |
| Reporter | vee | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | duplicate | ||
| Platform | Windows | OS | Windows | OS Version | 10 |
| Product Version | 2.7.2 | ||||
| Summary | 0001669: Cannot log anything if there is class destructor. | ||||
| Description | I have this code.
SomeClass.php
index.php If I run this code on PHP since 5.5 to7.3 (32 bit) with the latest version of Xdebug, anything cannot be log and Webgrind or QCachegrind can only display SomeClass.php with | ||||
| Steps To Reproduce | Run the example source code above with PHP 5.5 or newer (7.3). | ||||
| Additional Information | Xdebug 2.7.2 | ||||
| Tags | destructor | ||||
| Operating System | Windows 10 64 bit | ||||
| PHP Version | 7.3.2-7.3.4 | ||||
|
|
Hi, this is the same problem as from 0001655 (2 profile/cachegrind files created when auto_prepend_file in use), with the additional issue is that on Windows, Xdebug can't detect that a profile file is already opened for writing, and hence, it doesn't create two files, but instead overwrites one. You can work around the latter issue by setting xdebug.profiler_output_name to "cachegrind.out.%p.%r" (with the %r adding a random number to the default). I will see whether I can address to root cause when I resolve issue 0001655. cheers, |