Skip to content

Commit

Permalink
Deprecate xPDO->getMicroTime()
Browse files Browse the repository at this point in the history
Was implemented to support PHP 4 emulation of the microtime() call with the PHP 5-only get_as_float parameter set to true. No longer needed.
  • Loading branch information
opengeek committed Jul 24, 2012
1 parent 9cdf852 commit d31fd7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions xpdo/changelog.txt
@@ -1,5 +1,6 @@
This file shows the changes in this release of xPDO.

- Deprecate xPDO->getMicroTime()
- [#8176] xPDO->updateCollection() fails to set NULL values

xPDO 2.2.5-pl (June 1, 2012)
Expand Down
4 changes: 2 additions & 2 deletions xpdo/xpdo.class.php
Expand Up @@ -2506,11 +2506,11 @@ public function setAttribute($attribute, $value) {
/**
* Convert current microtime() result into seconds.
*
* @deprecated Use microtime(true) directly; this was to emulate PHP 5 behavior in PHP 4.
* @return float
*/
public function getMicroTime() {
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
return microtime(true);
}

/**
Expand Down

0 comments on commit d31fd7e

Please sign in to comment.