Example page in manual for Error Handling uses old/deprecated code
Nobody has claimed this yet.
- Dominant language
- XML
- Stars
- 2
- Forks
- 6
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
The example page for Error Handling uses deprecated method wddx_serialize_value and a callback method signature that does not match the current documentation recommendation:
- Callback signature in Example Page:
function($errno, $errmsg, $filename, $linenum, $vars) - Recommended callback signature in current documentation:
handler( [int](https://www.php.net/manual/en/language.types.integer.php) $errno, [string](https://www.php.net/manual/en/language.types.string.php) $errstr, [string](https://www.php.net/manual/en/language.types.string.php) $errfile = ?, [int](https://www.php.net/manual/en/language.types.integer.php) $errline = ? ): [bool](https://www.php.net/manual/en/language.types.boolean.php)
The last parameter in example $vars maps to the old callback function parameter errcontext which has been removed in PHP8.0+
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the source for the linked Error Handling example page, then compare its callback signature and wddx_serialize_value usage with the current set-error-handler documentation. Done means the example no longer uses the deprecated function or removed errcontext parameter and matches the current callback recommendation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100