Title: Add fallbacks for unsupported xdebug functions · Issue #45 · php-debugger/php-debugger · GitHub
Open Graph Title: Add fallbacks for unsupported xdebug functions · Issue #45 · php-debugger/php-debugger
X Title: Add fallbacks for unsupported xdebug functions · Issue #45 · php-debugger/php-debugger
Description: PHP Version 8.4.17 Operating System Windows 11 Extension Version 87c6c1d php.ini Configuration [PHP] zend_extension=php_debugger [php_debugger] php_debugger.mode=debug php_debugger.start_with_request=trigger Steps to Reproduce Install ex...
Open Graph Description: PHP Version 8.4.17 Operating System Windows 11 Extension Version 87c6c1d php.ini Configuration [PHP] zend_extension=php_debugger [php_debugger] php_debugger.mode=debug php_debugger.start_with_reque...
X Description: PHP Version 8.4.17 Operating System Windows 11 Extension Version 87c6c1d php.ini Configuration [PHP] zend_extension=php_debugger [php_debugger] php_debugger.mode=debug php_debugger.start_with_reque...
Opengraph URL: https://github.com/php-debugger/php-debugger/issues/45
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add fallbacks for unsupported xdebug functions","articleBody":"### PHP Version\n\n8.4.17\n\n### Operating System\n\nWindows 11\n\n### Extension Version\n\n87c6c1d9c0ce657f53af30907034385ac5cc43b8\n\n### php.ini Configuration\n\n```ini\n[PHP]\nzend_extension=php_debugger\n\n[php_debugger]\nphp_debugger.mode=debug\nphp_debugger.start_with_request=trigger\n```\n\n### Steps to Reproduce\n\n1. Install extension\n2. Run code that depends on xdebug functions like `xdebug_get_profiler_filename()`\n\n\n### Expected vs Actual Behavior\n\nCalling an unsupported function should return `false` or `null`. Instead, I receive this error:\n```\nCall to undefined function xdebug_get_profiler_filename()\n```\n\n### References:\n\n#### Xdebug documentation:\n\n\u003e ### xdebug_get_profiler_filename() : mixed\n\u003e Returns the profile information filename\n\u003e Returns the name of the file which is used to save profile information to, or `false` if the profiler is not active.\n\u003e\n\u003e -- https://xdebug.org/docs/profiler#xdebug_get_profiler_filename\n\n#### Example usage:\n[Clockwork](https://underground.works/clockwork/) detects when Xdebug is running and tries to add profile data to logged requests, see [here](https://github.com/itsgoingd/clockwork/blob/d928483e231f042dbff9258795cb17aadaebc7d0/Clockwork/DataSource/XdebugDataSource.php#L8-L14):\n\n```php\n// Adds profiling data path to the request\npublic function resolve(Request $request)\n{\n\t$request-\u003exdebug = [ 'profile' =\u003e xdebug_get_profiler_filename() ];\n\n\treturn $request;\n}\n```","author":{"url":"https://github.com/FeBe95","@type":"Person","name":"FeBe95"},"datePublished":"2026-04-10T22:36:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/45/php-debugger/issues/45"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dde5592a-af33-97e6-66a1-2f880adf01fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE62:E959E:B2F6AA:F5DF5C:6A63B926 |
| html-safe-nonce | 60990e4e7419ef8a408437970e430e2fcedcfad85c92aaa293e3e8e273118e9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTYyOkU5NTlFOkIyRjZBQTpGNURGNUM6NkE2M0I5MjYiLCJ2aXNpdG9yX2lkIjoiNjc5MjE1NTc0Mjg5NTA2MTI4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6050228aaaf67c26781351d46426660ab45252e21dcb2dc2899fecc458cfebe |
| hovercard-subject-tag | issue:4242059326 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-debugger/php-debugger/45/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5b38d8bb77f2f294f7173080634ff5c1ee1171f4df26d7e9fd0269c65ed15be/php-debugger/php-debugger/issues/45 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5b38d8bb77f2f294f7173080634ff5c1ee1171f4df26d7e9fd0269c65ed15be/php-debugger/php-debugger/issues/45 |
| og:image:alt | PHP Version 8.4.17 Operating System Windows 11 Extension Version 87c6c1d php.ini Configuration [PHP] zend_extension=php_debugger [php_debugger] php_debugger.mode=debug php_debugger.start_with_reque... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FeBe95 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b1a203abf5b8fb9010b42a32ce0f19fb6e11e656f254d0d3dcdba4b65a6961a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/php-debugger/php-debugger git https://github.com/php-debugger/php-debugger.git |
| octolytics-dimension-user_id | 269598105 |
| octolytics-dimension-user_login | php-debugger |
| octolytics-dimension-repository_id | 1173763111 |
| octolytics-dimension-repository_nwo | php-debugger/php-debugger |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1173763111 |
| octolytics-dimension-repository_network_root_nwo | php-debugger/php-debugger |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3ae9132c55b60e2a8f9553322217eb369dd24575 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width