php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48320 assoc arrays with vsprintf
Submitted: 2009-05-18 21:32 UTC Modified: 2014-12-30 10:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: yasar dot oezdemir at web dot de Assigned:
Status: No Feedback Package: Strings related
PHP Version: Any OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yasar dot oezdemir at web dot de
New email:
PHP Version: OS:

 

 [2009-05-18 21:32 UTC] yasar dot oezdemir at web dot de
Description:
------------
It would be VERY helpful if you could add the functionality of associated arrays in vpsprintf. 

That would also make many view template scripts easier.

Reproduce code:
---------------
vsprintf("%2$s %1$s", array('bar','foo'))

Expected result:
----------------
vsprintf("%first$s %second$s", array('second'=>'bar','first'=>'foo'))

Actual result:
--------------
foo bar

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-30 22:51 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: Strings related -Operating System: irrelevant +Operating System: Irrelevant -PHP Version: 5.2.9 +PHP Version: Any
 [2014-04-30 22:51 UTC] levim@php.net
Is this something you are still interested in seeing?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC