Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 9 months ago

#19157 closed enhancement (fixed)

Remove PHP4 compat from timer functions

Reported by: solarissmoke Owned by: nacin
Milestone: 3.4 Priority: normal
Severity: minor Version: 3.3
Component: Performance Keywords: has-patch 3.4-early
Focuses: Cc:


The timer_start/stop functions are using microtime() in PHP4 compat mode, without the get_as_float argument. We can make them all much simpler, see patch. Also fixes some of the inline docs.

Attachments (1)

19157.diff (2.6 KB) - added by solarissmoke 7 years ago.
Use microtime() with get_as_float

Download all attachments as: .zip

Change History (6)

#1 @solarissmoke
7 years ago

  • Keywords has-patch added

7 years ago

Use microtime() with get_as_float

#2 @nacin
6 years ago

  • Keywords 3.4-early added
  • Milestone changed from Awaiting Review to Future Release

#3 @nacin
6 years ago

  • Milestone changed from Future Release to 3.4

#4 @nacin
6 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19611]:

Ask for a float from microtime() for timer_start(), timer_stop(). Clarify docs. props solarissmoke, fixes #19157.

#5 @SergeyBiryukov
9 months ago

#16753 was marked as a duplicate.

Note: See TracTickets for help on using tickets.