https://bugzilla.wikimedia.org/show_bug.cgi?id=31901
Brad Jorsch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #19 from Brad Jorsch <[email protected]> --- (In reply to Krinkle from comment #18) > But I can't imagine explicitly checking and relying on the the absence of > the structure. Roan/Bryan/Max: Please provide a little more details on that > use case, this doesn't sound realistic to me and not a breaking change. In some sort of PHP-ish pseudocode: $result = $api->query( array( 'generator' => ... ) ); if ( !isset( $result['query']['pages'] ) ) { // Generator returned no pages, handle that } else { // Do something with the pages } Yeah, that's a bit dumb. But people do dumb stuff sometimes, particularly when encouraged by the API representing booleans as present/absent rather than as booleans. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
