? Success

User tests: Successful: Unsuccessful:

avatar grisoni77
grisoni77
8 Jan 2014

isset($data['pathway']) returns true even when $data is not an array...
This happens for PHP versions lower than 5.4.x

avatar grisoni77 grisoni77 - open - 8 Jan 2014
avatar Bakual
Bakual - comment - 8 Jan 2014

isset($data['pathway']) returns true even when $data is not an array...

Is that a bug in PHP then? Is that documented somewhere?

avatar grisoni77
grisoni77 - comment - 8 Jan 2014

Yes, it's a PHP bug indeed..
In the isset function changelog (http://php.net/isset) there's probably the explanation we're looking for:

5.4.0 Checking non-numeric offsets of strings now returns FALSE.

avatar Bakual
Bakual - comment - 8 Jan 2014

True, good catch!

Can you please open a trackeritem on JoomlaCode (http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103) and reference it back here?

avatar infograf768 infograf768 - change - 20 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-20 16:24:25
avatar infograf768 infograf768 - close - 20 Jul 2014

Add a Comment

Login with GitHub to post a comment