#42107 [Opn->Asn]: sscanf broken when using %2$s type format parameters
| From: | jani@php.net | Date: | Thu, 26 Jul 2007 14:27:51 +0000 |
| Subject: | #42107 [Opn->Asn]: sscanf broken when using %2$s type format parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115467@lists.php.net to get a copy of this message | ||
ID: 42107
Updated by: jani@php.net
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