Bug #12590: hex const (0xABCDEF01) parsing error

From: Date: Mon, 06 Aug 2001 11:35:58 +0000
Subject: Bug #12590: hex const (0xABCDEF01) parsing error
Groups: php.dev 
Request: Send a blank email to php-dev+get-62229@lists.php.net to get a copy of this message
From: vda@port.imtp.ilyichevsk.odessa.ua Operating system: Linux PHP version: 4.0.5 PHP Bug Type: Scripting Engine problem Bug description: hex const (0xABCDEF01) parsing error Looks like there's some trouble with parsing big hex consts (those with sign bit set). Try this: ... echo (0x7FFF00FF & 0xFFFF); //echoes 255 echo (0x800000FF & 0xFFFF); //echoes 0!!! ... 0x800000FF apparently is mis-parsed. -- Edit bug report at: http://bugs.php.net/?id=12590&edit=1

« previous php.dev (#62229) next »