PHP 4.0 Bug #5203: Floating Point numbers don't work (it uses integers)

From: Date: Fri, 23 Jun 2000 13:30:45 +0000
Subject: PHP 4.0 Bug #5203: Floating Point numbers don't work (it uses integers)
Groups: php.dev 
Request: Send a blank email to php-dev+get-22091@lists.php.net to get a copy of this message
From: Federico@Pomi.net Operating system: Linux (RedHat 6.1 and 6.2 boxes) PHP version: 4.0.0 Release PHP Bug Type: Other Bug description: Floating Point numbers don't work (it uses integers) Floating Point numbers don't work on my setup. Example: $mystring="1.25"; $mydouble=(double) $mystring; print($mydouble); prints out "1", instead of "1.25". I did several tests, even with code from documentation, and I always get integer numbers, both on my box and my ISP box (similar config). On other boxes it seems to work nicely. It worked nicely even on my box with PHP3 installed. I also tried to add BCMATH support, but it still doesn't work. I configured my php4 with: ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-pdflib --disable-debug

« previous php.dev (#22091) next »