Bug #1325: longval() and a (long) cast would be handy

From: Date: Sun, 18 Apr 1999 16:55:28 +0000
Subject: Bug #1325: longval() and a (long) cast would be handy
Groups: php.dev 
Request: Send a blank email to php-dev+get-5118@lists.php.net to get a copy of this message
From: maarnold@gte.net Operating system: linux PHP version: 3.0.5 PHP Bug Type: Feature/Change Request Bug description: longval() and a (long) cast would be handy floor(), ceil(), intval() all return 2 byte int. Large floats get rolled over by floor() and ceil(). Long strings get rolled over by intval(). I'm trying to create a web based postgress database manager and I'm having a bit of trouble supporting the int4 data type. The php documentation on type manipulation says that integers are treated as longs. You might just want to have floor(), ceil(), and intval() always return a long. That may be easiest. I saw the bug report from the guy with the mysql database. My application is also a "serious" database app; but I'm not quite so vindictive. Thanks -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5118) next »