Source for file package.php
Documentation is available at package.php
* this is an example of a package
* calls to the tracer are added wherever there is a need to trace a function call
* these calls can be left in the package, they are executed only if the tracer is loaded
* tracing the arguments and the returned parameter
* processing all return returned variables (empty means all)
* note that traceReturn() calls traceArguments() by default which is fine here
* since this method does call other methods to trace
public static function prod($x, $y)
// class_exists('PHP_FunctionCallTracer', false) and
// PHP_FunctionCallTracer::traceArguments();
* tracing the arguments and the returned parameter
* processing all arguments (true means all)
* traceArguments() and/or processVariables() must be called here
* since this method calls other methods
* that may be traced, so that traced calls are displayed in the right order
* note that processVariables() calls traceArguments() by default
public static function square($x)
// PHP_FunctionCallTracer::traceArguments() and
$x2 = self ::prod ($x, $x);
* tracing the arguments and the returned parameter
* another variable is traced along with the returned parameter
* processing the first and the second returned parameters
* tracing the arguments, some variables and the returned parameter
* processing the second traced variable only
Documentation generated on Mon, 11 Mar 2019 15:09:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|