summaryrefslogtreecommitdiff
path: root/ext/gmp
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug ##70284 (Use after free vulnerability in unserialize() with GMP)Stanislav Malyshev2015-08-232-5/+55
|
* Fixed bug #69803Nikita Popov2015-06-113-13/+39
|
* Run gmp_random tests more quicklyNikita Popov2015-04-162-4/+4
|
* Normalize gmp_remroot() behavior to GMP 5.1Nikita Popov2015-04-162-3/+7
|
* Fix leak in gmp_pow()Nikita Popov2015-04-161-1/+2
|
* bump yearXinchen Hui2015-01-152-2/+2
|
* We can't output absolute S and T values for theRasmus Lerdorf2015-01-091-21/+11
| | | | | | | Diophantine solution here since it can vary based on the libgmp version we are linking against and in general there are almost always multiple valid solutions
* Fix build with gmp < 4.2Remi Collet2014-11-131-1/+1
| | | | | See 3d6d863ccbd10d212352462b587ae1573af4f1d1 and acd7fcf55f81955e4837c750a5e45f83d3c55ba2
* Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2014-10-271-26/+0
|\ | | | | | | | | | | | | | | | | * PHP-5.5: NEWS Fix bug #63595 GMP memory management conflicts with other libraries using GMP Conflicts: ext/gmp/gmp.c
| * Fix bug #63595 GMP memory management conflicts with other libraries using GMPRemi Collet2014-10-271-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop use of php memory allocators as this raise various conflicts with other extensions and libraries which use libgmp. No other solution found. We cannot for ensure correct use of allocator with shared lib. Some memory can allocated before php init Some memory can be freed after php shutdown Known broken run cases - php + curl + gnutls + gmp - mod_gnutls + mod_php + gnutls + gmp - php + freetds + gnutls + gmp - php + odbc + freetds + gnutls + gmp - php + php-mapi (zarafa) + gnutls + gmp
| * Merge branch 'PHP-5.4' into PHP-5.5Anatol Belski2014-03-111-7/+10
| |\ | | | | | | | | | | | | * PHP-5.4: restored the old code in 5.4/5 related to bug #66872
| | * restored the old code in 5.4/5 related to bug #66872Anatol Belski2014-03-111-7/+10
| | | | | | | | | | | | | | | The crash is reproducable in 5.6+ only, so 5.4 and 5.5 are fine with the old code.
* | | Address issues raised by @nikicLeigh2014-09-243-22/+141
| | | | | | | | | | | | | | | | | | | | | | | | - Thread safety on rand init function. - Ret false on validation failure - Add _dep of temp_a to temp_b - Special case int sized min values - More tests!
* | | Make sure min < maxLeigh2014-09-242-0/+11
| | |
* | | Mersenne Twister was added in GMP 4.2Leigh2014-09-231-1/+4
| | |
* | | Add test filesLeigh2014-09-233-2/+32
| | |
* | | Add gmp_random_bits(bits) and gmp_random_range(min, max)Leigh2014-09-232-9/+78
| | |
* | | Change GMPs default PRNG to Mersenne TwisterLeigh2014-09-231-1/+1
| | | | | | | | | | | | Since we don't allow users to seed the RNG, there is no BC issue with changing the generator.
* | | Split GMP tests testing multiple functionsNikita Popov2014-09-045-142/+140
| | | | | | | | | | | | Also drop dummy test
* | | Give proper names to GMP test filesNikita Popov2014-09-0437-0/+0
| | |
* | | Throw warnings when using zero modulus in gmp_powmNikita Popov2014-09-042-3/+11
| | | | | | | | | | | | Also fixes a leak in this case.
* | | Add GMP tests for some uncovered branchesNikita Popov2014-09-045-8/+92
| | |
* | | Fixed bug #50175Nikita Popov2014-09-022-9/+25
| | | | | | | | | | | | | | | | | | 0x and 0b prefix is now only handled if either no base is given or if the base is 16 (0x) or 2 (0b). Always handling it is incorrect because 0x and 0b are perfectly valid numbers in other bases.
* | | Fix C89 build and small cleanupNikita Popov2014-09-021-4/+4
| | |
* | | Implement gmp_import() and gmp_export()Leigh2014-09-023-20/+311
| | |
* | | Fix bug #67917 (gmp compound assignment operator leak)Nikita Popov2014-08-272-1/+38
| | |
* | | Fix crashes in GMP serialize/unserializeStanislav Malyshev2014-04-281-14/+11
| | |
* | | Add SKIPIF in GMP testNikita Popov2014-03-121-0/+2
| | |
* | | Add tests for bug #66872 and gmp_[rem]rootNikita Popov2014-03-112-0/+158
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Pierre Joye2014-03-101-2/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: update NEWS fix #66872, invalid argument crashes gmp_testbit fix #66872, invalid argument crashes gmp_testbit add vc12 (2013) Conflicts: ext/gmp/gmp.c
| * | Merge branch 'PHP-5.4' into PHP-5.5Pierre Joye2014-03-101-9/+7
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: fix #66872, invalid argument crashes gmp_testbit fix #66872, invalid argument crashes gmp_testbit add vc12 (2013) Conflicts: win32/build/confutils.js
| | * fix #66872, invalid argument crashes gmp_testbitPierre Joye2014-03-101-9/+7
| | |
| | * Bump yearXinchen Hui2014-01-032-2/+2
| | |
| * | Bump yearXinchen Hui2014-01-032-2/+2
| | |
* | | add T_POW (**) operatordatibbaw2014-02-062-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed recognition of the operator Added opcode, still doing multiply instead of pow() opcode now always returns int(42) The right answer, but always a float Yanked code from pow() implementation. Should not handle negative long as exponent ourselves Added test cases from pow() Moved precedence higher than '~' Added GMP operator overloading Added ZEND_ASSIGN_POW (**=) operator. Added pow() as a language construct. Adjusted test cases for changed precedence. Reduced pow() to shell function around ZEND_API pow_function() Reduced test case to only contain edge cases Added overloading test case Moved unary minus above T_POW Revert "Added pow() as a language construct." Bad bad bad idea. This reverts commit f60b98cf7a8371233d800a6faa286ddba4432d02. Reverted unary minus behaviour due to previous revert. Convert arrays to int(0) Exponent with array as a base becomes int(0) Rebase against master Fixed tokenizer test case
* | | Bump yearXinchen Hui2014-01-032-2/+2
| | |
* | | Throw warning when converting invalid string to GMPNikita Popov2013-12-3014-5/+47
| | |
* | | Support gmp_remroot() on GMP 4.1Nikita Popov2013-12-021-1/+12
| | |
* | | Clean up GMP arginfosNikita Popov2013-11-291-188/+55
| | | | | | | | | | | | | | | Removed duplicate arginfos, specified number of required args everywhere and removed weird pass-by-ref arguments.
* | | Add gmp_root() and gmp_rootrem() functionsNikita Popov2013-11-292-1/+82
| | |
* | | Use class handlers for GMP serializationNikita Popov2013-11-291-46/+29
| | | | | | | | | | | | A bit faster and less boilerplate
* | | Remove duplicate / commented code in GMPNikita Popov2013-11-291-53/+4
| | |
* | | Fix bug #65997 by switching to Serializable for GMPNikita Popov2013-10-293-20/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than using get_properties and __wakeup for serialization the code now uses Serializable::serialize() and Serializable::unserialize(). The get_properties handler is switched to a get_debug_info handler. Thus get_gc will now return only the normal properties and not do any modifications, thus fixing the leak. This also avoids a $num property from being publicly visible after the object was dumped or serialized, so that's an extra plus.
* | | Fix compile warning in GMPNikita Popov2013-10-291-1/+1
| | |
* | | Merge branch 'PHP-5.5'Christopher Jones2013-08-141-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-5.5: Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings. Conflicts: ext/gmp/gmp.c
| * | Merge branch 'PHP-5.4' into PHP-5.5Christopher Jones2013-08-141-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * PHP-5.4: Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings. Conflicts: ext/dba/libinifile/inifile.c
| | * Reduce (some) compile noise of 'unused variable' and 'may be used ↵Christopher Jones2013-08-141-1/+1
| | | | | | | | | | | | uninitialized' warnings.
* | | Merge branch 'PHP-5.5'Christopher Jones2013-08-061-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Fix long-standing visual pain point: the misalignment of './configure help' text. Whitespace changes and a couple of grammar fixes.
| * | Fix long-standing visual pain point: the misalignment of './configure help' ↵Christopher Jones2013-08-061-1/+1
| |/ | | | | | | | | | | text. Whitespace changes and a couple of grammar fixes.
| * - Fixed bug #65227 (Memory leak in gmp_cmp second parameter)Felipe Pena2013-07-121-0/+1
| |