|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-12-27 21:42 UTC] j dot de dot nies at protonmail dot com
[2021-01-09 11:40 UTC] arozkova676 at gmail dot com
[2021-01-12 08:51 UTC] nikic@php.net
-Status: Open
+Status: Closed
[2021-01-12 08:51 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ PHP 8.0.0 made it so that the bcmath functions (among others) "throw an Error exception if the validation of the parameters fails" but there's one condition in which a warning will still be triggered (as opposed to an exception being thrown). Test script: --------------- <?php bcadd('a', 'a'); Expected result: ---------------- throw new TypeError('bcadd(): Argument #1 ($num1) must be numeric'); or some such Actual result: -------------- trigger_error('bcadd: bcmath function argument is not well-formed', E_USER_WARNING);