cvs: php4 /ext/gmp gmp.c

From: Date: Sun, 10 Feb 2002 23:19:38 +0000
Subject: cvs: php4 /ext/gmp gmp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9344@lists.php.net to get a copy of this message
elixer Sun Feb 10 18:19:38 2002 EDT Modified files: /php4/ext/gmp gmp.c Log: '0b' could be the beginning of a hex string (without leading '0x') so if the user specifies base 16, use that instead. Index: php4/ext/gmp/gmp.c diff -u php4/ext/gmp/gmp.c:1.24 php4/ext/gmp/gmp.c:1.25 --- php4/ext/gmp/gmp.c:1.24 Sun Feb 10 18:12:57 2002 +++ php4/ext/gmp/gmp.c Sun Feb 10 18:19:38 2002 @@ -214,7 +214,7 @@ if (numstr[1] == 'x' || numstr[1] == 'X') { base = 16; skip_lead = 1; - } else if (numstr[1] == 'b' || numstr[1] == 'B') { + } else if (base != 16 && (numstr[1] == 'b' || numstr[1] == 'B')) { base = 2; skip_lead = 1; }

« previous php.cvs (#9344) next »