Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example page in manual for Error Handling uses old/deprecated code #3564

Open
KhaledChebat opened this issue Jul 14, 2024 · 1 comment
Open

Comments

@KhaledChebat
Copy link

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+

@cmb69
Copy link
Member

cmb69 commented Jul 23, 2024

In my opinion, this doesn't look like a useful example in the PHP manual; way too complex and too specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants