Last modified: 2012-08-27 19:14:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41346, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39346 - Fix ZipDirectoryReader under Hiphop
Fix ZipDirectoryReader under Hiphop
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-14 18:45 UTC by Chris Keeline
Modified: 2012-08-27 19:14 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch with proposed change (720 bytes, patch)
2012-08-14 18:45 UTC, Chris Keeline
Details

Description Chris Keeline 2012-08-14 18:45:57 UTC
Created attachment 10965 [details]
Patch with proposed change

ZipDirectoryReaderError subclasses Exception, and sets the code property as a string. Php's documentation says this should be an int, so this is already a little bit weird.

Under Hiphop, calling the parent constructor without the second parameter will set the code property to 0, because the parameter defaults to 0. This leads to uploads breaking, because calls to getErrorCode return 0 rather than the code that was passed in.

The change renames the code property to errorCode, so it can't be confused with exception's code property, which should be an int.
Comment 1 Sumana Harihareswara 2012-08-22 20:37:52 UTC
Chris, thanks for the patch!  I hope to get a reviewer to look at it soon.  That'll go faster if you put it in our source control system directly:  https://www.mediawiki.org/wiki/Git/Tutorial

Thanks!
Comment 2 Jeroen De Dauw 2012-08-27 15:57:23 UTC
https://gerrit.wikimedia.org/r/#/c/21600/
Comment 3 Sumana Harihareswara 2012-08-27 17:43:25 UTC
(not quite FIXED yet since change has not yet been merged)
Comment 4 Sumana Harihareswara 2012-08-27 19:14:21 UTC
Merged. Thanks for the patch, Chris Keeline!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links