[wp-trac] [WordPress Trac] #4166: Fix mktime() inside mysql2date() in wp-includes/functions.php

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 18 23:10:17 GMT 2007


#4166: Fix mktime() inside mysql2date() in wp-includes/functions.php
-------------------------+--------------------------------------------------
 Reporter:  josephscott  |       Owner:  anonymous        
     Type:  defect       |      Status:  new              
 Priority:  low          |   Milestone:  2.4              
Component:  General      |     Version:                   
 Severity:  minor        |    Keywords:  mysql2date mktime
-------------------------+--------------------------------------------------
 All of the parameters to mktime() are supposed to be of type int.  The
 problem is that substr() is being used to provide each parameter and it
 returns a string, not an int.  This isn't fatal because PHP will do the
 conversion for you, but it does through a warning.  The simple way to deal
 with this is to cast all of the substr() calls to int.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4166>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list