Page MenuHomePhabricator

The stream wrapper should test whether the resource 'uploadsource' is already registered.
Closed, ResolvedPublic

Description

Author: alexander.lehmann

Description:
If you try to create two WikiImporter you get warning "stream_wrapper_register (): Protocol upload source :/ / is already defined". This is for example bad for testing classes that use the WikiImporter.


Version: 1.24rc
Severity: normal

Details

Reference
bz65530

Event Timeline

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

alexander.lehmann wrote:

I have written a small patch. You can look at it here:
https://gerrit.wikimedia.org/r/#/c/134344/1

Thanks a lot for your patch! I've fixed it to say "Bug: 65530" as per [[mw:Gerrit/Commit message guidelines]] so there will be automatic notifications here in the future.

Patch was merged some time ago.