Bug #81297 [NEW]: Incorrect __toString() return for internal deprecated functions
| From: | herobrine135111 at gmail dot com | Date: | Mon, 26 Jul 2021 07:49:16 +0000 |
| Subject: | Bug #81297 [NEW]: Incorrect __toString() return for internal deprecated functions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235351@lists.php.net to get a copy of this message | ||
From: herobrine135111 at gmail dot com
Operating system:
PHP version: 8.0.8
Package: Reflection related
Bug Type: Bug
Bug description:Incorrect __toString() return for internal deprecated functions
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 ]
}
--
Edit bug report at https://bugs.php.net/bug.php?id=81297&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81297&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81297&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81297&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81297&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81297&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81297&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81297&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81297&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81297&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81297&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81297&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81297&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81297&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81297&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81297&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81297&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81297&r=mysqlcfg