? ? Pending

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
12 Sep 2016

Summary of Changes

This PR does two things:

  • extend tests in order to display the error in php Travis tests.
  • fix the error generated by array_unique function

Testing Instructions

How to reproduce notices?

$html = new JDocumentHtml();
$html->addHeadLink('http://www.example.com', 'Start');
$html->addHeadLink('http://www.example.com/end', 'End');
$html->mergeHeadData($html->getHeadData());

generates several:

PHP Notice:  Array to string conversion in /home/[...]/libraries/joomla/document/html.php on line 222

And $html->_links contain only first link.

After patch this notice disappears and links contain all links.

Documentation Changes Required

No

avatar csthomas csthomas - open - 12 Sep 2016
avatar csthomas csthomas - change - 12 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2016
Category Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2016
Labels Added: ?
avatar wilsonge
wilsonge - comment - 12 Sep 2016

Why do we have an array here. Is it expected or is it a bug in the test data?

avatar csthomas
csthomas - comment - 12 Sep 2016

As you can see it is expected.

avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2016
Category Libraries Libraries Unit Tests
avatar csthomas csthomas - change - 13 Sep 2016
Title
[tests] Fix hhvm test error in document html
Fix error in mergeHeadData method for html document
avatar csthomas csthomas - change - 13 Sep 2016
The description was changed
avatar csthomas csthomas - change - 13 Sep 2016
The description was changed
avatar csthomas csthomas - change - 21 Sep 2016
The description was changed
avatar csthomas
csthomas - comment - 22 Sep 2016

This is a simple fix + extend test. if no one is interested?

avatar csthomas csthomas - change - 28 Sep 2016
The description was changed
avatar dgt41 dgt41 - test_item - 28 Sep 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 28 Sep 2016

I have tested this item successfully on


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

avatar zero-24 zero-24 - test_item - 29 Sep 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 29 Sep 2016

I have tested this item successfully on 03bde81


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

avatar zero-24 zero-24 - change - 29 Sep 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 29 Sep 2016

RTC. Thanks!


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

avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2016
Labels Added: ?
avatar photodude
photodude - comment - 14 Oct 2016

Awesome, glad to see someone found a solution without needing to wait for HHVM to fix the special casing for <= 1 elements with array_merge()

Note: we would have had the same error in php if the top level of the nested array had just one more element
https://3v4l.org/vHUAv

avatar brianteeman
brianteeman - comment - 17 Oct 2016

Milestone changed to 3.7 as it is now not planned to have a 3.6.4 release

avatar zero-24 zero-24 - change - 17 Oct 2016
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - change - 17 Oct 2016
Labels Added: ?
Removed: ?
avatar rdeutz rdeutz - change - 18 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-18 17:32:45
Closed_By rdeutz
avatar rdeutz rdeutz - close - 18 Oct 2016
avatar rdeutz rdeutz - merge - 18 Oct 2016
avatar brianteeman brianteeman - close - 18 Oct 2016
avatar brianteeman brianteeman - change - 18 Oct 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment