cvs: presentations / internals.xml xdebug-ffm2003.xml /slides/internals alltokens.xml apache-module.xml blackbox.png cgi.xml clearness.png
clearness.xml compile.png compile.xml dump1.png execute.png execute1.xml execute2.xml execute3.xml execute4.xml intro.xml lex.xml opcode.xml
opcode2.xml parse_error.xml qmark.png questions.xml resources.xml title.xml tokenize.png tokenizer1.xml tokenizer2.xml tokens.xml vld-example.xml
vld1.xml vld2.xml /slides/xdebug about.xml client-studio.xml dbgp.xml debugclient.png execute.png functiontrace.png functiontrace.xml
gathering-data.xml gathering1.xml gathering2.xml gdb-xml.png gdb-xml.xml gdb.xml how-started.xml infinite.png infinite.xml interfaces.xml
maguma-logo.png maguma.png nesting-protection.png profile.png profile.xml questions.xml resources.xml seg.png sim6a.jpg sim6a.png stacktrace.png
stacktrace.xml studio.png style.css title.xml trace.xml var_dump.png vardump.xml xdebug-logo.png xdebug.xml
| From: | Derick Rethans | Date: | Tue, 28 Oct 2003 09:51:26 +0000 |
| Subject: | cvs: presentations / internals.xml xdebug-ffm2003.xml /slides/internals alltokens.xml apache-module.xml blackbox.png cgi.xml clearness.png clearness.xml compile.png compile.xml dump1.png execute.png execute1.xml execute2.xml execute3.xml execute4.xml intro.xml lex.xml opcode.xml opcode2.xml parse_error.xml qmark.png questions.xml resources.xml title.xml tokenize.png tokenizer1.xml tokenizer2.xml tokens.xml vld-example.xml vld1.xml vld2.xml /slides/xdebug about.xml client-studio.xml dbgp.xml debugclient.png execute.png functiontrace.png functiontrace.xml gathering-data.xml gathering1.xml gathering2.xml gdb-xml.png gdb-xml.xml gdb.xml how-started.xml infinite.png infinite.xml interfaces.xml maguma-logo.png maguma.png nesting-protection.png profile.png profile.xml questions.xml resources.xml seg.png sim6a.jpg sim6a.png stacktrace.png stacktrace.xml studio.png style.css title.xml trace.xml var_dump.png vardump.xml xdebug-logo.png xdebug.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-876@lists.php.net to get a copy of this message | ||
derick Tue Oct 28 04:51:26 2003 EDT
Added files:
/presentations internals.xml xdebug-ffm2003.xml
/presentations/slides/internals alltokens.xml apache-module.xml
blackbox.png cgi.xml clearness.png
clearness.xml compile.png
compile.xml dump1.png execute.png
execute1.xml execute2.xml
execute3.xml execute4.xml intro.xml
lex.xml opcode.xml opcode2.xml
parse_error.xml qmark.png
questions.xml resources.xml
title.xml tokenize.png
tokenizer1.xml tokenizer2.xml
tokens.xml vld-example.xml vld1.xml
vld2.xml
/presentations/slides/xdebug dbgp.xml debugclient.png
functiontrace.png functiontrace.xml
gathering1.xml gathering2.xml
gdb-xml.png gdb-xml.xml gdb.xml
how-started.xml infinite.png
infinite.xml interfaces.xml
maguma-logo.png maguma.png
nesting-protection.png questions.xml
resources.xml seg.png sim6a.png
stacktrace.png stacktrace.xml
style.css title.xml var_dump.png
vardump.xml xdebug-logo.png
Modified files:
/presentations/slides/xdebug about.xml client-studio.xml
execute.png gathering-data.xml
profile.png profile.xml sim6a.jpg
studio.png trace.xml xdebug.xml
Log:
- Add Xdebug and Internals presentations for Intl. PHP Conference
Index: presentations/slides/xdebug/about.xml diff -u presentations/slides/xdebug/about.xml:1.1 presentations/slides/xdebug/about.xml:1.2 --- presentations/slides/xdebug/about.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/about.xml Tue Oct 28 04:51:26 2003 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> - <blurb> </blurb> + <break lines="2"/> <list fontsize="4.5em"> + <bullet>Protects against infinite recursion</bullet> + <bullet>|ff0000|Colored| |00ff00|var||0000ff|_dump|()</bullet> <bullet>Stacktraces</bullet> <bullet>Functiontraces</bullet> <bullet marginleft="2em">parameters to functions</bullet> @@ -11,6 +13,7 @@ <bullet marginleft="2em">memory allocation</bullet> <bullet>Profiling</bullet> <bullet>Script execution analysis</bullet> + <bullet>"Remote" debugging</bullet> </list> </slide> Index: presentations/slides/xdebug/client-studio.xml diff -u presentations/slides/xdebug/client-studio.xml:1.1 presentations/slides/xdebug/client-studio.xml:1.2 --- presentations/slides/xdebug/client-studio.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/client-studio.xml Tue Oct 28 04:51:26 2003 @@ -2,7 +2,11 @@ <slide fontsize="6em"> <title>Maguma Studio</title> - <blurb> </blurb> + <break/> + <image align="right" marginright="8em" filename="maguma-logo.png"/> <image align="center" filename="studio.png"/> + <list fontsize="5em" marginleft="4em"> + <bullet>Version 2 supports DBGp</bullet> + </list> </slide> Index: presentations/slides/xdebug/execute.png Index: presentations/slides/xdebug/gathering-data.xml diff -u presentations/slides/xdebug/gathering-data.xml:1.1 presentations/slides/xdebug/gathering-data.xml:1.2 --- presentations/slides/xdebug/gathering-data.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/gathering-data.xml Tue Oct 28 04:51:26 2003 @@ -8,6 +8,6 @@ <bullet>By scanning compiled code (for used vars)</bullet> <bullet>By remembering locations of variables</bullet> </list> - <image align="right" marginright="2em" filename="sim6a.jpg"/> + <image align="right" marginright="2em" filename="sim6a.png"/> </slide> Index: presentations/slides/xdebug/profile.png Index: presentations/slides/xdebug/profile.xml diff -u presentations/slides/xdebug/profile.xml:1.2 presentations/slides/xdebug/profile.xml:1.3 --- presentations/slides/xdebug/profile.xml:1.2 Sun Jul 13 15:32:19 2003 +++ presentations/slides/xdebug/profile.xml Tue Oct 28 04:51:26 2003 @@ -5,7 +5,7 @@ <image align="center" filename="profile.png"/> <blurb> </blurb> - <list effect="slide" fontsize="4.5em"> + <list fontsize="4.5em"> <bullet>Basic profiling.</bullet> <bullet>xdebug_start_profile()</bullet> <bullet>xdebug_dump_function_profile(mode)</bullet> Index: presentations/slides/xdebug/sim6a.jpg Index: presentations/slides/xdebug/studio.png Index: presentations/slides/xdebug/trace.xml diff -u presentations/slides/xdebug/trace.xml:1.1 presentations/slides/xdebug/trace.xml:1.2 --- presentations/slides/xdebug/trace.xml:1.1 Fri Jul 4 14:48:37 2003 +++ presentations/slides/xdebug/trace.xml Tue Oct 28 04:51:26 2003 @@ -7,7 +7,7 @@ <blurb> </blurb> <blurb> </blurb> - <list effect="slide" fontsize="5em"> + <list fontsize="5em"> <bullet>xdebug_start_trace()</bullet> <bullet>xdebug_dump_function_trace()</bullet> </list> Index: presentations/slides/xdebug/xdebug.xml diff -u presentations/slides/xdebug/xdebug.xml:1.1 presentations/slides/xdebug/xdebug.xml:1.2 --- presentations/slides/xdebug/xdebug.xml:1.1 Fri Jul 4 14:48:37 2003 +++ presentations/slides/xdebug/xdebug.xml Tue Oct 28 04:51:26 2003 @@ -5,7 +5,7 @@ <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> - <list effect="slide" fontsize="4.5em"> + <list fontsize="4.5em"> <bullet>No more "echo' debugging"</bullet> <bullet>Zend extension</bullet> <bullet type="none" marginleft="2em">zend_extension=/path/to/xdebug.so</bullet> Index: presentations/internals.xml +++ presentations/internals.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/ze-xdebug/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>PHP Internals</title> <event>International PHP Conference 2003</event> <location>Frankfurt, Germany</location> <date>November 5, 2003</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <slide>slides/internals/title.xml</slide> <slide>slides/internals/intro.xml</slide> <slide>slides/internals/clearness.xml</slide> <slide>slides/internals/apache-module.xml</slide> <slide>slides/internals/cgi.xml</slide> <slide>slides/internals/parse_error.xml</slide> <slide>slides/internals/lex.xml</slide> <slide>slides/internals/tokens.xml</slide> <slide>slides/internals/alltokens.xml</slide> <slide>slides/internals/tokenizer1.xml</slide> <slide>slides/internals/tokenizer2.xml</slide> <slide>slides/internals/compile.xml</slide> <slide>slides/internals/opcode2.xml</slide> <slide>slides/internals/opcode.xml</slide> <slide>slides/internals/vld-example.xml</slide> <slide>slides/internals/vld1.xml</slide> <slide>slides/internals/vld2.xml</slide> <slide>slides/internals/execute1.xml</slide> <slide>slides/internals/execute2.xml</slide> <slide>slides/internals/execute3.xml</slide> <slide>slides/internals/execute4.xml</slide> <slide>slides/internals/questions.xml</slide> <slide>slides/internals/resources.xml</slide> </presentation> Index: presentations/xdebug-ffm2003.xml +++ presentations/xdebug-ffm2003.xml <presentation template="php" navmode="html" navbarbackground="#227722" navColor="#f1fbff" logo1="presentations/slides/xdebug/maguma.png" stylesheet="presentations/slides/xdebug/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>Xdebug in a nutshell</title> <event>International PHP Conference</event> <location>Frankfurt, Germany</location> <date>November 5th, 2003</date> <speaker>Derick Rethans</speaker> <email>derick@maguma.com</email> <url>http://pres.derickrethans.nl/xdebug-frankfurt</url> <slide>slides/xdebug/title.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/xdebug/how-started.xml</slide> <slide>slides/xdebug/about.xml</slide> <slide>slides/xdebug/infinite.xml</slide> <slide>slides/xdebug/vardump.xml</slide> <slide>slides/xdebug/stacktrace.xml</slide> <slide>slides/xdebug/functiontrace.xml</slide> <slide>slides/xdebug/profile.xml</slide> <slide>slides/xdebug/gathering-data.xml</slide> <slide>slides/xdebug/gathering1.xml</slide> <slide>slides/xdebug/gathering2.xml</slide> <slide>slides/xdebug/hooks1.xml</slide> <slide>slides/xdebug/execute.xml</slide> <slide>slides/xdebug/hooks2.xml</slide> <slide>slides/xdebug/interfaces.xml</slide> <slide>slides/xdebug/gdb.xml</slide> <slide>slides/xdebug/gdb-xml.xml</slide> <slide>slides/xdebug/dbgp.xml</slide> <slide>slides/xdebug/client-xdebugc.xml</slide> <slide>slides/xdebug/client-macosx.xml</slide> <slide>slides/xdebug/client-studio.xml</slide> <slide>slides/xdebug/resources.xml</slide> </presentation> Index: presentations/slides/internals/alltokens.xml +++ presentations/slides/internals/alltokens.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokens in PHP</title> <blurb>From Zend/zend_language_parser.y:</blurb> <example fontsize="1.1em"><![CDATA[%left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE %left ',' %left T_LOGICAL_OR %left T_LOGICAL_XOR %left T_LOGICAL_AND %right T_PRINT %left '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL T_CONCAT_EQUAL T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL %left '?' ':' %left T_BOOLEAN_OR %left T_BOOLEAN_AND %left '|' %left '^' %left '&' %nonassoc T_IS_EQUAL T_IS_NOT_EQUAL T_IS_IDENTICAL T_IS_NOT_IDENTICAL %nonassoc '<' T_IS_SMALLER_OR_EQUAL '>' T_IS_GREATER_OR_EQUAL %left T_SL T_SR %left '+' '-' '.' %left '*' '/' '%' %right '!' '~' T_INC T_DEC T_INT_CAST T_DOUBLE_CAST T_STRING_CAST T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@' %right '[' %nonassoc T_NEW T_INSTANCEOF %token T_EXIT %token T_IF %left T_ELSEIF %left T_ELSE %left T_ENDIF %token T_LNUMBER %token T_DNUMBER %token T_STRING %token T_STRING_VARNAME %token T_VARIABLE %token T_NUM_STRING %token T_INLINE_HTML %token T_CHARACTER %token T_BAD_CHARACTER %token T_ENCAPSED_AND_WHITESPACE %token T_CONSTANT_ENCAPSED_STRING %token T_ECHO %token T_DO %token T_WHILE %token T_ENDWHILE %token T_FOR %token T_ENDFOR %token T_FOREACH %token T_ENDFOREACH %token T_DECLARE %token T_ENDDECLARE %token T_INSTANCEOF %token T_AS %token T_SWITCH %token T_ENDSWITCH %token T_CASE %token T_DEFAULT %token T_BREAK %token T_CONTINUE %token T_FUNCTION %token T_CONST %token T_RETURN %token T_TRY %token T_CATCH %token T_THROW %token T_USE %token T_GLOBAL %right T_STATIC T_ABSTRACT T_FINAL T_PRIVATE T_PROTECTED T_PUBLIC %token T_VAR %token T_UNSET %token T_ISSET %token T_EMPTY %token T_CLASS %token T_INTERFACE %token T_EXTENDS %token T_IMPLEMENTS %token T_OBJECT_OPERATOR %token T_DOUBLE_ARROW %token T_LIST %token T_ARRAY %token T_CLASS_C %token T_FUNC_C %token T_LINE %token T_FILE %token T_COMMENT %token T_DOC_COMMENT %token T_OPEN_TAG %token T_OPEN_TAG_WITH_ECHO %token T_CLOSE_TAG %token T_WHITESPACE %token T_START_HEREDOC %token T_END_HEREDOC %token T_DOLLAR_OPEN_CURLY_BRACES %token T_CURLY_OPEN %token T_PAAMAYIM_NEKUDOTAYIM }]]></example> </slide> Index: presentations/slides/internals/apache-module.xml +++ presentations/slides/internals/apache-module.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Input: Apache module</title> <break /> <list fontsize="4.5em"> <bullet>PHP registers handlers for:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">Mime types:</bullet> <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php%</bullet> <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php-source%</bullet> <bullet marginleft="1.5em" fontsize="2.5em">Others:</bullet> <bullet marginleft="4em" fontsize="2em">%text/html% (Apache xbithack)</bullet> <bullet marginleft="4em" fontsize="2em">%php-script% (Apache 2)</bullet> </list> <list fontsize="4.5em"> <bullet>On a request, Apache:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> <bullet marginleft="1.5em" fontsize="2.5em">opens the file</bullet> <bullet marginleft="1.5em" fontsize="2.5em">fills a meta data record</bullet> <bullet marginleft="1.5em" fontsize="2.5em">hands PHP a filepointer</bullet> </list> </slide> Index: presentations/slides/internals/cgi.xml +++ presentations/slides/internals/cgi.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Input: Apache/CGI</title> <break /> <list fontsize="4.5em"> <bullet>CGI binary is linked to mime-type:</bullet> </list> <break /> <example><![CDATA[ScriptAlias /php/ /usr/local/bin/php-cgi AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe"]]></example> <break /> <list fontsize="4.5em"> <bullet>On a request, Apache:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> <bullet marginleft="1.5em" fontsize="2.5em">fills in needed environment variables</bullet> <bullet marginleft="1.5em" fontsize="2.5em">executes the CGI processor</bullet> </list> </slide> Index: presentations/slides/internals/clearness.xml +++ presentations/slides/internals/clearness.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction (2)</title> <break lines="2"/> <image align="center" filename="clearness.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">No! Clearness</blurb> </slide> Index: presentations/slides/internals/compile.xml +++ presentations/slides/internals/compile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling</title> <break lines="7"/> <list fontsize="5em"> <bullet>Interpreting tokens</bullet> </list> <list fontsize="5em"> <bullet>Generating execution units</bullet> </list> <list fontsize="5em"> <bullet>Generating class and function tables</bullet> </list> </slide> Index: presentations/slides/internals/execute1.xml +++ presentations/slides/internals/execute1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Executor executes opcodes</bullet> </list> <list fontsize="5em"> <bullet>116 or 140 different opcodes</bullet> </list> <list fontsize="5em"> <bullet>Per file execution</bullet> </list> </slide> Index: presentations/slides/internals/execute2.xml +++ presentations/slides/internals/execute2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Diagram</title> <image align="center" filename="execute.png"/> </slide> Index: presentations/slides/internals/execute3.xml +++ presentations/slides/internals/execute3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Example (1)</title> <blurb> </blurb> <blurb>test.inc:</blurb> <example fontsize="1.7em"><![CDATA[<?php function foo () { echo "bar\n"; } echo "inc\n"; ? > ]]></example> <blurb> </blurb> <blurb>test.php</blurb> <example fontsize="1.7em"><![CDATA[<?php echo "foo\n"; include "test.inc"; foo(); echo "more bar\n"; ? > ]]></example> </slide> Index: presentations/slides/internals/execute4.xml +++ presentations/slides/internals/execute4.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Example (2)</title> <break lines="3" /> <blurb fontsize="5em">The engine:</blurb> <list fontsize="4em"> <bullet>parses and compiles test.php</bullet> <bullet>starts executing test.php</bullet> <bullet>parses and compiles test.inc when</bullet> <bullet type="none" marginleft="1em">the include() statement is encountered</bullet> <bullet>starts executing test.inc</bullet> <bullet>resumes executing test.php</bullet> </list> </slide> Index: presentations/slides/internals/intro.xml +++ presentations/slides/internals/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction</title> <break lines="2"/> <image align="center" filename="blackbox.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">Black box?</blurb> </slide> Index: presentations/slides/internals/lex.xml +++ presentations/slides/internals/lex.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokenize</title> <break lines="4"/> <image align="center" filename="tokenize.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">Syntax highlighting = Tokenizing</blurb> </slide> Index: presentations/slides/internals/opcode.xml +++ presentations/slides/internals/opcode.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Oparrays</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Oparrays</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Compiled code</bullet> <bullet>One for every script element</bullet> </list> <blurb> </blurb> <list fontsize="5em"> <bullet>Opcode</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Basic execution unit</bullet> <bullet>Two operands</bullet> <bullet>One result</bullet> </list> </slide> Index: presentations/slides/internals/opcode2.xml +++ presentations/slides/internals/opcode2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Diagram</title> <break lines="4"/> <image align="center" filename="compile.png"/> <break lines="2"/> </slide> Index: presentations/slides/internals/parse_error.xml +++ presentations/slides/internals/parse_error.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Lexical analyze script source</bullet> <bullet>Divide into logical blocks of characters</bullet> <bullet>Give special blocks a meaning</bullet> <bullet>%flex%</bullet> </list> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb>Our friend Mr Parse Error: </blurb> <example><![CDATA[Parse error: parse error, unexpected T_CLASS, expecting ',' or ';' in - on line 2 ]]></example> </slide> Index: presentations/slides/internals/questions.xml +++ presentations/slides/internals/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb align="center" marginleft="0" marginright="0" fontsize="60em">?</blurb> </slide> Index: presentations/slides/internals/resources.xml +++ presentations/slides/internals/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="12" /> <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://pres.derickrethans.nl" target="_new"/> <link fontsize="3em" marginleft="2em" leader="VLD site: " href="http://www.derickrethans.nl/vld.php" target="_new"/> <break lines="3" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/internals/title.xml +++ presentations/slides/internals/title.xml <slide template="titlepage" fontsize="3.5em"> <title>Welcome!</title> </slide> Index: presentations/slides/internals/tokenizer1.xml +++ presentations/slides/internals/tokenizer1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Example (1)</title> <blurb fontsize="4em">Tokenizer extension:</blurb> <blurb>magic.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php function apply_magic(&$a) { $a = $a + rand(0,3); } ? >]]></example> <blurb>tokenize.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php foreach (token_get_all($script) as $token) { if (count($token) == 2) { printf ("%-25s [%s]\n", token_name($token[0]), $token[1]); } else { printf ("%-25s [%s]\n", "", $token[0]); } } ? >]]></example> </slide> Index: presentations/slides/internals/tokenizer2.xml +++ presentations/slides/internals/tokenizer2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Example (2)</title> <example fontsize="1.2em"><![CDATA[<?php function apply_magic(&$a) { $a = $a + rand(0,3); } ? >]]></example> <example type="text" fontsize="1.1em"><![CDATA[T_OPEN_TAG [<?php\n] T_WHITESPACE [ ] T_FUNCTION [function] T_WHITESPACE [ ] T_STRING [apply_magic] [(] [&] T_VARIABLE [$a] [)] T_WHITESPACE [ ] [{] T_WHITESPACE [\n ] T_VARIABLE [$a] T_WHITESPACE [ ] [=] T_WHITESPACE [ ] T_VARIABLE [$a] T_WHITESPACE [ ] [+] T_WHITESPACE [ ] T_STRING [rand] [(] T_LNUMBER [0] [,] T_LNUMBER [3] [)] [;] T_WHITESPACE [\n ] [}] T_WHITESPACE [\n] T_CLOSE_TAG [? >]]]></example> </slide> Index: presentations/slides/internals/tokens.xml +++ presentations/slides/internals/tokens.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokens</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>The building blocks of a script</bullet> <bullet>Strings, variables, keywords</bullet> <bullet>Action rules:</bullet> </list> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <example fontsize="1.4em"><![CDATA[<ST_IN_SCRIPTING>"::" { return T_PAAMAYIM_NEKUDOTAYIM; }]]></example> <example fontsize="1.4em"><![CDATA[<ST_IN_SCRIPTING>{DNUM}|{EXPONENT_DNUM} { zendlval->value.dval = strtod(yytext, NULL); zendlval->type = IS_DOUBLE; return T_DNUMBER; }]]></example> </slide> Index: presentations/slides/internals/vld-example.xml +++ presentations/slides/internals/vld-example.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Example</title> <blurb>fibonacci.php:</blurb> <example fontsize="1.5em"><![CDATA[<?php $cache = array(); function fibonacci($nr) { global $cache; if (isset($cache[$nr])) { return $cache[$nr]; } switch ($nr) { case 0: die("Invalid Nr\n"); case 1: return 1; case 2: return 1; default: $r = fibonacci($nr - 2) + fibonacci($nr - 1); $cache[$nr] = $r; return $r; } } echo fibonacci($argv[1])."\n"; ? >]]></example> </slide> Index: presentations/slides/internals/vld1.xml +++ presentations/slides/internals/vld1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Break-down</title> <image align="center" filename="dump1.png"/> </slide> Index: presentations/slides/internals/vld2.xml +++ presentations/slides/internals/vld2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Disassembler</title> <break lines="8"/> <list fontsize="5em"> <bullet>Disassembler: vld</bullet> <bullet>Dumps oparray per element:</bullet> </list> <list marginleft="3em" fontsize="4em"> <bullet>main script</bullet> <bullet>function</bullet> <bullet>class method</bullet> </list> </slide> Index: presentations/slides/xdebug/dbgp.xml +++ presentations/slides/xdebug/dbgp.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp mode</title> <break lines="2"/> <list fontsize="4em"> <bullet>Input commands as "command line parameters"</bullet> <bullet fontsize="2.5em">%|229922|property_get| *-n* $foo->property *-d* 2 *-i* 81%</bullet> <bullet>Output data as *documented* XML:</bullet> </list> <break /> <example><![CDATA[data_length [NULL] <response command="command_name" transaction_id="transaction_id"/> [NULL]]]></example> <break /> <list fontsize="4em"> <bullet>Cross-language: PHP, Python, Perl, Tcl, XSLT</bullet> <bullet>Supported in Xdebug 2</bullet> <bullet>Client implementation in Maguma Studio 2,</bullet> <bullet marginleft="16em" type="none">ActiveState's Komodo</bullet> </list> </slide> Index: presentations/slides/xdebug/functiontrace.xml +++ presentations/slides/xdebug/functiontrace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Execution trace</title> <break lines="3" /> <image filename="functiontrace.png" align="center"/> </slide> Index: presentations/slides/xdebug/gathering1.xml +++ presentations/slides/xdebug/gathering1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Gathering debug data 1</title> <blurb> </blurb> <list fontsize="5em"> <bullet>Functions and classnames</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Normal functions (strlen())</bullet> <bullet>Class members ($obj->strlen())</bullet> <bullet>Static class members (class::strlen())</bullet> <bullet>include/require/eval</bullet> </list> <list fontsize="5em"> <bullet>Parameters</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>From argument stack</bullet> <bullet>Converted to strings</bullet> </list> </slide> Index: presentations/slides/xdebug/gathering2.xml +++ presentations/slides/xdebug/gathering2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Gathering debug data 2</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Memory footprint</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Script memory</bullet> <bullet>emalloc()</bullet> <bullet>--enable-memory-limit</bullet> </list> <list fontsize="5em"> <bullet>Time index</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Simple profiling</bullet> </list> </slide> Index: presentations/slides/xdebug/gdb-xml.xml +++ presentations/slides/xdebug/gdb-xml.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>GDB mode/XML</title> <break lines="4"/> <list fontsize="5em"> <bullet>Input commands the same</bullet> <bullet>%option response_format 1%</bullet> <bullet>Output in 'proprietary' XML</bullet> <bullet>Easier parsing for debug clients...</bullet> </list> <list effect="slide" fontsize="5em"> <bullet type="none" marginleft="3em">... but not for people</bullet> </list> <break lines="5"/> <image filename="gdb-xml.png" align="center"/> </slide> Index: presentations/slides/xdebug/gdb.xml +++ presentations/slides/xdebug/gdb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>GDB mode</title> <break/> <image filename="debugclient.png" align="center"/> </slide> Index: presentations/slides/xdebug/how-started.xml +++ presentations/slides/xdebug/how-started.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>How did it start?</title> <break lines="12" /> <image filename="seg.png" align="center"/> </slide> Index: presentations/slides/xdebug/infinite.xml +++ presentations/slides/xdebug/infinite.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protection</title> <break lines="7" /> <image filename="infinite.png" align="center"/> </slide> Index: presentations/slides/xdebug/interfaces.xml +++ presentations/slides/xdebug/interfaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Remote Interfaces</title> <break/> <list fontsize="5em" marginleft="2em"> <bullet>PHP 3 debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>Port of the old remote debug dump</bullet> <bullet marginleft="5em" type="none">interface for PHP 3</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> <list fontsize="5em" marginleft="2em"> <bullet>GDB debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>GDB like environment</bullet> <bullet>Two output possibilities: plain text and XML</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> <list fontsize="5em" marginleft="2em"> <bullet>DBGp debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>Language independent</bullet> <bullet>Plain text in, XML out</bullet> <bullet>Available in Xdebug 2.x</bullet> </list> </slide> Index: presentations/slides/xdebug/questions.xml +++ presentations/slides/xdebug/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb align="center" marginleft="0" marginright="0" fontsize="60em">?</blurb> </slide> Index: presentations/slides/xdebug/resources.xml +++ presentations/slides/xdebug/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="3" /> <image align="center" filename="xdebug-logo.png" /> <break lines="6" /> <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://pres.derickrethans.nl" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Xdebug site: " href="http://xdebug.org" target="_new"/> <link fontsize="3em" marginleft="2em" leader="DBGp specification: " href="http://xdebug.org/docs-dbgp.php" target="_new"/> <break lines="3" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="derick@xdebug.org" target="_new"/> </slide> Index: presentations/slides/xdebug/stacktrace.xml +++ presentations/slides/xdebug/stacktrace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Stacktrace</title> <break lines="3" /> <image filename="stacktrace.png" align="center"/> </slide> Index: presentations/slides/xdebug/style.css +++ presentations/slides/xdebug/style.css <style title="Default" type="text/css"> body { font-size: 12pt; margin-left:1.5em; margin-right:0em; margin-bottom:0em; } ul { padding-top: 20; padding-left: 100; } tt { font-family: courier; } th.trace { font-family: arial; font-size: 12pt; } td.trace { font-family: arial; font-size: 12pt; } th.tracesml { font-family: arial; font-size: 9pt; } td.tracesml { font-family: arial; font-size: 9pt; } div.sticky { margin: 0; position: fixed; top: 0em; left: 0em; right: auto; bottom: auto; width: auto; } div.shadow { background: #777777; padding: 0.5em; } div.navbar { padding: 4; margin: 0; height: 6em; background-color: #22AA22; color: #3c5bb4; font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.emcode { background: #cccccc; border: thin solid #000000; padding: 0.5em; font-family: monospace; } div.output { font-family: monospace; background: #eeee33; border: thin solid #000000; padding: 0.5em; } table.index { background: #cccccc; border: thin dotted #000000; padding: 0.5em; font-family: monospace; } td.index { background: #cccccc; padding: 1em; font-family: monospace; } h1 { font-size: 2em; } p,li { font-size: 2.6em; } a { text-decoration: none; } a:hover { text-decoration: underline; } c2right { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : right; } c2left { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : left; } box { margin : 0 0 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; float : left; } </style> Index: presentations/slides/xdebug/title.xml +++ presentations/slides/xdebug/title.xml <slide template="titlepage" fontsize="3.5em"> <title>Welcome!</title> <break lines="3"/> <image align="center" filename="xdebug-logo.png" /> </slide> Index: presentations/slides/xdebug/vardump.xml +++ presentations/slides/xdebug/vardump.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>New var_dump()</title> <break lines="5" /> <image filename="var_dump.png" align="center"/> </slide>
Index: presentations/slides/xdebug/about.xml diff -u presentations/slides/xdebug/about.xml:1.1 presentations/slides/xdebug/about.xml:1.2 --- presentations/slides/xdebug/about.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/about.xml Tue Oct 28 04:51:26 2003 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> - <blurb> </blurb> + <break lines="2"/> <list fontsize="4.5em"> + <bullet>Protects against infinite recursion</bullet> + <bullet>|ff0000|Colored| |00ff00|var||0000ff|_dump|()</bullet> <bullet>Stacktraces</bullet> <bullet>Functiontraces</bullet> <bullet marginleft="2em">parameters to functions</bullet> @@ -11,6 +13,7 @@ <bullet marginleft="2em">memory allocation</bullet> <bullet>Profiling</bullet> <bullet>Script execution analysis</bullet> + <bullet>"Remote" debugging</bullet> </list> </slide> Index: presentations/slides/xdebug/client-studio.xml diff -u presentations/slides/xdebug/client-studio.xml:1.1 presentations/slides/xdebug/client-studio.xml:1.2 --- presentations/slides/xdebug/client-studio.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/client-studio.xml Tue Oct 28 04:51:26 2003 @@ -2,7 +2,11 @@ <slide fontsize="6em"> <title>Maguma Studio</title> - <blurb> </blurb> + <break/> + <image align="right" marginright="8em" filename="maguma-logo.png"/> <image align="center" filename="studio.png"/> + <list fontsize="5em" marginleft="4em"> + <bullet>Version 2 supports DBGp</bullet> + </list> </slide> Index: presentations/slides/xdebug/execute.png Index: presentations/slides/xdebug/gathering-data.xml diff -u presentations/slides/xdebug/gathering-data.xml:1.1 presentations/slides/xdebug/gathering-data.xml:1.2 --- presentations/slides/xdebug/gathering-data.xml:1.1 Tue Jul 22 16:46:11 2003 +++ presentations/slides/xdebug/gathering-data.xml Tue Oct 28 04:51:26 2003 @@ -8,6 +8,6 @@ <bullet>By scanning compiled code (for used vars)</bullet> <bullet>By remembering locations of variables</bullet> </list> - <image align="right" marginright="2em" filename="sim6a.jpg"/> + <image align="right" marginright="2em" filename="sim6a.png"/> </slide> Index: presentations/slides/xdebug/profile.png Index: presentations/slides/xdebug/profile.xml diff -u presentations/slides/xdebug/profile.xml:1.2 presentations/slides/xdebug/profile.xml:1.3 --- presentations/slides/xdebug/profile.xml:1.2 Sun Jul 13 15:32:19 2003 +++ presentations/slides/xdebug/profile.xml Tue Oct 28 04:51:26 2003 @@ -5,7 +5,7 @@ <image align="center" filename="profile.png"/> <blurb> </blurb> - <list effect="slide" fontsize="4.5em"> + <list fontsize="4.5em"> <bullet>Basic profiling.</bullet> <bullet>xdebug_start_profile()</bullet> <bullet>xdebug_dump_function_profile(mode)</bullet> Index: presentations/slides/xdebug/sim6a.jpg Index: presentations/slides/xdebug/studio.png Index: presentations/slides/xdebug/trace.xml diff -u presentations/slides/xdebug/trace.xml:1.1 presentations/slides/xdebug/trace.xml:1.2 --- presentations/slides/xdebug/trace.xml:1.1 Fri Jul 4 14:48:37 2003 +++ presentations/slides/xdebug/trace.xml Tue Oct 28 04:51:26 2003 @@ -7,7 +7,7 @@ <blurb> </blurb> <blurb> </blurb> - <list effect="slide" fontsize="5em"> + <list fontsize="5em"> <bullet>xdebug_start_trace()</bullet> <bullet>xdebug_dump_function_trace()</bullet> </list> Index: presentations/slides/xdebug/xdebug.xml diff -u presentations/slides/xdebug/xdebug.xml:1.1 presentations/slides/xdebug/xdebug.xml:1.2 --- presentations/slides/xdebug/xdebug.xml:1.1 Fri Jul 4 14:48:37 2003 +++ presentations/slides/xdebug/xdebug.xml Tue Oct 28 04:51:26 2003 @@ -5,7 +5,7 @@ <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> - <list effect="slide" fontsize="4.5em"> + <list fontsize="4.5em"> <bullet>No more "echo' debugging"</bullet> <bullet>Zend extension</bullet> <bullet type="none" marginleft="2em">zend_extension=/path/to/xdebug.so</bullet> Index: presentations/internals.xml +++ presentations/internals.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/ze-xdebug/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>PHP Internals</title> <event>International PHP Conference 2003</event> <location>Frankfurt, Germany</location> <date>November 5, 2003</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <slide>slides/internals/title.xml</slide> <slide>slides/internals/intro.xml</slide> <slide>slides/internals/clearness.xml</slide> <slide>slides/internals/apache-module.xml</slide> <slide>slides/internals/cgi.xml</slide> <slide>slides/internals/parse_error.xml</slide> <slide>slides/internals/lex.xml</slide> <slide>slides/internals/tokens.xml</slide> <slide>slides/internals/alltokens.xml</slide> <slide>slides/internals/tokenizer1.xml</slide> <slide>slides/internals/tokenizer2.xml</slide> <slide>slides/internals/compile.xml</slide> <slide>slides/internals/opcode2.xml</slide> <slide>slides/internals/opcode.xml</slide> <slide>slides/internals/vld-example.xml</slide> <slide>slides/internals/vld1.xml</slide> <slide>slides/internals/vld2.xml</slide> <slide>slides/internals/execute1.xml</slide> <slide>slides/internals/execute2.xml</slide> <slide>slides/internals/execute3.xml</slide> <slide>slides/internals/execute4.xml</slide> <slide>slides/internals/questions.xml</slide> <slide>slides/internals/resources.xml</slide> </presentation> Index: presentations/xdebug-ffm2003.xml +++ presentations/xdebug-ffm2003.xml <presentation template="php" navmode="html" navbarbackground="#227722" navColor="#f1fbff" logo1="presentations/slides/xdebug/maguma.png" stylesheet="presentations/slides/xdebug/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>Xdebug in a nutshell</title> <event>International PHP Conference</event> <location>Frankfurt, Germany</location> <date>November 5th, 2003</date> <speaker>Derick Rethans</speaker> <email>derick@maguma.com</email> <url>http://pres.derickrethans.nl/xdebug-frankfurt</url> <slide>slides/xdebug/title.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/xdebug/how-started.xml</slide> <slide>slides/xdebug/about.xml</slide> <slide>slides/xdebug/infinite.xml</slide> <slide>slides/xdebug/vardump.xml</slide> <slide>slides/xdebug/stacktrace.xml</slide> <slide>slides/xdebug/functiontrace.xml</slide> <slide>slides/xdebug/profile.xml</slide> <slide>slides/xdebug/gathering-data.xml</slide> <slide>slides/xdebug/gathering1.xml</slide> <slide>slides/xdebug/gathering2.xml</slide> <slide>slides/xdebug/hooks1.xml</slide> <slide>slides/xdebug/execute.xml</slide> <slide>slides/xdebug/hooks2.xml</slide> <slide>slides/xdebug/interfaces.xml</slide> <slide>slides/xdebug/gdb.xml</slide> <slide>slides/xdebug/gdb-xml.xml</slide> <slide>slides/xdebug/dbgp.xml</slide> <slide>slides/xdebug/client-xdebugc.xml</slide> <slide>slides/xdebug/client-macosx.xml</slide> <slide>slides/xdebug/client-studio.xml</slide> <slide>slides/xdebug/resources.xml</slide> </presentation> Index: presentations/slides/internals/alltokens.xml +++ presentations/slides/internals/alltokens.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokens in PHP</title> <blurb>From Zend/zend_language_parser.y:</blurb> <example fontsize="1.1em"><![CDATA[%left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE %left ',' %left T_LOGICAL_OR %left T_LOGICAL_XOR %left T_LOGICAL_AND %right T_PRINT %left '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL T_CONCAT_EQUAL T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL %left '?' ':' %left T_BOOLEAN_OR %left T_BOOLEAN_AND %left '|' %left '^' %left '&' %nonassoc T_IS_EQUAL T_IS_NOT_EQUAL T_IS_IDENTICAL T_IS_NOT_IDENTICAL %nonassoc '<' T_IS_SMALLER_OR_EQUAL '>' T_IS_GREATER_OR_EQUAL %left T_SL T_SR %left '+' '-' '.' %left '*' '/' '%' %right '!' '~' T_INC T_DEC T_INT_CAST T_DOUBLE_CAST T_STRING_CAST T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@' %right '[' %nonassoc T_NEW T_INSTANCEOF %token T_EXIT %token T_IF %left T_ELSEIF %left T_ELSE %left T_ENDIF %token T_LNUMBER %token T_DNUMBER %token T_STRING %token T_STRING_VARNAME %token T_VARIABLE %token T_NUM_STRING %token T_INLINE_HTML %token T_CHARACTER %token T_BAD_CHARACTER %token T_ENCAPSED_AND_WHITESPACE %token T_CONSTANT_ENCAPSED_STRING %token T_ECHO %token T_DO %token T_WHILE %token T_ENDWHILE %token T_FOR %token T_ENDFOR %token T_FOREACH %token T_ENDFOREACH %token T_DECLARE %token T_ENDDECLARE %token T_INSTANCEOF %token T_AS %token T_SWITCH %token T_ENDSWITCH %token T_CASE %token T_DEFAULT %token T_BREAK %token T_CONTINUE %token T_FUNCTION %token T_CONST %token T_RETURN %token T_TRY %token T_CATCH %token T_THROW %token T_USE %token T_GLOBAL %right T_STATIC T_ABSTRACT T_FINAL T_PRIVATE T_PROTECTED T_PUBLIC %token T_VAR %token T_UNSET %token T_ISSET %token T_EMPTY %token T_CLASS %token T_INTERFACE %token T_EXTENDS %token T_IMPLEMENTS %token T_OBJECT_OPERATOR %token T_DOUBLE_ARROW %token T_LIST %token T_ARRAY %token T_CLASS_C %token T_FUNC_C %token T_LINE %token T_FILE %token T_COMMENT %token T_DOC_COMMENT %token T_OPEN_TAG %token T_OPEN_TAG_WITH_ECHO %token T_CLOSE_TAG %token T_WHITESPACE %token T_START_HEREDOC %token T_END_HEREDOC %token T_DOLLAR_OPEN_CURLY_BRACES %token T_CURLY_OPEN %token T_PAAMAYIM_NEKUDOTAYIM }]]></example> </slide> Index: presentations/slides/internals/apache-module.xml +++ presentations/slides/internals/apache-module.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Input: Apache module</title> <break /> <list fontsize="4.5em"> <bullet>PHP registers handlers for:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">Mime types:</bullet> <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php%</bullet> <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php-source%</bullet> <bullet marginleft="1.5em" fontsize="2.5em">Others:</bullet> <bullet marginleft="4em" fontsize="2em">%text/html% (Apache xbithack)</bullet> <bullet marginleft="4em" fontsize="2em">%php-script% (Apache 2)</bullet> </list> <list fontsize="4.5em"> <bullet>On a request, Apache:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> <bullet marginleft="1.5em" fontsize="2.5em">opens the file</bullet> <bullet marginleft="1.5em" fontsize="2.5em">fills a meta data record</bullet> <bullet marginleft="1.5em" fontsize="2.5em">hands PHP a filepointer</bullet> </list> </slide> Index: presentations/slides/internals/cgi.xml +++ presentations/slides/internals/cgi.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Input: Apache/CGI</title> <break /> <list fontsize="4.5em"> <bullet>CGI binary is linked to mime-type:</bullet> </list> <break /> <example><![CDATA[ScriptAlias /php/ /usr/local/bin/php-cgi AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe"]]></example> <break /> <list fontsize="4.5em"> <bullet>On a request, Apache:</bullet> <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> <bullet marginleft="1.5em" fontsize="2.5em">fills in needed environment variables</bullet> <bullet marginleft="1.5em" fontsize="2.5em">executes the CGI processor</bullet> </list> </slide> Index: presentations/slides/internals/clearness.xml +++ presentations/slides/internals/clearness.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction (2)</title> <break lines="2"/> <image align="center" filename="clearness.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">No! Clearness</blurb> </slide> Index: presentations/slides/internals/compile.xml +++ presentations/slides/internals/compile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling</title> <break lines="7"/> <list fontsize="5em"> <bullet>Interpreting tokens</bullet> </list> <list fontsize="5em"> <bullet>Generating execution units</bullet> </list> <list fontsize="5em"> <bullet>Generating class and function tables</bullet> </list> </slide> Index: presentations/slides/internals/execute1.xml +++ presentations/slides/internals/execute1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Executor executes opcodes</bullet> </list> <list fontsize="5em"> <bullet>116 or 140 different opcodes</bullet> </list> <list fontsize="5em"> <bullet>Per file execution</bullet> </list> </slide> Index: presentations/slides/internals/execute2.xml +++ presentations/slides/internals/execute2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Diagram</title> <image align="center" filename="execute.png"/> </slide> Index: presentations/slides/internals/execute3.xml +++ presentations/slides/internals/execute3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Example (1)</title> <blurb> </blurb> <blurb>test.inc:</blurb> <example fontsize="1.7em"><![CDATA[<?php function foo () { echo "bar\n"; } echo "inc\n"; ? > ]]></example> <blurb> </blurb> <blurb>test.php</blurb> <example fontsize="1.7em"><![CDATA[<?php echo "foo\n"; include "test.inc"; foo(); echo "more bar\n"; ? > ]]></example> </slide> Index: presentations/slides/internals/execute4.xml +++ presentations/slides/internals/execute4.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Executing: Example (2)</title> <break lines="3" /> <blurb fontsize="5em">The engine:</blurb> <list fontsize="4em"> <bullet>parses and compiles test.php</bullet> <bullet>starts executing test.php</bullet> <bullet>parses and compiles test.inc when</bullet> <bullet type="none" marginleft="1em">the include() statement is encountered</bullet> <bullet>starts executing test.inc</bullet> <bullet>resumes executing test.php</bullet> </list> </slide> Index: presentations/slides/internals/intro.xml +++ presentations/slides/internals/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction</title> <break lines="2"/> <image align="center" filename="blackbox.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">Black box?</blurb> </slide> Index: presentations/slides/internals/lex.xml +++ presentations/slides/internals/lex.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokenize</title> <break lines="4"/> <image align="center" filename="tokenize.png"/> <break lines="2"/> <blurb align="center" fontsize="6em">Syntax highlighting = Tokenizing</blurb> </slide> Index: presentations/slides/internals/opcode.xml +++ presentations/slides/internals/opcode.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Oparrays</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Oparrays</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Compiled code</bullet> <bullet>One for every script element</bullet> </list> <blurb> </blurb> <list fontsize="5em"> <bullet>Opcode</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Basic execution unit</bullet> <bullet>Two operands</bullet> <bullet>One result</bullet> </list> </slide> Index: presentations/slides/internals/opcode2.xml +++ presentations/slides/internals/opcode2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Diagram</title> <break lines="4"/> <image align="center" filename="compile.png"/> <break lines="2"/> </slide> Index: presentations/slides/internals/parse_error.xml +++ presentations/slides/internals/parse_error.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Lexical analyze script source</bullet> <bullet>Divide into logical blocks of characters</bullet> <bullet>Give special blocks a meaning</bullet> <bullet>%flex%</bullet> </list> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb>Our friend Mr Parse Error: </blurb> <example><![CDATA[Parse error: parse error, unexpected T_CLASS, expecting ',' or ';' in - on line 2 ]]></example> </slide> Index: presentations/slides/internals/questions.xml +++ presentations/slides/internals/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb align="center" marginleft="0" marginright="0" fontsize="60em">?</blurb> </slide> Index: presentations/slides/internals/resources.xml +++ presentations/slides/internals/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="12" /> <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://pres.derickrethans.nl" target="_new"/> <link fontsize="3em" marginleft="2em" leader="VLD site: " href="http://www.derickrethans.nl/vld.php" target="_new"/> <break lines="3" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/internals/title.xml +++ presentations/slides/internals/title.xml <slide template="titlepage" fontsize="3.5em"> <title>Welcome!</title> </slide> Index: presentations/slides/internals/tokenizer1.xml +++ presentations/slides/internals/tokenizer1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Example (1)</title> <blurb fontsize="4em">Tokenizer extension:</blurb> <blurb>magic.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php function apply_magic(&$a) { $a = $a + rand(0,3); } ? >]]></example> <blurb>tokenize.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php foreach (token_get_all($script) as $token) { if (count($token) == 2) { printf ("%-25s [%s]\n", token_name($token[0]), $token[1]); } else { printf ("%-25s [%s]\n", "", $token[0]); } } ? >]]></example> </slide> Index: presentations/slides/internals/tokenizer2.xml +++ presentations/slides/internals/tokenizer2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Example (2)</title> <example fontsize="1.2em"><![CDATA[<?php function apply_magic(&$a) { $a = $a + rand(0,3); } ? >]]></example> <example type="text" fontsize="1.1em"><![CDATA[T_OPEN_TAG [<?php\n] T_WHITESPACE [ ] T_FUNCTION [function] T_WHITESPACE [ ] T_STRING [apply_magic] [(] [&] T_VARIABLE [$a] [)] T_WHITESPACE [ ] [{] T_WHITESPACE [\n ] T_VARIABLE [$a] T_WHITESPACE [ ] [=] T_WHITESPACE [ ] T_VARIABLE [$a] T_WHITESPACE [ ] [+] T_WHITESPACE [ ] T_STRING [rand] [(] T_LNUMBER [0] [,] T_LNUMBER [3] [)] [;] T_WHITESPACE [\n ] [}] T_WHITESPACE [\n] T_CLOSE_TAG [? >]]]></example> </slide> Index: presentations/slides/internals/tokens.xml +++ presentations/slides/internals/tokens.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing: Tokens</title> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>The building blocks of a script</bullet> <bullet>Strings, variables, keywords</bullet> <bullet>Action rules:</bullet> </list> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <example fontsize="1.4em"><![CDATA[<ST_IN_SCRIPTING>"::" { return T_PAAMAYIM_NEKUDOTAYIM; }]]></example> <example fontsize="1.4em"><![CDATA[<ST_IN_SCRIPTING>{DNUM}|{EXPONENT_DNUM} { zendlval->value.dval = strtod(yytext, NULL); zendlval->type = IS_DOUBLE; return T_DNUMBER; }]]></example> </slide> Index: presentations/slides/internals/vld-example.xml +++ presentations/slides/internals/vld-example.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Example</title> <blurb>fibonacci.php:</blurb> <example fontsize="1.5em"><![CDATA[<?php $cache = array(); function fibonacci($nr) { global $cache; if (isset($cache[$nr])) { return $cache[$nr]; } switch ($nr) { case 0: die("Invalid Nr\n"); case 1: return 1; case 2: return 1; default: $r = fibonacci($nr - 2) + fibonacci($nr - 1); $cache[$nr] = $r; return $r; } } echo fibonacci($argv[1])."\n"; ? >]]></example> </slide> Index: presentations/slides/internals/vld1.xml +++ presentations/slides/internals/vld1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Break-down</title> <image align="center" filename="dump1.png"/> </slide> Index: presentations/slides/internals/vld2.xml +++ presentations/slides/internals/vld2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Compiling: Disassembler</title> <break lines="8"/> <list fontsize="5em"> <bullet>Disassembler: vld</bullet> <bullet>Dumps oparray per element:</bullet> </list> <list marginleft="3em" fontsize="4em"> <bullet>main script</bullet> <bullet>function</bullet> <bullet>class method</bullet> </list> </slide> Index: presentations/slides/xdebug/dbgp.xml +++ presentations/slides/xdebug/dbgp.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp mode</title> <break lines="2"/> <list fontsize="4em"> <bullet>Input commands as "command line parameters"</bullet> <bullet fontsize="2.5em">%|229922|property_get| *-n* $foo->property *-d* 2 *-i* 81%</bullet> <bullet>Output data as *documented* XML:</bullet> </list> <break /> <example><![CDATA[data_length [NULL] <response command="command_name" transaction_id="transaction_id"/> [NULL]]]></example> <break /> <list fontsize="4em"> <bullet>Cross-language: PHP, Python, Perl, Tcl, XSLT</bullet> <bullet>Supported in Xdebug 2</bullet> <bullet>Client implementation in Maguma Studio 2,</bullet> <bullet marginleft="16em" type="none">ActiveState's Komodo</bullet> </list> </slide> Index: presentations/slides/xdebug/functiontrace.xml +++ presentations/slides/xdebug/functiontrace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Execution trace</title> <break lines="3" /> <image filename="functiontrace.png" align="center"/> </slide> Index: presentations/slides/xdebug/gathering1.xml +++ presentations/slides/xdebug/gathering1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Gathering debug data 1</title> <blurb> </blurb> <list fontsize="5em"> <bullet>Functions and classnames</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Normal functions (strlen())</bullet> <bullet>Class members ($obj->strlen())</bullet> <bullet>Static class members (class::strlen())</bullet> <bullet>include/require/eval</bullet> </list> <list fontsize="5em"> <bullet>Parameters</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>From argument stack</bullet> <bullet>Converted to strings</bullet> </list> </slide> Index: presentations/slides/xdebug/gathering2.xml +++ presentations/slides/xdebug/gathering2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Gathering debug data 2</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list fontsize="5em"> <bullet>Memory footprint</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Script memory</bullet> <bullet>emalloc()</bullet> <bullet>--enable-memory-limit</bullet> </list> <list fontsize="5em"> <bullet>Time index</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>Simple profiling</bullet> </list> </slide> Index: presentations/slides/xdebug/gdb-xml.xml +++ presentations/slides/xdebug/gdb-xml.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>GDB mode/XML</title> <break lines="4"/> <list fontsize="5em"> <bullet>Input commands the same</bullet> <bullet>%option response_format 1%</bullet> <bullet>Output in 'proprietary' XML</bullet> <bullet>Easier parsing for debug clients...</bullet> </list> <list effect="slide" fontsize="5em"> <bullet type="none" marginleft="3em">... but not for people</bullet> </list> <break lines="5"/> <image filename="gdb-xml.png" align="center"/> </slide> Index: presentations/slides/xdebug/gdb.xml +++ presentations/slides/xdebug/gdb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>GDB mode</title> <break/> <image filename="debugclient.png" align="center"/> </slide> Index: presentations/slides/xdebug/how-started.xml +++ presentations/slides/xdebug/how-started.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>How did it start?</title> <break lines="12" /> <image filename="seg.png" align="center"/> </slide> Index: presentations/slides/xdebug/infinite.xml +++ presentations/slides/xdebug/infinite.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protection</title> <break lines="7" /> <image filename="infinite.png" align="center"/> </slide> Index: presentations/slides/xdebug/interfaces.xml +++ presentations/slides/xdebug/interfaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Remote Interfaces</title> <break/> <list fontsize="5em" marginleft="2em"> <bullet>PHP 3 debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>Port of the old remote debug dump</bullet> <bullet marginleft="5em" type="none">interface for PHP 3</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> <list fontsize="5em" marginleft="2em"> <bullet>GDB debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>GDB like environment</bullet> <bullet>Two output possibilities: plain text and XML</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> <list fontsize="5em" marginleft="2em"> <bullet>DBGp debugger mode</bullet> </list> <list fontsize="3.5em" marginleft="4em"> <bullet>Language independent</bullet> <bullet>Plain text in, XML out</bullet> <bullet>Available in Xdebug 2.x</bullet> </list> </slide> Index: presentations/slides/xdebug/questions.xml +++ presentations/slides/xdebug/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb align="center" marginleft="0" marginright="0" fontsize="60em">?</blurb> </slide> Index: presentations/slides/xdebug/resources.xml +++ presentations/slides/xdebug/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="3" /> <image align="center" filename="xdebug-logo.png" /> <break lines="6" /> <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://pres.derickrethans.nl" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Xdebug site: " href="http://xdebug.org" target="_new"/> <link fontsize="3em" marginleft="2em" leader="DBGp specification: " href="http://xdebug.org/docs-dbgp.php" target="_new"/> <break lines="3" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="derick@xdebug.org" target="_new"/> </slide> Index: presentations/slides/xdebug/stacktrace.xml +++ presentations/slides/xdebug/stacktrace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Stacktrace</title> <break lines="3" /> <image filename="stacktrace.png" align="center"/> </slide> Index: presentations/slides/xdebug/style.css +++ presentations/slides/xdebug/style.css <style title="Default" type="text/css"> body { font-size: 12pt; margin-left:1.5em; margin-right:0em; margin-bottom:0em; } ul { padding-top: 20; padding-left: 100; } tt { font-family: courier; } th.trace { font-family: arial; font-size: 12pt; } td.trace { font-family: arial; font-size: 12pt; } th.tracesml { font-family: arial; font-size: 9pt; } td.tracesml { font-family: arial; font-size: 9pt; } div.sticky { margin: 0; position: fixed; top: 0em; left: 0em; right: auto; bottom: auto; width: auto; } div.shadow { background: #777777; padding: 0.5em; } div.navbar { padding: 4; margin: 0; height: 6em; background-color: #22AA22; color: #3c5bb4; font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.emcode { background: #cccccc; border: thin solid #000000; padding: 0.5em; font-family: monospace; } div.output { font-family: monospace; background: #eeee33; border: thin solid #000000; padding: 0.5em; } table.index { background: #cccccc; border: thin dotted #000000; padding: 0.5em; font-family: monospace; } td.index { background: #cccccc; padding: 1em; font-family: monospace; } h1 { font-size: 2em; } p,li { font-size: 2.6em; } a { text-decoration: none; } a:hover { text-decoration: underline; } c2right { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : right; } c2left { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : left; } box { margin : 0 0 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; float : left; } </style> Index: presentations/slides/xdebug/title.xml +++ presentations/slides/xdebug/title.xml <slide template="titlepage" fontsize="3.5em"> <title>Welcome!</title> <break lines="3"/> <image align="center" filename="xdebug-logo.png" /> </slide> Index: presentations/slides/xdebug/vardump.xml +++ presentations/slides/xdebug/vardump.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>New var_dump()</title> <break lines="5" /> <image filename="var_dump.png" align="center"/> </slide>