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 played with ini settings (to be frank remove the php.ini), and now examples work fine. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2001-03-26 17:19:30] [EMAIL PROTECTED] This bug is in 4.0.5RC2 too, just confirmed it ------------------------------------------------------------------------ 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]