History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: CHD-160
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Dan Hildebrandt [WGM]
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Cerberus Helpdesk

memory_get_peak_usage() funciton requires PHP 5.2.0, docs/installer only require 5.1.2.

Created: 10/Sep/07 05:16 PM   Updated: 13/Dec/07 09:51 PM
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description   
Obviously an easy fix here, but created the bug because I don't know whether Jeff wants to keep the memory tracking in permanently, or if that was just meant as more of a dev/debug thing.

Solutions:
A) update documentation and environment checker, OR
B) remove calls to memory_get_peak_usage().

Link:
http://forum.cerberusweb.com/comments.php?DiscussionID=8867

 All   Comments   Work Log   Change History      Sort Order:
Comment by Dan Hildebrandt [WGM] [11/Sep/07 12:10 PM]
Workaround:
    Edit cerb4/libs/devblocks/Devblocks.class.php, line 713 and change
        self::$start_peak_memory = memory_get_peak_usage();
        to
        self::$start_peak_memory = 0;
    Edit cerb4/plugins/cerberusweb.core/classes.php, line 213 and change
        $tpl->assign('render_peak_memory', memory_get_peak_usage() - DevblocksPlatform::getStartPeakMemory());
        to
        $tpl->assign('render_peak_memory', 0);

Comment by Jeff Standen [WGM] [16/Sep/07 12:52 AM]
This should be fixed in SVN.

Comment by Joe Geck [WGM] [13/Dec/07 09:51 PM]
Old issue no new complaints, closing...