https://bugzilla.wikimedia.org/show_bug.cgi?id=56606

       Web browser: ---
            Bug ID: 56606
           Summary: Autoloader wrongly spams wfDebug
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

When the MW autoloader comes across a class it does not know, it calls wfDebug.
This means that when using a PHP library that has its own autoloader, the log
gets dumped full of useless warnings. Seen this on Jenkins quite a few times
for a lot of the code used by the Wikidata related components. 

I just noticed a hack in the SMW autoloader to work around this deficiency:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/SemanticMediaWiki.php#L77

It is quite ridiculous this is needed however, and it is not a viable solution
for libraries that are independent from MediaWiki.

This is under API because a component needs to be selected while none are
appropriate. Another bug I guess.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to