I have installed apd to debug some php script. Using:
php5
Apache 2.0.54
 
Follow the instructions :
pear install apd
modify php.ini with correct directory to apd.so
and then restart Apache.
 
php -i return:
phpinfo()
PHP Version => 5.0.5
 
System => Linux backup-01 2.4.20-19.7 #1 Tue Jul 15 13:44:14 EDT 2003 i686
Build Date => Mar 27 2006 15:07:22
Configure Command =>  './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib-dir=/usr' '--with-openssl' '--with
-mysql' '--with-gd' '--with-pdflib=/usr/local' '--with-jpeg-dir=/usr' '--with-curl' '--with-curlwrappers' '--with-ncurses'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib/php.ini
PHP API => 20031224
PHP Extension => 20041030
Zend Extension => 220040412
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, tftp, telnet, dict, ldap, https, ftps, compress.zlib, ssh2.shell, ssh2.exec, s
sh2.tunnel, ssh2.scp, ssh2.sftp
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
 

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
    with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle
 

 _______________________________________________________________________
 
Configuration
 
PHP Core
 
Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 2039 => 2039
expose_php => On => On
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20041030/ => /usr/local/lib/php/extensions/no-debug-non-zts-20
041030/
file_uploads => On => On
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .:/usr/local/lib/php => .:/usr/local/lib/php
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 30
max_input_time => 60 => 60
open_basedir => no value => no value
output_buffering => 0 => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
register_argc_argv => On => On
register_globals => On => On
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off
 
APD
 
Advanced PHP Debugger (APD) => Enabled
APD Version => 0.9
 
ctype
 
ctype functions => enabled
 
curl
 
CURL support => enabled
CURL Information => libcurl/7.15.2 OpenSSL/0.9.6b zlib/1.1.4

dom
 
DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.6.23
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
 
gd
 
GD Support => enabled
GD Version => bundled (2.0.28 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled
 
iconv
 
iconv support => enabled
iconv implementation => glibc
iconv library version => 2.2.93
 
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
 
libxml
 
libXML support => active
libXML Version => 2.6.23
libXML streams => enabled
 
mysql
 
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 4.0.18
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /var/lib/mysql/mysql.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib -lmysqlclient
 
Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
 
ncurses
 
ncurses support => enabled
ncurses library version => 5.2
color support => yes
 
openssl
 
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.6b [engine] 9 Jul 2001
 
pcre
 
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 6.2 01-Aug-2005
 
pdf
 
PDF Support => enabled
PDFlib GmbH Version => 6.0.3
PECL Version => 2.0.5
Revision => $Revision: 1.145 $
 
posix
 
Revision => $Revision: 1.60.2.4 $
 
session
 
Session Support => enabled
Registered save handlers => files user sqlite
Registered serializer handlers => php php_binary
 
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 86400 => 86400
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => DIGITECHPHPSESSID => DIGITECHPHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0
 
SimpleXML
 
Simplexml support => enabled
Revision => $Revision: 1.139.2.4 $
Schema support => enabled
 
SPL

SPL support => enabled
Interfaces => RecursiveIterator, SeekableIterator
Classes => ArrayIterator, ArrayObject, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIter
ator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator
 
SQLite
 
SQLite support => enabled
PECL Module version => 2.0-dev $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $
SQLite Library => 2.8.14
SQLite Encoding => iso8859
 
Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0
 
ssh2
 
libssh2 version => 0.12
banner => SSH-2.0-libssh2_0.12
remote forwarding => enabled
hostbased auth => enabled
polling support => enabled
publickey subsystem => enabled
 
standard
 
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i
 
Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.83 => 90.83
date.sunset_zenith => 90.83 => 90.83
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=,fieldset= => a=href,area=href,frame=src,input=src,form=,fields
et=
user_agent => no value => no value
 
tokenizer
 
Tokenizer Support => enabled
 
xml
 
XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.23
 
zlib
 
ZLib Support => enabled
Compiled Version => 1.1.4
Linked Version => 1.1.4
 
Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
 
Additional Modules
 
Module Name
 
_________________________________________________________________________________________
 
I don't think the rest could help.
 
Everything is fine and i decide to start by put apd_set_pprof_trace(); on the first line of my script
and then add a apd_callstack().
But when i do php -e -f myscript.php
i got an Fatal error: Call to undefined function apd_callstack() in ...
Whatever the apd function is i've got the same !
 
Someone got an idea ?
 
Michael Plourde
Digicom technologies

Reply via email to