fix: add aliases for all php_debugger_ functions - #107
carlos-granados merged 2 commits into
Conversation
c335028 to
4c2f623
Compare
|
@claude review |
|
Claude finished @carlos-granados's task in 1m 41s —— View job Claude PR Review
Overall: this looks solid and well-scoped. Adding aliases for the four remaining public functions is exactly what What I checked
Suggestions (all minor / non-blocking)
Correctness / riskNothing in the C change looks risky:
Looks good to merge once you decide on the |
|
@claude I fixed 1 and 2 and preferred not to do anything about 3 and 4, can you review again? |
|
Claude finished @carlos-granados's task in 58s —— View job Claude PR Re-review
Both fixes look good. LGTM. Verified
Nothing else outstandingDiff is minimal (three files, 8/6), no C-side changes in this follow-up, no arginfo drift beyond the hash bump. Ready to merge from my end. |
There was a problem hiding this comment.
Pull request overview
This PR completes the php_debugger_*() public-function surface by adding aliases for all supported xdebug_*() debugger functions, ensuring drop-in compatibility while offering the new prefix. It also updates user-facing diagnostics so notices reflect the alias name that was actually invoked, and adds tests to lock in both alias presence and diagnostic behavior.
Changes:
- Added
php_debugger_*()aliases forxdebug_break,xdebug_connect_to_client,xdebug_is_debugger_active, andxdebug_notify(joining the existingphp_debugger_infoalias). - Updated
xdebug_break()andxdebug_connect_to_client()diagnostics to report the active function name (canonical vs alias) in notices/logs. - Added
.phptcoverage to verify alias existence/signatures and alias-aware diagnostics.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/library/php_debugger_aliases.phpt | Adds a regression test ensuring all supported php_debugger_*() aliases exist and match canonical signatures/behavior. |
| tests/library/php_debugger_aliases_diagnostics.phpt | Adds a regression test ensuring diagnostics name the invoked alias (canonical vs php_debugger_*). |
| src/debugger/debugger.c | Uses the active function name in xdebug_break() / xdebug_connect_to_client() diagnostics so messages match user code. |
| php_xdebug.stub.php | Declares the new alias functions via @alias annotations (source of truth for arginfo generation). |
| php_xdebug_arginfo.h | Regenerates arginfo and registers ZEND_FALIAS entries for the new aliases. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
7881457 to
3ec2c7e
Compare
3ec2c7e to
55f4e07
Compare
We had only defined the alias for
xdebug_info. This PR adds the alias for all the other 4xdebug_functions that we still support with thephp_debugger_prefix