|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-05-27 22:48 UTC] bwoebi@php.net
[2018-05-27 22:48 UTC] bwoebi@php.net
-Status: Open
+Status: Closed
[2018-05-28 15:16 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Since PHP 7, an array_map on $GLOBALS returns an IS_INDIRECT zval instead of a value. Test script: --------------- array_map(function($x) use (&$lastval) { $lastval = $x; }, $GLOBALS); extract([], 0, $lastval); // for example, anything that will fail on an invalid type // or for direct proof, giving unknown type var_dump(gettype($lastval)); Expected result: ---------------- NULL // on gettype Actual result: -------------- Assertion failed: (0), function _convert_to_string, file /Users/Bob/php-src-X/Zend/zend_operators.c, line 585. Abort trap: 6