[wp-trac] [WordPress Trac] #14168: Redundant line in WP_Http

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 2 02:32:25 UTC 2010


#14168: Redundant line in WP_Http
--------------------------+-------------------------------------------------
 Reporter:  rmccue        |       Owner:  rmccue         
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.0            
 Severity:  trivial       |    Keywords:  has-patch      
--------------------------+-------------------------------------------------

Comment(by nacin):

 Replying to [comment:3 Viper007Bond]:
 > Not to mention it's doing `==` and not `===` so the capitalization
 doesn't matter. :)
 {{{
 var_dump( 'test' == 'Test' );
 var_dump( 'test' === 'Test' );
 bool(false) bool(false)
 }}}

 Equals versus identical has to do with type. Capitalization changes the
 value itself.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14168#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list