The reference itself says that this is not recommended and `assert_options()`
itself is deprecated in PHP 8.3. Remove the reference to slim down the docs.
`assert()` behaves like a regular function for all intents and purposes. It can
even be used as a string callable. The only special thing about is that the
`$description`'s default parameter is dynamic.
- Drop the assert.exception=0 case, because that is deprecated.
- Showcase the output for enabled assertions first.
- Add example with a custom message
They are no longer supported as of PHP 8 and only serve to cause confusion for a
feature that is already complex enough by itself.
In fact the examples will silently misbehave in PHP 8, because a non-empty
string is truthy and no warning is emitted.
The handling of the 3rd parameter for assert callbacks set via `assert_options`
changed with the implementation of the expectations RFC, and changed again in
PHP 8. Update the documentation accordingly.
This one seems to be a cause for confusion; witness Bug [#79602]
(https://bugs.php.net/bug.php?id=79602).
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-120.
As per the PHP changelog, the functionality to use a string for `assert` has been removed in PHP 8.0: 69888c3ff1/UPGRADING (L350-L354)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1471.
This included moving the guide for the new configuration directives into the
assert() page to keep the migration guide snappy.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337862 c90b9560-bf6c-de11-be94-00142212c4b1
other unrelated fixes (making the hyphen that should be a dash into an em dash,
adding a full stop, using <constant> consistently).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327439 c90b9560-bf6c-de11-be94-00142212c4b1
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
- All id attributes are now xml:id
- Add docbook namespace to all root elements
- Replace <ulink /> with <link xlink:href />
- Minor markup fixes here and there
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1