|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-01-28 15:02 UTC] dormilich at netscape dot net
[2016-01-31 15:23 UTC] bwoebi@php.net
-Type: Bug
+Type: Documentation Problem
[2016-01-31 15:23 UTC] bwoebi@php.net
[2021-01-13 14:55 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-01-13 14:55 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 14:00:02 2025 UTC |
Description: ------------ When the format string contains text after the last placeholder, which must be a string (i.e. %s), the variable is not only assigned the intended value, but also the text coming after it. Test script: --------------- <?php sscanf('<report>cf2b27b5556c2ddc</report>', '<report>%s</report>', $hex); echo $hex; ?> Expected result: ---------------- cf2b27b5556c2ddc Actual result: -------------- cf2b27b5556c2ddc</report>