write the functions reference page - #23
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
reference/functions, listing the PHP functions the debugger defines in alphabetical order with parameters, return value, behaviour and an example for each. Placed after Settings in the Reference section.Five functions, established against
upstream/mainat 0.3.3. The extension registers 45, but 35 are compatibility stubs insrc/lib/compat_stubs.cthat raiseE_DEPRECATEDand return a safe default. Onlybreak,connect_to_client,info,is_debugger_activeandnotifydo real work, and all five now exist under both prefixes — thephp_debugger_*aliases have landed since the guide pages were written.Behaviour was checked by running 0.3.3 rather than read off the stub file:
php_debugger_info()prints the report and returnsnull;'mode'returns['debug'];'extension-flags'returns['control-socket']php_debugger_break()returnsfalseand raises a notice with no session, unless on-demand debugging is enabledphp_debugger_notify()returnsfalsesilently when nothing is connectedphp_debugger_is_debugger_active()is the only one with no side effects and no noticesThe page closes with the
xdebug_prefix, then an info box noting that the functions from removed features still exist but do nothing and raise a deprecation.