Created
November 3, 2012 07:36
-
-
Save dmj/4006439 to your computer and use it in GitHub Desktop.
Proof of concept: XDebug trace parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((return t) | |
(body ((call (depth 1) | |
(time "0.0008") | |
(memory "772760") | |
(function "main") | |
(parameter-list "") | |
(location "/var/www/workshop/wdb_copy/wdb.php:0") | |
(return "1") | |
(body ((call (depth 2) | |
(time "0.0008") | |
(memory "773072") | |
(function "ini_set") | |
(parameter-list "'session.use_trans_sid',1") | |
(location "/var/www/workshop/wdb_copy/wdb.php:2") | |
(return "'0'") | |
(body nil)) | |
(assignment "$signatur = 'edoc/ed000145' /var/www/workshop/wdb_copy/wdb.php:4") | |
(call (depth 2) | |
(time "0.0009") | |
(memory "773672") | |
(function "str_replace") | |
(parameter-list "'/','_','edoc/ed000145'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:5") | |
(return "'edoc_ed000145'") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0010") | |
(memory "773544") | |
(function "session_name") | |
(parameter-list "'edoc_ed000145'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:5") | |
(return "'PHPSESSID'") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0010") | |
(memory "773600") | |
(function "session_start") | |
(parameter-list "") | |
(location "/var/www/workshop/wdb_copy/wdb.php:6") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0012") | |
(memory "784648") | |
(function "error_reporting") | |
(parameter-list "1") | |
(location "/var/www/workshop/wdb_copy/wdb.php:8") | |
(return "22527") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0012") | |
(memory "784984") | |
(function "ini_set") | |
(parameter-list "'display_errors',1") | |
(location "/var/www/workshop/wdb_copy/wdb.php:9") | |
(return "''") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0018") | |
(memory "912168") | |
(function "include") | |
(parameter-list "/var/www/workshop/wdb_copy/parameter.inc.php") | |
(location "/var/www/workshop/wdb_copy/wdb.php:13") | |
(return "1") | |
(body ((assignment "$signatur = 'edoc/ed000145' /var/www/workshop/wdb_copy/parameter.inc.php:6") | |
(assignment "_SESSION['signatur'] = 'edoc/ed000145' /var/www/workshop/wdb_copy/parameter.inc.php:18") | |
(assignment "$top = '' /var/www/workshop/wdb_copy/parameter.inc.php:24") | |
(assignment "$top2 = '' /var/www/workshop/wdb_copy/parameter.inc.php:25") | |
(assignment "$xml = '' /var/www/workshop/wdb_copy/parameter.inc.php:26") | |
(assignment "$xsl = '' /var/www/workshop/wdb_copy/parameter.inc.php:27") | |
(assignment "$imgtyp = '' /var/www/workshop/wdb_copy/parameter.inc.php:28") | |
(assignment "$imgtype = '' /var/www/workshop/wdb_copy/parameter.inc.php:29") | |
(assignment "$distype = '' /var/www/workshop/wdb_copy/parameter.inc.php:30") | |
(assignment "$image = '' /var/www/workshop/wdb_copy/parameter.inc.php:31") | |
(assignment "$spr = '' /var/www/workshop/wdb_copy/parameter.inc.php:32") | |
(assignment "$standalone = '' /var/www/workshop/wdb_copy/parameter.inc.php:34") | |
(assignment "$logo_url = '' /var/www/workshop/wdb_copy/parameter.inc.php:35") | |
(assignment "$cut = '' /var/www/workshop/wdb_copy/parameter.inc.php:36") | |
(assignment "$end = '' /var/www/workshop/wdb_copy/parameter.inc.php:41") | |
(assignment "$ps = '/' /var/www/workshop/wdb_copy/parameter.inc.php:47") | |
(call (depth 3) | |
(time "0.0020") | |
(memory "915968") | |
(function "realpath") | |
(parameter-list "'/var/www/workshop/wdb_copy'") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:49") | |
(return "'/var/www/workshop/wdb_copy'") | |
(body nil)) | |
(assignment "$dlCopyPath = '/var/www/workshop/wdb_copy/' /var/www/workshop/wdb_copy/parameter.inc.php:49") | |
(call (depth 3) | |
(time "0.0020") | |
(memory "916240") | |
(function "strrpos") | |
(parameter-list "'edoc/ed000145','/'") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:54") | |
(return "4") | |
(body nil)) | |
(assignment "$pos = 4 /var/www/workshop/wdb_copy/parameter.inc.php:54") | |
(call (depth 3) | |
(time "0.0021") | |
(memory "916392") | |
(function "substr") | |
(parameter-list "'edoc/ed000145',5") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:55") | |
(return "'ed000145'") | |
(body nil)) | |
(assignment "$sigbase = 'ed000145' /var/www/workshop/wdb_copy/parameter.inc.php:55") | |
(call (depth 3) | |
(time "0.0021") | |
(memory "916664") | |
(function "substr") | |
(parameter-list "'edoc/ed000145',0,4") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:56") | |
(return "'edoc'") | |
(body nil)) | |
(assignment "$materialart = 'edoc' /var/www/workshop/wdb_copy/parameter.inc.php:56") | |
(assignment "$relPath = 'edoc/ed000145/' /var/www/workshop/wdb_copy/parameter.inc.php:59") | |
(assignment "$absPath = '/var/www/workshop/wdb_copy/edoc/ed000145/' /var/www/workshop/wdb_copy/parameter.inc.php:66") | |
(assignment "$absPathMin = '/var/www/workshop/wdb_copy/edoc/ed000145//min/' /var/www/workshop/wdb_copy/parameter.inc.php:67") | |
(assignment "$absPathMax = '/var/www/workshop/wdb_copy/edoc/ed000145//max/' /var/www/workshop/wdb_copy/parameter.inc.php:68") | |
(assignment "$absPathThumbs = '/var/www/workshop/wdb_copy/edoc/ed000145//thumbs/' /var/www/workshop/wdb_copy/parameter.inc.php:69") | |
(assignment "_SESSION['ps'] = '/' /var/www/workshop/wdb_copy/parameter.inc.php:72") | |
(assignment "_SESSION['relPath'] = 'edoc/ed000145/' /var/www/workshop/wdb_copy/parameter.inc.php:73") | |
(assignment "_SESSION['dlCopyPath'] = '/var/www/workshop/wdb_copy/' /var/www/workshop/wdb_copy/parameter.inc.php:74") | |
(assignment "_SESSION['absPath'] = '/var/www/workshop/wdb_copy/edoc/ed000145/' /var/www/workshop/wdb_copy/parameter.inc.php:75") | |
(assignment "_SESSION['absPathMin'] = '/var/www/workshop/wdb_copy/edoc/ed000145//min/' /var/www/workshop/wdb_copy/parameter.inc.php:76") | |
(assignment "_SESSION['absPathMax'] = '/var/www/workshop/wdb_copy/edoc/ed000145//max/' /var/www/workshop/wdb_copy/parameter.inc.php:77") | |
(assignment "_SESSION['absPathThumbs'] = '/var/www/workshop/wdb_copy/edoc/ed000145//thumbs/' /var/www/workshop/wdb_copy/parameter.inc.php:78") | |
(assignment "$opac = 'http://opac.lbs-braunschweig.gbv.de/DB=2/LNG=DU/CMD?ACT=SRCHA&IKT=1016&SRT=YOP&TRM=url+' /var/www/workshop/wdb_copy/parameter.inc.php:83") | |
(assignment "$wdb_opac = 'http://dbs.hab.de/katalog/regsearch.php?opac=wdb&m1=all&trunc1=?&offset=0&lang=&range=30&st1=url+' /var/www/workshop/wdb_copy/parameter.inc.php:87") | |
(assignment "$opacxml = 'http://opac.lbs-braunschweig.gbv.de/DB=2/XML=1.0/CMD?ACT=SRCHA&IKT=1016&SRT=YOP&TRM=url+' /var/www/workshop/wdb_copy/parameter.inc.php:90") | |
(assignment "$TGN = 'http://www.getty.edu/vow/TGNFullDisplay?find=egypt&place=&nation=&prev_page=1&english=Y&subjectid=' /var/www/workshop/wdb_copy/parameter.inc.php:94") | |
(assignment "$PND = 'http://nochnix.hab.de?nr=' /var/www/workshop/wdb_copy/parameter.inc.php:96") | |
(assignment "$inkrement = 25 /var/www/workshop/wdb_copy/parameter.inc.php:99") | |
(call (depth 3) | |
(time "0.0023") | |
(memory "919272") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:115") | |
(return "TRUE") | |
(body nil)) | |
(assignment "$distype = 'start' /var/www/workshop/wdb_copy/parameter.inc.php:178") | |
(assignment "$pointer = 0 /var/www/workshop/wdb_copy/parameter.inc.php:209") | |
(call (depth 3) | |
(time "0.0023") | |
(memory "919344") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:227") | |
(return "TRUE") | |
(body nil)) | |
(assignment "$imgtyp = '0' /var/www/workshop/wdb_copy/parameter.inc.php:307") | |
(assignment "$spr = 'en' /var/www/workshop/wdb_copy/parameter.inc.php:335") | |
(call (depth 3) | |
(time "0.0026") | |
(memory "957456") | |
(function "include") | |
(parameter-list "/var/www/workshop/wdb_copy/lokalisation.inc.php") | |
(location "/var/www/workshop/wdb_copy/parameter.inc.php:340") | |
(return "1") | |
(body nil))))) | |
(call (depth 2) | |
(time "0.0030") | |
(memory "910568") | |
(function "include") | |
(parameter-list "/var/www/workshop/wdb_copy/mets_config.inc.php") | |
(location "/var/www/workshop/wdb_copy/wdb.php:15") | |
(return "1") | |
(body ((call (depth 3) | |
(time "0.0030") | |
(memory "910832") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:5") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0030") | |
(memory "911744") | |
(method "DOMDocument" | |
"__construct" | |
nil) | |
(parameter-list "'1.0'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:15") | |
(return "NULL") | |
(body nil)) | |
(assignment "$mets = class DOMDocument { } /var/www/workshop/wdb_copy/mets_config.inc.php:15") | |
(assignment "$mets->resolveExternals = TRUE /var/www/workshop/wdb_copy/mets_config.inc.php:16") | |
(assignment "$mets->substituteEntities = TRUE /var/www/workshop/wdb_copy/mets_config.inc.php:17") | |
(call (depth 3) | |
(time "0.0031") | |
(memory "912144") | |
(method "DOMDocument" "load" nil) | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:18") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0038") | |
(memory "912856") | |
(method "DOMXPath" "__construct" nil) | |
(parameter-list "classDOMDocument{}") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:19") | |
(return "NULL") | |
(body nil)) | |
(assignment "$mets_xpath = class DOMXPath { } /var/www/workshop/wdb_copy/mets_config.inc.php:19") | |
(call (depth 3) | |
(time "0.0039") | |
(memory "913296") | |
(method "DOMXPath" | |
"registerNamespace" | |
nil) | |
(parameter-list "'mets','http://www.loc.gov/METS/'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:22") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0039") | |
(memory "913296") | |
(method "DOMXPath" | |
"registerNamespace" | |
nil) | |
(parameter-list "'wdb','http://diglib.hab.de/wdb/'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:23") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0039") | |
(memory "913296") | |
(method "DOMXPath" | |
"registerNamespace" | |
nil) | |
(parameter-list "'xlink','http://www.w3.org/1999/xlink'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:24") | |
(return "TRUE") | |
(body nil)) | |
(assignment "$query_params = '/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:param' /var/www/workshop/wdb_copy/mets_config.inc.php:26") | |
(call (depth 3) | |
(time "0.0039") | |
(memory "913336") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:param'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:27") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$params = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:27") | |
(assignment "$param = class DOMElement { } /var/www/workshop/wdb_copy/mets_config.inc.php:29") | |
(call (depth 3) | |
(time "0.0040") | |
(memory "916416") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:30") | |
(return "'start'") | |
(body nil)) | |
(assignment "$param_distype[] = 'start' /var/www/workshop/wdb_copy/mets_config.inc.php:30") | |
(call (depth 3) | |
(time "0.0041") | |
(memory "917120") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:31") | |
(return "'start'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0041") | |
(memory "917120") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:35") | |
(return "'start'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0041") | |
(memory "917120") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:38") | |
(return "'start'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0041") | |
(memory "917128") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'firstpage_xml'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:39") | |
(return "'start.xml'") | |
(body nil)) | |
(assignment "$param_firstpage_xml = 'start.xml' /var/www/workshop/wdb_copy/mets_config.inc.php:39") | |
(call (depth 3) | |
(time "0.0042") | |
(memory "917416") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'firstpage_xsl'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:40") | |
(return "'start.xsl'") | |
(body nil)) | |
(assignment "$param_firstpage_xsl = 'start.xsl' /var/www/workshop/wdb_copy/mets_config.inc.php:40") | |
(assignment "$param = class DOMElement { } /var/www/workshop/wdb_copy/mets_config.inc.php:29") | |
(call (depth 3) | |
(time "0.0042") | |
(memory "917736") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:30") | |
(return "'toc'") | |
(body nil)) | |
(assignment "$param_distype[] = 'toc' /var/www/workshop/wdb_copy/mets_config.inc.php:30") | |
(call (depth 3) | |
(time "0.0042") | |
(memory "917952") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:31") | |
(return "'toc'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0042") | |
(memory "917952") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:35") | |
(return "'toc'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0043") | |
(memory "917952") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'distype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:38") | |
(return "'toc'") | |
(body nil)) | |
(assignment "$query_logos = '/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:logo' /var/www/workshop/wdb_copy/mets_config.inc.php:47") | |
(call (depth 3) | |
(time "0.0043") | |
(memory "917992") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:logo'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:48") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$logos = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:48") | |
(assignment "$logo = array () /var/www/workshop/wdb_copy/mets_config.inc.php:50") | |
(assignment "$query_parallelView = '/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:parallelView' /var/www/workshop/wdb_copy/mets_config.inc.php:57") | |
(call (depth 3) | |
(time "0.0043") | |
(memory "919752") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:amdSec/mets:techMD/mets:mdWrap/mets:xmlData/wdb:parameter/wdb:parallelView'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:58") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$parallelViews = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:58") | |
(assignment "$parallelView = class DOMElement { } /var/www/workshop/wdb_copy/mets_config.inc.php:59") | |
(call (depth 3) | |
(time "0.0044") | |
(memory "921768") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:61") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0044") | |
(memory "921920") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'f1'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:61") | |
(return "'50'") | |
(body nil)) | |
(assignment "$pv[???]['f1'] = '50' /var/www/workshop/wdb_copy/mets_config.inc.php:61") | |
(call (depth 3) | |
(time "0.0044") | |
(memory "922928") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:62") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0045") | |
(memory "923080") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'f2'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:62") | |
(return "'50'") | |
(body nil)) | |
(assignment "$pv[???]['f2'] = '50' /var/www/workshop/wdb_copy/mets_config.inc.php:62") | |
(call (depth 3) | |
(time "0.0045") | |
(memory "923192") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:63") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0045") | |
(memory "923488") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'synctype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:63") | |
(return "'pb'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0045") | |
(memory "923400") | |
(function "explode") | |
(parameter-list "'','pb'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:63") | |
(return "array (0 => 'pb')") | |
(body nil)) | |
(assignment "$pv[???]['synctype'] = array (0 => 'pb') /var/www/workshop/wdb_copy/mets_config.inc.php:63") | |
(call (depth 3) | |
(time "0.0046") | |
(memory "923888") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:66") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(assignment "$query_xml = '/mets:mets/mets:fileSec/mets:fileGrp/mets:file[@ID = /mets:mets/mets:structMap/mets:div/mets:div[@TYPE =\\'parallel_views\\']/mets:div[@ID =\\'pv_transcript-facs\\']/mets:fptr/mets:par/mets:area[1]/@FILEID]/mets:FLocat/@xlink:href' /var/www/workshop/wdb_copy/mets_config.inc.php:66") | |
(call (depth 3) | |
(time "0.0046") | |
(memory "924224") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:fileSec/mets:fileGrp/mets:file[@ID=/mets:mets/mets:structMap/mets:div/mets:div[@TYPE=\\'parallel_views\\']/mets:div[@ID=\\'pv_transcript-facs\\']/mets:fptr/mets:par/mets:area[1]/@FILEID]/mets:FLocat/@xlink:href'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:68") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$pv_xml1 = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:68") | |
(call (depth 3) | |
(time "0.0048") | |
(memory "925328") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:69") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0048") | |
(memory "925416") | |
(method "DOMNodeList" "item" nil) | |
(parameter-list "0") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:69") | |
(return "NULL") | |
(body nil)) | |
(assignment "$pv[???]['xml1'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:69") | |
(call (depth 3) | |
(time "0.0049") | |
(memory "925456") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:70") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(assignment "$query_xml = '/mets:mets/mets:fileSec/mets:fileGrp/mets:file[@ID = /mets:mets/mets:structMap/mets:div/mets:div[@TYPE =\\'parallel_views\\']/mets:div[@ID =\\'pv_transcript-facs\\']/mets:fptr/mets:par/mets:area[2]/@FILEID]/mets:FLocat/@xlink:href' /var/www/workshop/wdb_copy/mets_config.inc.php:70") | |
(call (depth 3) | |
(time "0.0049") | |
(memory "925304") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:fileSec/mets:fileGrp/mets:file[@ID=/mets:mets/mets:structMap/mets:div/mets:div[@TYPE=\\'parallel_views\\']/mets:div[@ID=\\'pv_transcript-facs\\']/mets:fptr/mets:par/mets:area[2]/@FILEID]/mets:FLocat/@xlink:href'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:71") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$pv_xml2 = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:71") | |
(call (depth 3) | |
(time "0.0051") | |
(memory "926408") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:72") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0051") | |
(memory "926496") | |
(method "DOMNodeList" "item" nil) | |
(parameter-list "0") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:72") | |
(return "NULL") | |
(body nil)) | |
(assignment "$pv[???]['xml2'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:72") | |
(call (depth 3) | |
(time "0.0052") | |
(memory "926536") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:76") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(assignment "$query_xsl = '/mets:mets/mets:behaviorSec/mets:behavior[@STRUCTID = \\'pv_transcript-facs\\']/mets:mechanism/@xlink:href' /var/www/workshop/wdb_copy/mets_config.inc.php:76") | |
(call (depth 3) | |
(time "0.0052") | |
(memory "926752") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:behaviorSec/mets:behavior[@STRUCTID=\\'pv_transcript-facs\\']/mets:mechanism/@xlink:href'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:77") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$pv_xsl1 = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:77") | |
(call (depth 3) | |
(time "0.0052") | |
(memory "927856") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:78") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0053") | |
(memory "927944") | |
(method "DOMNodeList" "item" nil) | |
(parameter-list "0") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:78") | |
(return "NULL") | |
(body nil)) | |
(assignment "$pv[???]['xsl1'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:78") | |
(call (depth 3) | |
(time "0.0053") | |
(memory "927984") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:79") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(assignment "$query_xsl = '/mets:mets/mets:behaviorSec/mets:behavior[@STRUCTID = \\'pv_transcript-facs\\']/mets:mechanism/@xlink:href' /var/www/workshop/wdb_copy/mets_config.inc.php:79") | |
(call (depth 3) | |
(time "0.0053") | |
(memory "927832") | |
(method "DOMXPath" "query" nil) | |
(parameter-list "'/mets:mets/mets:behaviorSec/mets:behavior[@STRUCTID=\\'pv_transcript-facs\\']/mets:mechanism/@xlink:href'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:80") | |
(return "class DOMNodeList { }") | |
(body nil)) | |
(assignment "$pv_xsl2 = class DOMNodeList { } /var/www/workshop/wdb_copy/mets_config.inc.php:80") | |
(call (depth 3) | |
(time "0.0054") | |
(memory "928944") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'pvID'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:81") | |
(return "'pv_transcript-facs'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0054") | |
(memory "929032") | |
(method "DOMNodeList" "item" nil) | |
(parameter-list "0") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:81") | |
(return "NULL") | |
(body nil)) | |
(assignment "$pv[???]['xsl2'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:81") | |
(call (depth 3) | |
(time "0.0054") | |
(memory "929344") | |
(method "DOMElement" | |
"getAttribute" | |
nil) | |
(parameter-list "'synctype'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:85") | |
(return "'pb'") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0054") | |
(memory "929256") | |
(function "explode") | |
(parameter-list "'','pb'") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:85") | |
(return "array (0 => 'pb')") | |
(body nil)) | |
(call (depth 3) | |
(time "0.0055") | |
(memory "929552") | |
(function "in_array") | |
(parameter-list "'joins',array(0=>'pb')") | |
(location "/var/www/workshop/wdb_copy/mets_config.inc.php:85") | |
(return "FALSE") | |
(body nil)) | |
(assignment "_SESSION['firstpage_xml'] = 'start.xml' /var/www/workshop/wdb_copy/mets_config.inc.php:105") | |
(assignment "_SESSION['firstpage_xsl'] = 'start.xsl' /var/www/workshop/wdb_copy/mets_config.inc.php:106") | |
(assignment "_SESSION['mets_param_distype'] = array (0 => 'start', 1 => 'toc') /var/www/workshop/wdb_copy/mets_config.inc.php:107") | |
(assignment "_SESSION['mets_param_search'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:108") | |
(assignment "_SESSION['mets_param_view_exist'] = NULL /var/www/workshop/wdb_copy/mets_config.inc.php:109") | |
(assignment "_SESSION['mets_pv'] = array ('pv_transcript-facs' => array ('f1' => '50', 'f2' => '50', 'synctype' => array (...), 'xml1' => NULL, 'xml2' => NULL, 'xsl1' => NULL, 'xsl2' => NULL)) /var/www/workshop/wdb_copy/mets_config.inc.php:110") | |
(assignment "_SESSION['logo'] = array () /var/www/workshop/wdb_copy/mets_config.inc.php:111")))) | |
(call (depth 2) | |
(time "0.0056") | |
(memory "844256") | |
(function "str_replace") | |
(parameter-list "'/','\\\\','edoc/ed000145'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:48") | |
(return "'edoc\\\\ed000145'") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0056") | |
(memory "844168") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc\\\\ed000145\\\\startx.htm'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:48") | |
(return "FALSE") | |
(body nil)) | |
(assignment "$sstr = NULL /var/www/workshop/wdb_copy/wdb.php:63") | |
(assignment "$refererVD17 = 'http://gso.gbv.de/DB=1.28' /var/www/workshop/wdb_copy/wdb.php:64") | |
(assignment "$refererVD16 = 'http://bvba2.bib-bvb.de/' /var/www/workshop/wdb_copy/wdb.php:65") | |
(assignment "$refererGBV = 'http://gso.gbv.de/xslt/DB=2.1/' /var/www/workshop/wdb_copy/wdb.php:66") | |
(call (depth 2) | |
(time "0.0057") | |
(memory "845592") | |
(function "strpos") | |
(parameter-list "NULL,'http://gso.gbv.de/DB=1.28'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:68") | |
(return "FALSE") | |
(body nil)) | |
(assignment "$posvd17 = FALSE /var/www/workshop/wdb_copy/wdb.php:68") | |
(call (depth 2) | |
(time "0.0057") | |
(memory "845800") | |
(function "strpos") | |
(parameter-list "NULL,'http://bvba2.bib-bvb.de/'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:69") | |
(return "FALSE") | |
(body nil)) | |
(assignment "$posvd16 = FALSE /var/www/workshop/wdb_copy/wdb.php:69") | |
(call (depth 2) | |
(time "0.0057") | |
(memory "846008") | |
(function "strpos") | |
(parameter-list "NULL,'http://gso.gbv.de/xslt/DB=2.1/'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:70") | |
(return "FALSE") | |
(body nil)) | |
(assignment "$posgbv = FALSE /var/www/workshop/wdb_copy/wdb.php:70") | |
(assignment "_SESSION['mets_xml'] = 'start.xml' /var/www/workshop/wdb_copy/wdb.php:80") | |
(assignment "_SESSION['mets_xsl'] = 'start.xsl' /var/www/workshop/wdb_copy/wdb.php:81") | |
(assignment "$fleft = '30%' /var/www/workshop/wdb_copy/wdb.php:84") | |
(assignment "$fright = '70%' /var/www/workshop/wdb_copy/wdb.php:85") | |
(call (depth 2) | |
(time "0.0058") | |
(memory "846520") | |
(function "dirname") | |
(parameter-list "'/workshop/wdb_copy/wdb.php'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:86") | |
(return "'/workshop/wdb_copy'") | |
(body nil)) | |
(assignment "$d1 = '<frame frameborder=\\'0\\' src=\"content.php?dir=edoc/ed000145&xml=mets.xml&xsl=http://localhost/workshop/wdb_copy/rules/styles/mets.xsl#\" name=\"display1\">' /var/www/workshop/wdb_copy/wdb.php:86") | |
(assignment "$d2 = '<frame frameborder=\\'0\\' src=\"content.php?dir=edoc/ed000145&xml=start.xml&xsl=start.xsl#\" name=\"display2\">' /var/www/workshop/wdb_copy/wdb.php:87") | |
(call (depth 2) | |
(time "0.0058") | |
(memory "847336") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:295") | |
(return "TRUE") | |
(body nil)) | |
(call (depth 2) | |
(time "0.0058") | |
(memory "847336") | |
(function "file_exists") | |
(parameter-list "'/var/www/workshop/wdb_copy/edoc/ed000145/mets.xml'") | |
(location "/var/www/workshop/wdb_copy/wdb.php:296") | |
(return "TRUE") | |
(body nil)))))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
;; If you want to create a file, visit that file with C-x C-f, | |
;; then enter the text in that file's own buffer. | |
(defconst php-xdebug-trace:format-0-function-return "\\s +>=> \\(.+\\)") | |
(defconst php-xdebug-trace:format-0-assignment "\\s +=> \\(.+\\)") | |
(defconst php-xdebug-trace:format-0-function-call "^\\s +\\([0-9.]+\\)\\s +\\([0-9.]+\\)\\(\\s +\\)-> \\(.+\\)") | |
(defclass php-xdebug-trace:parser () ()) | |
(defclass php-xdebug-trace:parser-format-0 (php-xdebug-trace:parser) ()) | |
(defgeneric php-xdebug-trace-parse (parser &optional depth)) | |
(defmethod php-xdebug-trace-parse ((parser php-xdebug-trace:parser-format-0) &optional depth) | |
(let ((depth (or depth 0)) | |
function-return call-tree) | |
(while (not function-return) | |
(cond | |
((looking-at php-xdebug-trace:format-0-function-call) | |
(let ((call-depth (length (match-string 3))) | |
(signature (match-string 4))) | |
(forward-line 1) | |
(when (> call-depth depth) | |
(push | |
(list 'call (cons 'signature signature) (php-xdebug-trace-parse parser call-depth)) | |
call-tree)))) | |
((looking-at php-xdebug-trace:format-0-assignment) | |
(push (cons 'assignment (match-string 1)) call-tree) | |
(forward-line 1)) | |
((looking-at php-xdebug-trace:format-0-function-return) | |
(push (cons 'return (match-string 1)) call-tree) | |
(setf function-return t) | |
(forward-line 1)) | |
((eobp) | |
(unless (= depth 0) | |
(error "Premature end of function call trace")) | |
(setf function-return t)) | |
(t | |
(forward-line 1)))) | |
(reverse call-tree))) | |
(defun foobar () | |
(let ((parser (make-instance 'php-xdebug-trace:parser-format-0))) | |
(goto-char (point-min)) | |
(let ((call-tree (car (php-xdebug-trace-parse parser)))) | |
(with-current-buffer (get-buffer-create "*OUTPUT*") | |
(erase-buffer) | |
(cl-prettyprint call-tree)) | |
(display-buffer "*OUTPUT*") | |
))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment