ID: 42107
Updated by: [EMAIL PROTECTED]
Reported By: mike at theupstairsroom dot com
-Status: Open
+Status: Assigned
Bug Type: Strings related
Operating System: CentOS
PHP Version: 5.2.3
-Assigned To:
+Assigned To: jani
New Comment:
Fix prepared. Running test now..
Previous Comments:
------------------------------------------------------------------------
[2007-07-26 00:54:35] mike at theupstairsroom dot com
Description:
------------
Unexpected results returned when using positioned parameters in
sscanf()
Reproduce code:
---------------
$test = sscanf('test string', '%2$s %1$s');
print_r($test);
Expected result:
----------------
array(
[0] => 'string',
[1] => 'test'
)
Actual result:
--------------
Array
(
[0] =>
[1] =>
[3] => test
[2] => string
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42107&edit=1