Memory and execution time limits

Class Methods

The following methods can be invoked on instances of this class.

increaseMemoryLimit(int iLimitMB)

Increases the amount of memory the request can consume to $iLimitMB.
The limit will not be decreased if it is currently higher than $iLimitMB.

increaseTimeLimit(int iLimitSeconds)

Increases the amount of time the request can execute for to $iLimitSeconds.
The limit will not be decreased if it is currently higher than $iLimitSeconds.

getMemoryLimitInBytes()

Retrieves currently set memory limit in bytes

getScriptRunTimeInSeconds()

Retrieves current script run time in seconds

monitorTimeLimit()

Tick function to monitor potential time limit errors

monitorMemoryLimit()

Tick function to monitor potential memory limit exhaustion errors

monitorHandleError(string strTitle)

Handler for tick function errors

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class