ID: 10002
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Strings related
Operating System: Debian
PHP Version: 4.1.1
New Comment:

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'


Previous Comments:
------------------------------------------------------------------------

[2002-01-15 12:33:46] [EMAIL PROTECTED]

I played with ini settings (to be frank remove the
php.ini), and now examples work fine.

------------------------------------------------------------------------

[2002-01-09 16:43:39] [EMAIL PROTECTED]

I'd like to reopen it. Visit the page: 

http://213.134.22.60/~gerzson/sprintf.php


------------------------------------------------------------------------

[2002-01-09 16:36:36] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2001-03-27 12:30:21] [EMAIL PROTECTED]

Patch applied, but it's still a strange thing.

------------------------------------------------------------------------

[2001-03-27 08:32:14] [EMAIL PROTECTED]

I can't reproduce it under RH 6.2.  Generally the fix isn't supposed to
do anything (since arg is a double, 10 should be converted to a double
automatically), but the fix can't hurt anything so if it works around a
compiler bug, it's fine.

PHP cannot use sprintf() because sprintf() works with C types with
predefined types for the arguments, whether PHP has its own types, and
autoconverts arguments to match the format string.

------------------------------------------------------------------------

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/?id=10002


Edit this bug report at http://bugs.php.net/?id=10002&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to