gmp_and operation ???

Pedro Gimeno gmpdiscuss at personal.formauri.es
Sat Feb 6 11:43:23 CET 2010


Priti Solanki wrote:
> Well i don't understand why you said it's non-gmp problem...!!  anywayz

This is a PHP quirk, not even a problem. The PHP GMP module is taking
numbers starting with 0 as octal, so the output is correct. This is
unrelated to GMP and is related to how the GMP interface for PHP works.

$ php -r 'echo gmp_strval("010");'
8

If you need help with your task at hand, you should use a PHP-related
list. Here people are unfamiliar with the PHP-GMP interface.


More information about the gmp-discuss mailing list