|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-04 12:04 UTC] cmb@php.net
-Package: SPL related
+Package: Strings related
[2015-06-04 12:04 UTC] cmb@php.net
[2021-01-06 16:14 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2021-01-06 16:14 UTC] cmb@php.net
[2021-01-06 16:20 UTC] cmb@php.net
-Type: Feature/Change Request
+Type: Bug
[2021-09-29 10:22 UTC] git@php.net
[2021-09-29 10:22 UTC] git@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 05:00:01 2025 UTC |
Description: ------------ I suggest a more comprehensible error message (see suggestion in "Expected result"). The current error message was missunderstood by me as "The number of arguments of the function is zero (and must be greater than zero)". Instead it was the number of the position specifier argument that was missing (type, "$" and "1" where reversed). Test script: --------------- sprintf("%$1s, %2$s %1$s", "Sir", "Yes"); Expected result: ---------------- Missing position specifier number in /home/ber/Code/Kompetenztest/org/ValiditätEingabe/class_test.php on line $line Actual result: -------------- Argument number must be greater than zero in /home/ber/Code/Kompetenztest/org/ValiditätEingabe/class_test.php on line $line