summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath/src
Commit message (Collapse)AuthorAgeFilesLines
* Sync leading and final newlines in source code filesPeter Kokot2018-10-1416-16/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-111-0/+3
|\ | | | | | | | | * PHP-7.0: Fixed bug #46781 (BC math handles minus zero incorrectly)
| * Fixed bug #46781 (BC math handles minus zero incorrectly)Christoph M. Becker2017-09-111-0/+3
| | | | | | | | | | | | | | Actually, there is no negative zero at all. We obey Postel's law, and still accept negative zeroes, but we store them as positive zeroes after the conversion from string, i.e. we normalize before further processing.
* | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-091-7/+15
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
| * Fixed bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)Christoph M. Becker2017-09-091-7/+15
| | | | | | | | | | | | | | | | | | | | Since `bcpowmod()` does not support non-integral operands, we have to truncate these in addition to emitting a respective warning. We also have to work with the truncated values in the following. We recognize that the division by one to enforce the truncation is actually overkill, but we stick with it for now, and shall tackle the issue for PHP 7.3.
* | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-071-8/+15
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #54598 (bcpowmod() may return 1 if modulus is 1)
| * Fixed bug #54598 (bcpowmod() may return 1 if modulus is 1)Christoph M. Becker2017-09-071-8/+15
| | | | | | | | | | `x mod 1` is always zero; we have to take the scale into account, though.
* | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-061-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #44995 (bcpowmod() fails if scale != 0)
| * Fixed bug #44995 (bcpowmod() fails if scale != 0)Christoph M. Becker2017-09-061-1/+1
| | | | | | | | | | `bc_divmod()` is supposed to do integer division, so we must not apply a scale factor here.
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-04-101-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: Fixed condition check
| * Fixed condition checkXinchen Hui2017-04-101-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2016-10-141-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: use zend_error instead of zend_error_noreturn
| * Merge branch 'PHP-5.6' into PHP-7.0Remi Collet2016-10-141-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: use zend_error instead of zend_error_noreturn
| | * use zend_error instead of zend_error_noreturnRemi Collet2016-10-141-1/+1
| | |
| | * Fix bug #73190: memcpy negative parameter _bc_new_num_exStanislav Malyshev2016-10-032-3/+5
| | |
| * | Fix bug #73190: memcpy negative parameter _bc_new_num_exStanislav Malyshev2016-10-122-3/+5
| | | | | | | | | | | | (cherry picked from commit 40e7baab3c90001beee4c8f0ed0ef79ad18ee0d6)
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-142-3/+5
| | | | | | | | | | | | | | | | | | | | | * PHP-7.0: Fix bug #73190: memcpy negative parameter _bc_new_num_ex (cherry picked from commit af1bf873fe4fc70be17fa9f270e8f30666f2d2db)
* | | fix clang compatAnatol Belski2016-08-271-1/+1
|/ /
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-2/+2
| | | | | | | | semantick changes).
* | trailing whitespace removalStanislav Malyshev2015-01-1025-30/+30
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-1312-81/+81
| |
* | master renames phase 1Anatol Belski2014-08-251-2/+2
| |
* | Refactor bcmathXinchen Hui2014-05-052-29/+31
|/
* Fix Bug #60633 build warning in bcmathRemi Collet2013-10-031-3/+0
|
* config.h is in this directory, not in ext/bcmath root, fixes re-compilation ↵Kalle Sommer Nielsen2009-06-031-1/+1
| | | | for me
* - Revert bad fixJani Taskinen2008-08-151-1/+1
|
* - no config.h in ext/Pierre Joye2008-08-151-1/+1
|
* revert config header changeRob Richards2007-09-111-1/+1
|
* point to valid config headerRob Richards2007-09-081-1/+1
|
* use safe_emalloc()Antony Dovgal2007-07-103-7/+7
|
* - avoid sprintfMarcus Boerger2007-02-242-3/+3
|
* Netware also uses autoconf based config nowfoobar2005-06-301-2/+0
|
* - Fix outside-source-tree builds. Always include generated header filesfoobar2005-01-091-1/+1
| | | | | with #include <some_header.h> to make sure the correct file is used.
* fix leakAntony Dovgal2004-12-071-0/+1
|
* - Brought ext/bcmath to the new millenniumfoobar2003-12-092-16/+21
| | | | | # consistency..
* missing config.h includefoobar2003-12-011-0/+4
|
* - Fixed bug #26462 (phpize + ext/bcmath -> compile error)foobar2003-11-291-2/+1
|
* - Let's be consistent with these..foobar2003-02-172-3/+3
|
* Fix bcmath build under win32.Wez Furlong2003-02-161-0/+1
| | | | | | # These problems occur because winsock2.h MUST be included before # windows.h.
* revert previous commitHarald Radi2003-01-161-4/+4
|
* unbreak the buildHarald Radi2003-01-161-4/+4
|
* Remove all traces of _bc_Free_list - it's not used anymoreSander Roobol2002-11-293-0/+8
|
* Portability: The header contains the declaration; while the source ↵Martin Kraemer2002-11-281-1/+1
| | | | | | | ext/bcmath/libbcmath/src/init.c has the definition (otherwise some compilers complain about 'duplicate symbols')
* Made bcmath extension thread safe.Sander Roobol2002-11-2212-139/+106
| | | | | @Made bcmath extension thread safe. (Sander)
* - Revert previous patchAndi Gutmans2002-11-209-33/+33
|
* - Intermediate commit which works on making bcmath thread-safe.Andi Gutmans2002-11-209-33/+33
|
* To include the NetWare config fileAnantha Kesari H Y2002-09-041-0/+2
|
* Please welcome the new build system.Sascha Schumann2002-03-071-7/+0
| | | | | | | | | | If you encounter any problems, please make sure to email sas@php.net directly. An introduction can be found on http://schumann.cx/buildv5.txt
* WhitespaceZeev Suraski2001-08-111-2/+2
|
* Separate CPPFLAGS from CFLAGS.Wilfredo Sanchez2001-04-031-1/+2
|