View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000955 | Xdebug | Profiling | public | 2013-06-25 13:40 | 2021-04-14 16:03 |
| Reporter | najcik | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | won't fix | ||
| Summary | 0000955: provide a profiler API for xdebug | ||||
| Description | In the .NET world there's something called profiler API. This extension is very low level (in terms of .NET code) but it gives programmers very interesting features: it allows for example to register callbacks on any function, method invocation or property access. It's like events for function calls: onCall, onReturn etc. - with the ProfilerAPI you could for example skip the call, modify its return value, fiddle with its parameters and the like or stub the whole invocation with a function of your choice. Ideally the hooks could be used from the PHP Code e.g. regular php code to be registered as onCall or onReturn handlers. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.1.0 | ||||
|
|
Here's how the profiler API was exploited at Typemock. |
|
|
Are you still interested in this? I have not had anybody else ask about it, and I also don't really feel like this is a debugging tool. It is much more like runkit or something like that. |
|
|
Thanks for taking time to review this suggestion. |
|
|
Is this issue still relevant to you? |
|
|
I am closing this out, as there was only ever one request for this. |