Page MenuHomePhabricator

IPTCTest::testIPTCParseForcedUTFButInvalid() failing in vagrant
Closed, ResolvedPublic

Description

Only failing on php 5.5.9, hhvm passing just fine.

  1. IPTCTest::testIPTCParseForcedUTFButInvalid

Failed asserting that two arrays are equal.

  • Expected

+++ Actual
@@ @@
Array (

  • 0 => 'ø'

+ 0 => ''
)

Result from IPTC::parse() is pretty lacking:

array(1) {

'Keywords' =>
array(1) {
  [0] =>
  string(0) ""
}

}


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=73178
https://bugzilla.wikimedia.org/show_bug.cgi?id=37665

Details

Reference
bz67908

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:41 AM
bzimport set Reference to bz67908.
bzimport added a subscriber: Unknown Object (MLST).

Transient? Not seeing this now. Hmm....

How does this differ from bug 37665? Slightly different output here with php5:

  1. IPTCTest::testIPTCParseForcedUTFButInvalid

Failed asserting that two arrays are equal.

  • Expected

+++ Actual
@@ @@
Array (

  • 0 => 'ø'

+ 0 => ''
)

/srv/vagrant/mediawiki/tests/phpunit/includes/media/IPTCTest.php:50
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

I have this consistently with what in attachment 16052 minus Wikibase.

Doesn't seem to be caused by other extensions installed, thus removing from blocker: Bug 67216 - Have unit tests of all wmf deployed extensions pass when installed together

  • This bug has been marked as a duplicate of bug 37665 ***