? Success

User tests: Successful: Unsuccessful:

avatar beat
beat
20 Oct 2014

This PR fixes JLog class as used in the Joomla Debug plugin, to accept callables of type array(object, method) where object has closures.

serialize() of object with closures generates a fatal error in php.

Thus for closures as handlers, this has been fixed already by using spl_object_hash() for the closure. But in case of a handler that is array(object, method) where object might have variables containing closures (or objects containing variables with closures), it is still generating a fatal error.

This PR is obvious with a source-code review. Tests should check that plugins continue to work fine (e.g. remember-me and sef). If desired, a valid test-code that generates a fatal with master, but works fine with PR can be provided.

avatar beat beat - open - 20 Oct 2014
avatar jissues-bot jissues-bot - change - 20 Oct 2014
Labels Added: ?
avatar zero-24 zero-24 - change - 21 Oct 2014
Category Libraries
avatar SniperSister
SniperSister - comment - 24 Oct 2015

Looks good to me from a code review perspective.

avatar jduerscheid jduerscheid - test_item - 24 Oct 2015 - Tested successfully
avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

I have tested this item :white_check_mark: successfully on e9316b8

Plugins Sucessfully tested. Not able to understand code.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4865.

avatar SniperSister SniperSister - alter_testresult - 24 Oct 2015 - SniperSister: Tested successfully
avatar SniperSister
SniperSister - comment - 24 Oct 2015

Oh, but wait a second! What if the first value of the array isn't an object instance but a string - that might happen when the callback method can be called statically, right?

avatar SniperSister SniperSister - change - 24 Oct 2015
Status Pending Information Required
avatar roland-d
roland-d - comment - 12 Dec 2015

@SniperSister I understand what you are saying but can't imagine it :) Do you have any code example to visualize it?

avatar SniperSister
SniperSister - comment - 12 Dec 2015

Hm. In the meantime I can't imagine it either. And after rechecking the code I think it isn't an issue at all, so forget about it ;)

avatar roland-d roland-d - change - 12 Dec 2015
Milestone Added:
avatar roland-d roland-d - reference | d099e3d - 12 Dec 15
avatar roland-d roland-d - merge - 12 Dec 2015
avatar roland-d roland-d - close - 12 Dec 2015
avatar roland-d roland-d - close - 12 Dec 2015
avatar roland-d roland-d - change - 12 Dec 2015
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2015-12-12 13:27:48
Closed_By roland-d

Add a Comment

Login with GitHub to post a comment