|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-21 21:40 UTC] capiCrimm at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
Description: ------------ Using argument swapping with *printf you get a parse error thats the same as if you included a variable in the string. Reproduce code: --------------- class Slaughter { const pig = "%1/$s is dead!"; public function __construct(){ printf(self::pig,'Oinker '); } } new Slaughter; Expected result: ---------------- Oinker is dead! Actual result: -------------- Parse error: parse error, unexpected '"' in <> on line <>