#10002 [Ana->Csd]: sprintf() and floating point
| From: | iliaa@php.net | Date: | Tue, 15 Oct 2002 03:48:48 +0000 |
| Subject: | #10002 [Ana->Csd]: sprintf() and floating point | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22455@lists.php.net to get a copy of this message | ||
ID: 10002
Updated by: iliaa@php.net
Reported By: bmr@comtime.com
-Status: Analyzed
+Status: Closed
Bug Type: Strings related
Operating System: Debian
PHP Version: 4.1.1
Assigned To: hholzgra
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-06-17 06:59:59] hholzgra@php.net
locale-dependant, does not work for locales where decimal_point is !=
'.' right now
------------------------------------------------------------------------
[2002-01-22 07:46:50] martin@humany.com
I cant reproduce this bug under PHP 4.1.1 neither in Windows XP or
Linux 2.4.
I tried the original example aswell as the additional examples from
http://213.134.22.60/~gerzson/sprintf.php
(abstract from phpinfo()):
System Linux www3 2.4.17 #4 SMP Sat Dec 22 19:40:48 CET 2001 i686
unknown
Build Date Jan 13 2002
Configure Command './configure' '--with-apache=../apache_1.3.22'
'--with-mysql=/usr/local' '--with-gd=/usr/local'
'--with-jpeg-dir=/usr'
'--enable-ftp' '--enable-bcmath' '--with-ming'
'--with-mcrypt'
'--with-mhash' '--with-xml' '--with-imap' '--with-pdflib'
'--with-curl'
'--with-png-dir=/usr' '--with-zlib'
'--with-freetype-dir=/usr/local/include/freetype2'
'--enable-gd-native-ttf' '--disable-posix-threads'
'--enable-memory-limit=yes' '--enable-track-vars' '--enable-trans-sid'
'--enable-debug=no' '--enable-inline-optimization'
------------------------------------------------------------------------
[2002-01-15 12:33:46] pgerzson@freestart.hu
I played with ini settings (to be frank remove the
php.ini), and now examples work fine.
------------------------------------------------------------------------
[2002-01-09 16:43:39] gerzson@php.net
I'd like to reopen it. Visit the page:
http://213.134.22.60/~gerzson/sprintf.php
------------------------------------------------------------------------
[2002-01-09 16:36:36] pgerzson@freestart.hu
I'm sorry to say that I experienced similar misbehaviour
with PHP 4.0.6 and 4.1.1, too.
I'm pulling aggregated statistics from database and display
it. I'm currently working on minimize a test case, please wait. Till
then, visit this link:
http://213.134.22.60/~gerzson/sprintf.php
this is a very simple test script with a show_source() and
phpinfo(). I think this bug should be reopened.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/10002
--
Edit this bug report at http://bugs.php.net/?id=10002&edit=1