|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-25 06:16 UTC] bd808@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: bd808
[2012-02-26 17:06 UTC] bd808@php.net
[2012-02-26 17:09 UTC] bd808@php.net
[2012-02-26 17:09 UTC] bd808@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ Returning composite value (class or array) from tag callback generates circular reference on first child item if[!] source value is a composite value (see example) Probably improper work with php variables on extension level. Test script: --------------- <?php $data= "#yaml --- data: !mytag - look upper ... "; function callback($value){ return array('data'=>$value,'another'=>'test'); } $cnt; $array=yaml_parse($data,0,$cnt,array('!mytag'=>'callback')); print_r($array['data']); ?> Expected result: ---------------- Array ( [data] => Array ( [0] => look upper ) [another] => test ) Actual result: -------------- Array ( [data] => Array *RECURSION* [another] => test )