Last modified: 2012-08-27 19:14:21 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.
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!
https://gerrit.wikimedia.org/r/#/c/21600/
(not quite FIXED yet since change has not yet been merged)
Merged. Thanks for the patch, Chris Keeline!