Bug #75290 [Asn->Csd]: debug info of Closures of internal functions contain garbage argument names

From: Date: Fri, 29 Sep 2017 20:40:20 +0000
Subject: Bug #75290 [Asn->Csd]: debug info of Closures of internal functions contain garbage argument names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211467@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75290&edit=1 ID: 75290 Updated by: ajf@php.net Reported by: ajf@php.net Summary: debug info of Closures of internal functions contain garbage argument names -Status: Assigned +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 7.0.24 Assigned To: ajf Block user comment: N Private report: N New Comment: Automatic comment on behalf of ajf@ajf.me Revision: http://git.php.net/?p=php-src.git;a=commit;h=abefb6dfe76c57803e49969185183c2b4ef9352e Log: Fix bug #75290 Previous Comments: ------------------------------------------------------------------------ [2017-09-29 20:22:11] ajf@php.net Description: ------------ https://3v4l.org/1ARiM Seems to be broken since 7.x, worked in 5.6. Probably the switch from const char* to zend_string* for /internal/ arg names, but not user names, broke it. Test script: --------------- <?php var_dump((new ReflectionFunction('sin'))->getClosure()); Expected result: ---------------- object(Closure)#2 (1) { ["parameter"]=> array(1) { ["$number"]=> string(10) "<required>" } } Actual result: -------------- object(Closure)#2 (1) { ["parameter"]=> array(1) { ["$p���x�����������X���@���T���t������|�����T���<���Internal zval's can't be arrays, objects or resources"]=> string(10) "<required>" } } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75290&edit=1

« previous php.bugs (#211467) next »