tstarling added a comment.

  For debug output, is_resource() is often appropriate, e.g.
  
                if ( is_resource( $item ) ) {
                        return '[Resource ' . get_resource_type( $item ) . ']';
                }
  
  Also, for input handling where the input may be either a scalar or a stream, 
there is currently no alternative to is_resource(), e.g.
  
                        if ( is_resource( $req['body'] ) ) {
                                curl_setopt( $ch, CURLOPT_INFILE, $req['body'] 
);
  
  So that is also a correct usage of is_resource(). My core patch will ignore 
such usages.

TASK DETAIL
  https://phabricator.wikimedia.org/T260735

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: tstarling
Cc: tstarling, brion, Reedy, alex-mashin, Ricordisamoa, ssastry, TheDJ, 
Aklapper, MaxSem, G1964j, Zekwn, the0001, Invadibot, Zabe, Selby, AndreCstr, 
maantietaja, XeroS_SkalibuR, Akuckartz, DannyS712, Nandana, Mirahamira, 
lucamauri, Lahi, Gq86, Jontheil, Markhalsey, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
freephile, Wikidata-bugs, aude, Nikerabbit, Jdforrester-WMF, Addshore, Mbch331, 
Krenair
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to