/** * Stop profiler */ public function stop() { $this->_endTime = microtime(true); $this->tick(); if (Sys::isFunc('unregister_tick_function')) { unregister_tick_function(array($this, 'tick')); } }
public function testIsFunc() { isFalse(Sys::isFunc('qwerty')); isTrue(Sys::isFunc('trim')); $func = function () { }; isTrue(Sys::isFunc($func)); }
/** * @return array */ protected function _getExif() { $result = array(); if ($this->_filename && Sys::isFunc('exif_read_data') && Helper::isJpeg($this->_mime)) { $result = exif_read_data($this->_filename); } return $result; }