|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60628 mystery circular references after tag callback
Submitted: 2011-12-30 19:43 UTC Modified: 2012-02-26 17:09 UTC
From: alpacagm at gmail dot com Assigned: bd808 (profile)
Status: Closed Package: yaml (PECL)
PHP Version: Irrelevant OS: Linux 2.6.18-194.el5 64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alpacagm at gmail dot com
New email:
PHP Version: OS:


 [2011-12-30 19:43 UTC] alpacagm at gmail dot com
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:
data: !mytag 
  - look upper

function callback($value){
   return array('data'=>$value,'another'=>'test');


Expected result:
    [data] => Array
        [0] => look upper
    [another] => test

Actual result:
    [data] => Array
    [another] => test


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-25 06:16 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: bd808
 [2012-02-26 17:06 UTC]
Automatic comment from SVN on behalf of bd808
Log: Fixed Bug #60628.
Added current copyright.
Fixed macro collision with php 5.4.0.
Removed php4 cruft.
 [2012-02-26 17:09 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

REPLACE_ZVAL_VALUE() was the magic macro I should have been using all along.
 [2012-02-26 17:09 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 15:03:42 2023 UTC