summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath/src/zero.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2017-09-09 23:57:22 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2017-09-09 23:57:22 +0200
commitfd73a54c30a0851ae40a1a361ee4022236be6bcb (patch)
tree90896097ac86ebbb564ec1c93215e8a6f62585af /ext/bcmath/libbcmath/src/zero.c
parentd1e82b39e2c87961565da9f5b869829dd0da0437 (diff)
downloadphp-git-fd73a54c30a0851ae40a1a361ee4022236be6bcb.tar.gz
Fixed bug #75169 (BCMath errors/warnings bypass error handling)
Instead of writing warning messages to `stderr`, we employ PHP's error handling to raise `E_WARNING` even for the single case where `bc_rt_error()` has been called, since that did not actually error out. We choose to call `php_error_docref()` directly in libbcmath, since there is no upstream, and since other PHP core functionality is already used in our bundled libbcmath. Accordingly, we remove `rt.c` so it will not be accidentally used in the future. Besides adapting a few existing tests, we add new tests so that the warnings are tested at least once. We also get rid of the Windows specific tests, since the warning behavior is now supposed to be platform-agnostic.
Diffstat (limited to 'ext/bcmath/libbcmath/src/zero.c')
0 files changed, 0 insertions, 0 deletions