Commit Graph

73 Commits

Author SHA1 Message Date
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Felipe Pena
b13b2a42e1 - New parameter parsing API (for gmp_testbit) 2008-08-13 12:20:54 +00:00
Ilia Alshanetsky
a28f797952 MFB: Fixed bug #43981 (gmp_div_r() does not preserve the sign of 1st argument) 2008-01-30 18:26:08 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Stanislav Malyshev
bb28d401ff MFB gmp fixes 2007-11-01 20:33:22 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Antony Dovgal
9acfe7288f add GMP_VERSION constant
add test
do not allow zero operand in gmp_divexact()
2007-04-25 18:09:08 +00:00
Antony Dovgal
2bdfafadeb [DOC] add gmp_testbit() function
tests if the specified bit is set and returns false/true
2007-04-23 14:57:37 +00:00
Antony Dovgal
0ff18f4db5 fix gmp_gcdext() in Unicode mode 2007-04-19 09:36:34 +00:00
Antony Dovgal
c6a784fe36 same for gmp_scan*() 2007-04-18 20:53:21 +00:00
Antony Dovgal
93ca92457c do not allow negative byte index
tests will follow soon
2007-04-18 20:36:47 +00:00
Antony Dovgal
14a8175ed7 nuke more dead code 2007-01-12 12:31:31 +00:00
Antony Dovgal
ae9a444a63 delete useless comments and skeleton leftovers 2007-01-12 12:16:36 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Sara Golemon
71a765c651 PHP6 Updates 2006-10-09 20:42:35 +00:00
Hannes Magnusson
7589f995c9 Removed obsolete arg_info include 2006-06-26 14:10:57 +00:00
Hannes Magnusson
a0c41f3e95 Added arg info
Fixed protos
2006-06-14 21:29:22 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Antony Dovgal
c53b85fae5 add gmp_nextprime() function
patch by ants dot aasma at gmail dot com
2006-04-03 17:46:12 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Stanislav Malyshev
b86bab9735 @- Fix #32773 and make right fix for GMP FPEs (Stas)
Fix #32773 and make right fix for GMP FPEs
2005-04-25 12:18:50 +00:00
Antony Dovgal
6dac68f669 fix SIGFPE in gmp_powm(), gmp_sqrt() & gmp_sqrtrem() when using negative values
do not allow negative value to be passed to gmp_fact()
2005-03-01 13:09:33 +00:00
Ilia Alshanetsky
3e638c84c0 Fixed bug #28525 (gmp_powm() does not work with hexadecimal string modulo
represented as a string).
Patch by: pickett at sumu dot org
2004-06-09 14:39:33 +00:00
Ilia Alshanetsky
4f388ba849 Better gmp fix. 2004-02-16 15:13:40 +00:00
Ilia Alshanetsky
b7329c8456 Fixed bug #27258 (moved FPE check to correct location).
Fixed several possible FPE.
2004-02-15 17:22:57 +00:00
Ilia Alshanetsky
0e5020fdad Fixed bug #27172 (Possible floating point exception in gmp_powm()). 2004-02-09 04:27:35 +00:00
foobar
6b8616889d Fixed bug #27171 2004-02-07 19:14:49 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar
83650e4e67 Fix the build for other than x86 archs. 2003-11-24 16:09:45 +00:00
foobar
398b9048dd ws fix 2003-11-19 05:00:56 +00:00
foobar
56ca2bb6c1 - Fixed bug #26267 (gmp_random() leaks memory and does not produce random numbers)
# ..and mpz_random() is obsolete according to the GNU MP manual.
2003-11-19 04:44:06 +00:00
foobar
97886632ad - Fix the parameter setting. (this function has 1 optional parameter) 2003-11-18 10:28:13 +00:00
Wez Furlong
c35810c203 unintialized variable.
Patch by Joe Orton
2003-10-13 11:46:36 +00:00
Zeev Suraski
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Sara Golemon
cbf8c3e346 Bug #21534. Silly typo. 2003-03-13 16:10:21 +00:00
Ilia Alshanetsky
38ad0e9104 zend_error -> php_error_docref. 2003-01-24 16:29:40 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Sander Roobol
85a99fa5a3 Don't use headers if the module contains only one phpinfo() entry, just
stick to ordinary rows.
2002-06-09 12:56:27 +00:00
jim winstead
f5b7d979c0 Fix bug #15835. 2002-04-09 20:18:09 +00:00
foobar
bf663c9746 Fixed bug: #16237 2002-03-27 23:47:06 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Sean Bright
6829710dce '0b' could be the beginning of a hex string (without leading '0x') so if
the user specifies base 16, use that instead.
2002-02-10 23:19:38 +00:00
Sean Bright
cc065b3351 Fix for bugs #10133 and #15454.
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.
2002-02-10 23:12:57 +00:00