Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix bug #15835. | jim winstead | 2002-04-09 | 1 | -1/+1 |
| | |||||
* | Fixed bug: #16237 | foobar | 2002-03-27 | 1 | -4/+4 |
| | |||||
* | Maintain headers. | Sebastian Bergmann | 2002-02-28 | 1 | -1/+1 |
| | |||||
* | '0b' could be the beginning of a hex string (without leading '0x') so if | Sean Bright | 2002-02-10 | 1 | -1/+1 |
| | | | | | the user specifies base 16, use that instead. | ||||
* | Fix for bugs #10133 and #15454. | Sean Bright | 2002-02-10 | 1 | -12/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #15454 results from a bug in GMP. If you pass in a string '0xABCD' and specify a base of 0, GMP figures out that it is hex and skips over the 0x characters. If you specify base 16, then it doesn't skip those chars. This was confirmed with the following test program: #include <stdio.h> #include <gmp.h> int main() { char *str_one, *str_two; mpz_t num_one, num_two; mpz_init_set_str (num_one, "0x45", 0); str_one = mpz_get_str(NULL, 10, num_one); mpz_init_set_str (num_two, "0x45", 16); str_two = mpz_get_str(NULL, 10, num_two); printf("%s / %s\n", str_one, str_two); mpz_clear (num_one); mpz_clear (num_two); return 0; } We now take anything that starts with 0[xX] as hexidecimal and anything that starts 0[bB] as binary (this is what GMP does internally). We also no longer force the base to 10 or 16, but instead let GMP decide what the best base is, be it hex, dec, or octal. | ||||
* | proto fix | Hartmut Holzgraefe | 2001-12-15 | 1 | -1/+1 |
| | |||||
* | Update headers. | Sebastian Bergmann | 2001-12-11 | 1 | -2/+2 |
| | |||||
* | * zend_module_entry change: apino, debug and zts are moved first, | Stig Bakken | 2001-10-11 | 1 | -0/+2 |
| | | | | | | see README.EXTENSIONS file for upgrade help. @Introduced extension version numbers (Stig) | ||||
* | - Don't wrap lines... this is annoying while coding. | Derick Rethans | 2001-09-09 | 1 | -2/+2 |
| | |||||
* | Whitespace | Zeev Suraski | 2001-08-11 | 1 | -14/+14 |
| | |||||
* | ZEND macro-rename. | foobar | 2001-08-11 | 1 | -6/+6 |
| | |||||
* | Another TSRM fix. Plus killed some compile warnings. | foobar | 2001-08-07 | 1 | -22/+23 |
| | |||||
* | (gmp_init) Added extra (optional) argument to gmp_init(): | Stanislav Malyshev | 2001-08-05 | 1 | -14/+26 |
| | | | | | | | | | | a base argument which indicates the number base. E.g.: gmp_init('1010101010',2); // feed gmp a binary value. Patch by Troels. @- Added optional extra argument to gmp_init(). The extra argument @ indicates which number base gmp should use when converting a @ string to the gmp-number. (Troels) | ||||
* | More TSRMLS_FETCH annihilation | Zeev Suraski | 2001-07-31 | 1 | -2/+3 |
| | |||||
* | More TSRMLS_FETCH work, and a bit of cleanup | Zeev Suraski | 2001-07-30 | 1 | -3/+0 |
| | |||||
* | Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on ↵ | Zeev Suraski | 2001-07-30 | 1 | -3/+0 |
| | | | | the way | ||||
* | Make gmp compile again | Stanislav Malyshev | 2001-06-06 | 1 | -6/+6 |
| | |||||
* | Fix folding and clean up some extensions | Rasmus Lerdorf | 2001-06-06 | 1 | -1/+2 |
| | |||||
* | vim-6 does folding - clean up a bunch of missing folding tags plus | Rasmus Lerdorf | 2001-06-05 | 1 | -12/+62 |
| | | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions | ||||
* | * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build) | Stig Bakken | 2001-05-24 | 1 | -0/+4 |
| | |||||
* | - Fix copyright notices with 2001 | Andi Gutmans | 2001-02-26 | 1 | -1/+1 |
| | |||||
* | Fix prototypes | Stanislav Malyshev | 2000-12-06 | 1 | -9/+9 |
| | | | | | Fix prefect_square return | ||||
* | Make GMP use Zend's memory functions | Stanislav Malyshev | 2000-12-05 | 1 | -0/+18 |
| | |||||
* | Fix prototypes | Stanislav Malyshev | 2000-12-05 | 1 | -2/+2 |
| | |||||
* | Add check for conversion base | Stanislav Malyshev | 2000-12-05 | 1 | -0/+5 |
| | |||||
* | Fixed some protos. | Egon Schmid | 2000-12-01 | 1 | -76/+38 |
| | |||||
* | Add more GMP functions, fix a couple of bugs | Stanislav Malyshev | 2000-11-29 | 1 | -29/+123 |
| | |||||
* | GNU GMP - arbitrary precision nubers library | Stanislav Malyshev | 2000-11-26 | 1 | -0/+1086 |