[wp-trac] Re: [WordPress Trac] #10186: Add global $iis_version

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 17 09:12:39 GMT 2009

#10186: Add global $iis_version
 Reporter:  peaceablewhale  |       Owner:                  
     Type:  enhancement     |      Status:  new             
 Priority:  normal          |   Milestone:  2.9             
Component:  General         |     Version:  2.8             
 Severity:  normal          |    Keywords:  has-patch tested

Comment(by dd32):

 > What do you think?

 I think its possible. However, a point that we dont need to worry about.

 $version = 10.4;

 var_dump( $version == true );
 = true

 PHP will evaluate anything non-false/null/zero to be true in the above

 (Of course, $version === true would be false, But thats going to be rarely
 used, a triple check along with a true.. most people are just going to do

Ticket URL: <http://core.trac.wordpress.org/ticket/10186#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list