|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-07-26 23:09 UTC] a at b dot c dot de
[2021-08-09 12:08 UTC] cmb@php.net
-Summary: Incorrect __toString() return for internal deprecated
functions
+Summary: Improve __toString() return for internal deprecated
functions
-Type: Bug
+Type: Feature/Change Request
[2021-08-09 12:08 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 21:00:02 2025 UTC |
Description: ------------ ReflectionFunction and ReflectionMethod __toString() method for internal deprecated functions returns strange looking <internal, deprecated:libxml> instead of <internal:libxml, deprecated> Test script: --------------- <?php // libxml_disable_entity_loader is deprecated in PHP 8 echo (new ReflectionFunction('libxml_disable_entity_loader')); Expected result: ---------------- Function [ <internal:libxml, deprecated> function libxml_disable_entity_loader ] { - Parameters [1] { Parameter #0 [ <optional> bool $disable = true ] } - Return [ bool ] } Actual result: -------------- Function [ <internal, deprecated:libxml> function libxml_disable_entity_loader ] { - Parameters [1] { Parameter #0 [ <optional> bool $disable = true ] } - Return [ bool ] }