php-src/ext/bcmath/libbcmath
Christoph M. Becker fd73a54c30 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.
2017-09-09 23:57:22 +02:00
..
src Fixed bug #75169 (BCMath errors/warnings bypass error handling) 2017-09-09 23:57:22 +02:00
acconfig.h
aclocal.m4
AUTHORS
ChangeLog
config.h.in
configure
configure.ac Use modern autotools name of configure.ac instead of configure.in 2017-01-27 06:07:40 +00:00
COPYING.LIB
FAQ
INSTALL
install-sh
Makefile.am
missing
mkinstalldirs
NEWS
README

This is bcmath, a library of arbitrary precision math routines.
These routines, in a different form, are the routines that to
the arbitrary precision calculations for GNU bc and GNU dc.

This library is provided to make these routines useful in a
larger context with less restrictions on the use of them.

These routines do not duplicate functionality of the GNU gmp
library.  gmp is similar, but the actual computation is different.