Re: PHP 4.0 Bug #5382: & does not work with unsigned int32

From: Date: Tue, 04 Jul 2000 17:46:10 +0000
Subject: Re: PHP 4.0 Bug #5382: & does not work with unsigned int32
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23488@lists.php.net to get a copy of this message
Casper, AFAIK, the Zend engine only supports signed 32bit ints ... clayton ----- Original Message ----- From: <casper@steinhauer.dk> To: <php-dev@lists.php.net> Sent: Wednesday, July 05, 2000 11:15 AM Subject: [PHP-DEV] PHP 4.0 Bug #5382: & does not work with unsigned int32 > From: casper@steinhauer.dk > Operating system: Linux version 2.4.0-test2 > PHP version: 4.0 Release Candidate 1 > PHP Bug Type: Scripting Engine problem > Bug description: & does not work with unsigned int32 > > #!/usr/local/bin/php -q > <?php > > echo "here the & goes good\n"; > $a=884330816; > print ($a); > print ("\n"); > print (($a-256*256*256*128) & 255); > print ("\n"); > print (($a) & 255); > print ("\n"); > > echo "here it goes bad\n"; > $a=4076863680; > print ($a); > print ("\n"); > print (($a-256*256*256*128) & 255); > print ("\n"); > print (($a) & 255); # $a is an unsigned int32 when it is printed! > print ("\n"); > > ?> > > It works in PHP3 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#23488) next »