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
* 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
* traceArguments() must be called here since this method calls other methods
* that may be traced, so that traced calls are displayed in the right order
public static function square($x)
$x2 = self ::prod ($x, $x);
* tracing the arguments and the returned parameter
* another variable is traced along with the returned parameter
* tracing the arguments, some variables and the returned parameter
Documentation generated on Mon, 11 Mar 2019 15:09:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|