<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/gmp, branch dev</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Make this extension compile as shared extension too.</title>
<updated>2002-06-21T00:15:48+00:00</updated>
<author>
<name>foobar</name>
<email>sniper@php.net</email>
</author>
<published>2002-06-21T00:15:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=e79b06fc02f10c2e848e48f1a8a9f41e204e9b11'/>
<id>e79b06fc02f10c2e848e48f1a8a9f41e204e9b11</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't use headers if the module contains only one phpinfo() entry, just</title>
<updated>2002-06-09T12:56:27+00:00</updated>
<author>
<name>Sander Roobol</name>
<email>sander@php.net</email>
</author>
<published>2002-06-09T12:56:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=85a99fa5a369930e25bf196af63d6227611e67f2'/>
<id>85a99fa5a369930e25bf196af63d6227611e67f2</id>
<content type='text'>
stick to ordinary rows.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
stick to ordinary rows.

</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug #15835.</title>
<updated>2002-04-09T20:18:09+00:00</updated>
<author>
<name>jim winstead</name>
<email>jimw@php.net</email>
</author>
<published>2002-04-09T20:18:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=f5b7d979c0fbf4075730ab834003a86d12e92a9f'/>
<id>f5b7d979c0fbf4075730ab834003a86d12e92a9f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug: #16237</title>
<updated>2002-03-27T23:47:06+00:00</updated>
<author>
<name>foobar</name>
<email>sniper@php.net</email>
</author>
<published>2002-03-27T23:47:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=bf663c9746fe775f2b176dbbbcd17cc30756ddf7'/>
<id>bf663c9746fe775f2b176dbbbcd17cc30756ddf7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed</title>
<updated>2002-03-12T16:44:00+00:00</updated>
<author>
<name>Sascha Schumann</name>
<email>sas@php.net</email>
</author>
<published>2002-03-12T16:44:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=5cba3a99c207c338b70e8bca7d434c975e5c5a4a'/>
<id>5cba3a99c207c338b70e8bca7d434c975e5c5a4a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed many tests, mostly incorrect paths.</title>
<updated>2002-03-08T19:16:19+00:00</updated>
<author>
<name>Sander Roobol</name>
<email>sander@php.net</email>
</author>
<published>2002-03-08T19:16:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=58a52f93bc28a8c789c2320e138d69bbd4b045a6'/>
<id>58a52f93bc28a8c789c2320e138d69bbd4b045a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Maintain headers.</title>
<updated>2002-02-28T08:29:35+00:00</updated>
<author>
<name>Sebastian Bergmann</name>
<email>sebastian@php.net</email>
</author>
<published>2002-02-28T08:29:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=90613d2282e4863630b2facc023af175dd973311'/>
<id>90613d2282e4863630b2facc023af175dd973311</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>'0b' could be the beginning of a hex string (without leading '0x') so if</title>
<updated>2002-02-10T23:19:38+00:00</updated>
<author>
<name>Sean Bright</name>
<email>elixer@php.net</email>
</author>
<published>2002-02-10T23:19:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=6829710dceb0d39a06b7560a493a462e7504657b'/>
<id>6829710dceb0d39a06b7560a493a462e7504657b</id>
<content type='text'>
the user specifies base 16, use that instead.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the user specifies base 16, use that instead.

</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new test for GMP base recognition.</title>
<updated>2002-02-10T23:13:37+00:00</updated>
<author>
<name>Sean Bright</name>
<email>elixer@php.net</email>
</author>
<published>2002-02-10T23:13:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=72c5a9cd8aeb4eedda33e1e88c7ce6517430feee'/>
<id>72c5a9cd8aeb4eedda33e1e88c7ce6517430feee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for bugs #10133 and #15454.</title>
<updated>2002-02-10T23:12:57+00:00</updated>
<author>
<name>Sean Bright</name>
<email>elixer@php.net</email>
</author>
<published>2002-02-10T23:12:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=cc065b33514a3ef6533de6b5406db954a5f4b9c4'/>
<id>cc065b33514a3ef6533de6b5406db954a5f4b9c4</id>
<content type='text'>
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 &lt;stdio.h&gt;
#include &lt;gmp.h&gt;

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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;stdio.h&gt;
#include &lt;gmp.h&gt;

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.

</pre>
</div>
</content>
</entry>
</feed>
