Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
removed function_exists in Maildir (microtime exists, replace posix_g…
Browse files Browse the repository at this point in the history
…etpid by getmypid)
  • Loading branch information
stealth35 committed May 19, 2011
15 parents b016fa9 + d2a94d1 + 332c539 + cd9b45a + 64c40b6 + 3ecbc20 + 7524f9b + bbf0ef3 + 67b64ab + 7abc3aa + a09c912 + 187e6ab + 31d69ef + ebb8ff3 + e96f88b commit 904c90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/Writable/Maildir.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ public function renameFolder($oldName, $newName)
protected function _createUniqueId()
{
$id = '';
$id .= function_exists('microtime') ? microtime(true) : (time() . ' ' . rand(0, 100000));
$id .= '.' . (function_exists('posix_getpid') ? posix_getpid() : rand(50, 65535));
$id .= microtime(true);
$id .= '.' . getmypid();
$id .= '.' . php_uname('n');

return $id;
Expand Down

0 comments on commit 904c90f

Please sign in to comment.