summaryrefslogtreecommitdiff
path: root/ext/bcmath
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-112-0/+19
|\ | | | | | | | | * 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-112-0/+19
| | | | | | | | | | | | | | 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-092-0/+24
|\ \ | |/ | | | | | | * PHP-7.0: Fix bug75178.phpt on Windows
| * Fix bug75178.phpt on WindowsChristoph M. Becker2017-09-092-0/+24
| | | | | | | | | | | | bug75178.phpt fails on Windows, because the stderr output is not interspersed with stdout output there, but rather is appended to the end. The fix is analogous to bug72093.phpt.
* | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-09-092-7/+33
|\ \ | |/ | | | | | | * 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-092-7/+33
| | | | | | | | | | | | | | | | | | | | 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-072-8/+31
|\ \ | |/ | | | | | | * 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-072-8/+31
| | | | | | | | | | `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-062-1/+17
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #44995 (bcpowmod() fails if scale != 0)
| * Fixed bug #44995 (bcpowmod() fails if scale != 0)Christoph M. Becker2017-09-062-1/+17
| | | | | | | | | | `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
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
| |
* | 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
|/ /
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-04-272-1/+24
|\ \ | |/ | | | | | | * PHP-5.6: fix/improve tests
| * fix/improve testsAnatol Belski2016-04-272-1/+24
| |
* | fix mergeAnatol Belski2016-04-271-2/+3
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-04-272-0/+34
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fix memory leak Fix bug #72099: xml_parse_into_struct segmentation fault 5.5.36 now Fix bug #72094 - Out of bounds heap read access in exif header processing Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset Fix for bug #71912 (libgd: signedness vulnerability) Typo in NEWS
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-04-262-19/+54
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fix memory leak Fix bug #72099: xml_parse_into_struct segmentation fault 5.5.36 now Fix bug #72094 - Out of bounds heap read access in exif header processing Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset Fix for bug #71912 (libgd: signedness vulnerability) Typo in NEWS Conflicts: configure.in main/php_version.h
| | * Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definitionStanislav Malyshev2016-04-242-19/+54
| | | | | | | | | | | | | | | We can not modify result since it can be copy of _zero_ or _one_, etc. and "copy" in bcmath is just bumping the refcount.
| | * Bump yearXinchen Hui2015-01-152-2/+2
| | |
| | * Bump yearXinchen Hui2014-01-032-2/+2
| | |
* | | Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-032-2/+2
| | | | | | | | | | | | Also re bug #71575.
* | | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-012-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * | Happy new year (Update copyright to 2016)Lior Kaplan2016-01-012-2/+2
| | |
| * | bump yearXinchen Hui2015-01-152-2/+2
| | |
* | | switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
| | |
* | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-2/+2
| | | | | | | | | | | | semantick changes).
* | | cleaning up the version macrosAnatol Belski2015-03-232-1/+4
| | |
* | | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-162-3/+3
| | | | | | | | | | | | which also comply with the current semantics for such macros
* | | bump yearXinchen Hui2015-01-152-2/+2
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-1027-49/+49
| | |
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-171-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: fix unserializer patch move this entry to the correct version add missing NEWS entry add missing NEWS entry Updated or skipped certain 32-bit tests add NEWS entry for #68594 5.4.37 add more BC breaks update news add CVE add missing test file Fix bug #68594 - Use after free vulnerability in unserialize() Fix typo Hash value must not zero?
| * | | Updated or skipped certain 32-bit testsAndrea Faulds2014-12-171-1/+2
| | | |
* | | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-1313-147/+147
| | | |
* | | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-181-16/+16
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (398 commits) NEWS add test for bug #68381 Fixed bug #68381 Set FPM log level earlier during init proper dllexport move to size_t where zend_string is used internally fix some datatype mismatches return after the warning, to fix uninitialized salt usage fix datatype mismatches add missing type specifier fix datatype mismatches fix unsigned check "extern" shouldn't be used for definitions joined identical conditional blocks simplify fpm tests SEND_VAR_NO_REF optimization Add test for bug #68442 Add various tests for FPM - covering recent bugs (68420, 68421, 68423, 68428) - for UDS - for ping and status URI - for multi pool and multi mode Include small MIT FastCGI client library from https://github.com/adoy/PHP-FastCGI-Client Get rid of zend_free_op structure (use zval* instead). Get rid of useless TSRMLS arguments. Add new FPM test for IPv4/IPv6 ... Conflicts: win32/build/config.w32
| * | | fix datatype mismatch warningsAnatol Belski2014-10-301-16/+16
| | | |
* | | | opcache, intl, gmp, exif, com, bcmath to use static tsrmlsAnatol Belski2014-10-174-3/+12
|/ / /
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-192-2/+2
| | |
* | | 's' works with size_t round 2Anatol Belski2014-08-271-1/+1
| | |
* | | first show to make 's' work with size_tAnatol Belski2014-08-271-8/+8
| | |
* | | master renames phase 1Anatol Belski2014-08-253-22/+22
| | |
* | | fixes to ext/bcmathAnatol Belski2014-08-192-19/+19
| | |