note 32343 added to function.printf

From: Date: Sat, 24 May 2003 06:37:22 +0000
Subject: note 32343 added to function.printf
Groups: php.notes 
Request: Send a blank email to php-notes+get-48936@lists.php.net to get a copy of this message
If you are experiencing weird difficulties with floating point numbers, namely ones that appear to be overflow errors, then it could be a compilation error. Try the following at a prompt: python -c 'int(10.1); int(10000.3); int(1.2)' If that overflows, then you'll need to do the following: 1) Fix your CFLAGS (probably change -march=pentium4 to -march=pentium3) 2) Recompile glibc 3) Recompile mod_php 4) Restart Apache 5) Check your script, it should be fine now NOTE: This is _not_ a bug in PHP. It just appears that way because there is a problem in the underlying libraries. ---- Manual Page -- http://www.php.net/manual/en/function.printf.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32343 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32343&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32343&report=yes

« previous php.notes (#48936) next »