Edit report at http://bugs.php.net/bug.php?id=53497&edit=1
ID: 53497 User updated by: nvktknnv at objectmail dot com Reported by: nvktknnv at objectmail dot com Summary: vprintf returns size of formatted string and not the string as sprintf does -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Windows 7 x64 PHP Version: 5.3.3 Block user comment: N Private report: N New Comment: cant read. sry. Previous Comments: ------------------------------------------------------------------------ [2010-12-08 13:07:53] nvktknnv at objectmail dot com Description: ------------ PHP 5.3.3 (cli) (built: Jul 21 2010 20:10:20) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans The example should return a single row of text. Instead running it on Win7 x64 with the CLI of php it returns the result shown below. Test script: --------------- <?php $formatted = vprintf("Some text: %s", array(12344)); echo "\n\nOut: $formatted\n"; ?> Expected result: ---------------- Out:Some text: 12344 Actual result: -------------- Some text: 12344 Out: 16 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53497&edit=1