apd_dump_persistent_resources

(PECL apd 0.2-0.4) Return all persistent resources as an array array apd_dump_persistent_resources ( void ) Return all persistent resources as an array. Returns: An array containing the current call stack. Examples: apd_dump_persistent_resources() example <?php print_r(apd_dump_persistent_resources()); ?>

apd_dump_regular_resources

(PECL apd 0.2-0.4) Return all current regular resources as an array array apd_dump_regular_resources ( void ) Return all current regular resources as an array. Returns: An array containing the current regular resources. Examples: apd_dump_regular_resources() example <?php print_r(apd_dump_regular_resources()); ?>

apd_echo

(PECL apd >= 0.2) Echo to the debugging socket bool apd_echo ( string $output ) Usually sent via the socket to request information about the running script. Parameters: output The debugged variable. Returns: Returns TRUE on success or FALSE on failure. Examples: apd_echo() example

apd_get_active_symbols

(PECL apd 0.2) Get an array of the current variables names in the local scope array apd_get_active_symbols ( void ) Returns the names of all the variables defined in the active scope, (not their values). Returns: A multidimensional array with all the variables. Examples: apd_get_active_symbols() example <?php apd_echo(

apd_set_pprof_trace

(PECL apd >= 0.2) Starts the session debugging string apd_set_pprof_trace ([ string $dump_directory = ini_get("apd.dumpdir") [, string $fragment = "pprof" ]] ) Starts debugging to pprof_{process_id} in the dump directory. Parameters: dump_directory The directory in which the profile dump file is written. If not set, the apd.dumpdir setting from the php.ini file is us

apd_set_session_trace_socket

(PECL apd >= 0.2) Starts the remote session debugging bool apd_set_session_trace_socket ( string $tcp_server, int $socket_type, int $port, int $debug_level ) Connects to the specified tcp_server (eg. tcplisten) and sends debugging data to the socket. Parameters: tcp_server IP or Unix Domain socket (like a file) of the TCP server. socket_type

apd_set_session_trace

(PECL apd 0.2-0.4) Starts the session debugging void apd_set_session_trace ( int $debug_level [, string $dump_directory = ini_get("apd.dumpdir") ] ) Starts debugging to apd_dump_{process_id} in the dump directory. Parameters: debug_level An integer which is formed by adding together the XXX_TRACE constants. It is not recommended to use MEMORY_TRACE. It is very slow and d

apd_set_session

(PECL apd 0.2-0.4) Changes or sets the current debugging level void apd_set_session ( int $debug_level ) This can be used to increase or decrease debugging in a different area of your application. Parameters: debug_level An integer which is formed by adding together the XXX_TRACE constants. It is not recommended to use MEMORY_TRACE. It is very slow and does not appear to

override_function

(PECL apd >= 0.2) Overrides built-in functions bool override_function ( string $function_name, string $function_args, string $function_code ) Overrides built-in functions by replacing them in the symbol table. Parameters: function_name The function to override. function_args The function arguments, as a comma separated string. Usua

rename_function

(PECL apd >= 0.2) Renames orig_name to new_name in the global function table bool rename_function ( string $original_name, string $new_name ) Renames a orig_name to new_name in the global function table. Useful for temporarily overriding built-in functions. Parameters: original_name The original function name. new_name The new name f