You can also use things like function_exists() to conditionally call MediaWiki versions of things or native PHP stuff.
- Trevor On 8/26/10 3:58 PM, Platonides wrote: > Trevor Parscal wrote: >> * Software we've ported to PHP ourselves like our native-PHP CDB >> implementation or CSSJanus are buried in our code-base, and make >> use of a couple of trivial wf* global functions, making it >> somewhat inaccessible to third-party users. > We should probably provide stub a stub version of those functions, so > reusers don't have to declare a bunch of functions just because we call > wfProfileIn, wfGetIP and set a couple of hooks. > > Other problem would be our usage of wrappers like WebRequest. > > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
