- Code: Select all
Undefined index: result
See file C:\wamp\www\doophp\dooframework\logging\DooLog.php
Error on line 337 $msg .= $this->formatProfileXML($k,$p[2],$p[3], $p['result'], $p['memory']);
The problem arises when calling showProfiles() function before endDbProfile() is called. Now it returns a Notice when error_reporting is set to E_STRICT and returns nothing when it's not. Since only when endDbProfile() is called the time spent (result index) and the memory is written:
- Code: Select all
$this->_profiles[$token]['result'] = microtime(true) - $this->_profiles[$token][3];
$this->_profiles[$token]['memory'] = $this->memory_used() - $this->_profiles[$token]['startmem'];
Suggested fix would be to see if result and memory indexes aren't set - set them with previous code. That way the showProfiles() would return how much time and memory was spent until it was called. Any other ideas?
