Opened 19 years ago
Closed 19 years ago
#4166 closed defect (bug) (fixed)
Fix mktime() inside mysql2date() in wp-includes/functions.php
| Reported by: | josephscott | Owned by: | rob1n |
|---|---|---|---|
| Priority: | low | Milestone: | 2.2 |
| Component: | General | Version: | 2.2 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good.