|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-05-17 18:28 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: *General Issues
[2015-05-17 18:28 UTC] cmb@php.net
[2016-02-21 12:40 UTC] nikic@php.net
-Type: Feature/Change Request
+Type: Bug
[2016-02-21 12:40 UTC] nikic@php.net
[2020-12-21 22:00 UTC] sji at sj-i dot dev
[2020-12-21 22:02 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2020-12-21 22:02 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
Description: ------------ If an object is supplied instead of an array, v(s)printf takes the internal object elements as elements despite of its visibility. This is not only quite annoying but could be a security issue as well. Reproduce code: --------------- class foo { private $x = 1; private $y = 2; } $array = new foo; vprintf('%s < %s',$array); Expected result: ---------------- An E_WARNING should be triggered. Alternatively, vprintf could take an object instantiating or extending ArrayObject and behave according to the objects functions. Actual result: -------------- vprintf prints: 1 < 2