summaryrefslogtreecommitdiff
path: root/ext/gmp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'pull-request/877'Stanislav Malyshev2014-11-303-0/+262
|\ | | | | | | | | * pull-request/877: gmp_random_seed()
| * gmp_random_seed()Leigh2014-10-193-0/+262
| |
* | Merge branch 'PHP-5.6'Remi Collet2014-10-271-26/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: NEWS NEWS Fix bug #63595 GMP memory management conflicts with other libraries using GMP Conflicts: ext/gmp/gmp.c
| * \ 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.
* | | | | fix datatypeAnatol Belski2014-10-221-1/+1
| |_|_|/ |/| | |
* | | | Merge branch 'PHP-5.6'Stanislav Malyshev2014-10-144-9/+237
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: update NEWS and UPGRADING Upated NEWS Address issues raised by @nikic Make sure min < max Mersenne Twister was added in GMP 4.2 Add test files Add gmp_random_bits(bits) and gmp_random_range(min, max) Change GMPs default PRNG to Mersenne Twister Conflicts: ext/gmp/gmp.c
| * | | 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.
* | | | Drop support for GMP 4.1Nikita Popov2014-09-283-40/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Consistent base conversion support (max: 62) * mpz_remroot always available * Use gmp_randinit_mt instead of LCG
* | | | Make gmp_setbit and gmp_clrbit return values consistentLeigh2014-09-283-6/+8
| | | |
* | | | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-192-2/+2
| | | |
* | | | Fixed useless or duplicated IS_INTERNED() checksDmitry Stogov2014-09-191-1/+1
| | | |
* | | | Fix GMP serializationNikita Popov2014-09-181-2/+2
| | | | | | | | | | | | | | | | Also fix same issue in PDO.
* | | | Merge branch 'PHP-5.6'Nikita Popov2014-09-0444-142/+232
|\ \ \ \ | |/ / / | | | | | | | | | | | | Conflicts: ext/soap/php_http.c
| * | | 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
| | | |
* | | | Fix a number of format issuesNikita Popov2014-09-031-1/+1
| | | |
* | | | Merge branch 'PHP-5.6'Nikita Popov2014-09-022-9/+25
|\ \ \ \ | |/ / / | | | | | | | | | | | | Conflicts: ext/gmp/gmp.c
| * | | 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
| | | |
* | | | Skip 64bit test on 32bitNikita Popov2014-09-022-6/+9
| | | | | | | | | | | | | | | | Also minor type improvements
* | | | fix datatypes for gmp to be compatible with GMP/MPIR on different platformsAnatol Belski2014-09-022-10/+19
| | | |
* | | | add a test with gmp and PHP_INT_MAXAnatol Belski2014-09-021-0/+26
| | | |
* | | | one semicolon too muchAnatol Belski2014-09-021-2/+2
| | | |
* | | | mpz functions don't work on zend_ulongs...Nikita Popov2014-09-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | If we really want to support zend_ulong > ulong in GMP the right approach would be to only handle < LONG_MAX in ui shortcut functions and use mpz_import in convert_to_gmp for number > LONG_MAX.
* | | | Merge branch 'PHP-5.6'Nikita Popov2014-09-023-16/+307
|\ \ \ \ | |/ / / | | | | | | | | | | | | Conflicts: ext/gmp/gmp.c
| * | | Implement gmp_import() and gmp_export()Leigh2014-09-023-20/+311
| | | |
* | | | Merge branch 'PHP-5.6'Nikita Popov2014-08-272-1/+38
|\ \ \ \ | |/ / /
| * | | Fix bug #67917 (gmp compound assignment operator leak)Nikita Popov2014-08-272-1/+38
| | | |
* | | | master renames phase 2Anatol Belski2014-08-251-2/+2
| | | |
* | | | master renames phase 1Anatol Belski2014-08-251-72/+72
| | | |
* | | | fixes to %pd format usageAnatol Belski2014-08-241-3/+3
| | | |
* | | | ported ext/gmpAnatol Belski2014-08-191-41/+41
| | | |
* | | | basic macro replacements, all at onceAnatol Belski2014-08-191-33/+33
| | | |
* | | | Use optimized zend_array_dup() function. convert zend_hash_num_elements() ↵Dmitry Stogov2014-05-231-2/+1
| | | | | | | | | | | | | | | | and zend_hash_next_free_element() into macros.
* | | | Fixed access to uninitialized data and attempt to double freeDmitry Stogov2014-05-131-0/+2
| | | |
* | | | Port ext/gmp (one failure)Nikita Popov2014-05-061-115/+94
|/ / /
* | | 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
| | |