cvs: presentations / fowa2.xml /slides/fowa workshop_agenda.xml /slides/intro mig1.xml mig2.xml mig4.xml mig5.xml mig6.xml mig7.xml
| From: | Rasmus Lerdorf | Date: | Thu, 22 Feb 2007 00:20:15 +0000 |
| Subject: | cvs: presentations / fowa2.xml /slides/fowa workshop_agenda.xml /slides/intro mig1.xml mig2.xml mig4.xml mig5.xml mig6.xml mig7.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1382@lists.php.net to get a copy of this message | ||
rasmus Thu Feb 22 00:20:15 2007 UTC
Added files:
/presentations fowa2.xml
/presentations/slides/fowa workshop_agenda.xml
/presentations/slides/intro mig1.xml mig2.xml mig4.xml mig5.xml
mig6.xml mig7.xml
Log:
FOWA workshop and migration slides mostly stolen from Ilia
http://cvs.php.net/viewvc.cgi/presentations/fowa2.xml?view=markup&rev=1.1 Index: presentations/fowa2.xml +++ presentations/fowa2.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <topic>Yahoo!</topic> <title>PHP Workshop</title> <event>FOWA 2007</event> <location>London</location> <date>Feb.22, 2007</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://php.corp.yahoo.com/show/fowa2</url> <slide>slides/intro/titlepage.xml</slide> <slide>slides/fowa/workshop_agenda.xml</slide> <slide>slides/bm06/profit.xml</slide> <slide>slides/bm06/initial.xml</slide> <slide>slides/bm06/pg.xml</slide> <slide>slides/bm06/pg_persist.xml</slide> <slide>slides/bm06/mysql.xml</slide> <slide>slides/bm06/apc.xml</slide> <slide>slides/bm06/apc2.xml</slide> <slide>slides/intro/php5.xml</slide> <slide>slides/intro/php5_refclone.xml</slide> <slide>slides/intro/php5_construct.xml</slide> <slide>slides/intro/php5_private.xml</slide> <slide>slides/intro/php5_protected.xml</slide> <slide>slides/intro/php5_setget.xml</slide> <slide>slides/intro/php5_call.xml</slide> <slide>slides/intro/php5_exceptions.xml</slide> <slide>slides/intro/streams.xml</slide> <slide>slides/intro/stream_select.xml</slide> <slide>slides/intro/sqlite1.xml</slide> <slide>slides/intro/sqlite2.xml</slide> <slide>slides/intro/xml_eg.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/atom_google.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/geoflickr.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/ws8.xml</slide> <slide>slides/intro/ws9.xml</slide> <slide>slides/intro/ajax_upload1.xml</slide> <slide>slides/intro/ajax_upload2.xml</slide> <slide>slides/intro/security_title.xml</slide> <slide>slides/intro/xss.xml</slide> <slide>slides/intro/xss1.xml</slide> <slide>slides/intro/xss2.xml</slide> <slide>slides/intro/xss_common.xml</slide> <slide>slides/intro/the_web_is_broken.xml</slide> <slide>slides/intro/xss_risks.xml</slide> <slide>slides/intro/input_filter2.xml</slide> <slide>slides/intro/mig1.xml</slide> <slide>slides/intro/mig2.xml</slide> <slide>slides/intro/mig4.xml</slide> <slide>slides/intro/mig5.xml</slide> <slide>slides/intro/mig6.xml</slide> <slide>slides/intro/mig7.xml</slide> <slide>slides/intro/web2_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/fowa/workshop_agenda.xml?view=markup&rev=1.1 Index: presentations/slides/fowa/workshop_agenda.xml +++ presentations/slides/fowa/workshop_agenda.xml <slide title="Agenda"> <break lines="2" /> <blurb marginleft="150px" fontsize="5em"> Profiling and Performance</blurb> <blurb marginleft="150px" fontsize="5em"> New things in PHP 5</blurb> <blurb marginleft="150px" fontsize="5em"> Ajax Examples</blurb> <blurb marginleft="150px" fontsize="5em"> Security</blurb> <blurb marginleft="150px" fontsize="5em"> Migrating from PHP 4 to PHP 5</blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig1.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig1.xml +++ presentations/slides/intro/mig1.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="XML Handling" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Replace old domxml parsers with SimpleXML or new dom</bullet> <bullet> Replace old SAX parsers with xmlreader</bullet> <bullet> Replace PEAR SOAP or NuSOAP with new SOAP extension</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig2.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig2.xml +++ presentations/slides/intro/mig2.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="MySQL" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Consider moving to PDO or mysqli</bullet> <bullet> Old ext/mysql extension still works fine</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig4.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig4.xml +++ presentations/slides/intro/mig4.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="Minor Changes" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Completely rewritten date/time handling code</bullet> <bullet> New E_STRICT (5.1.x) and E_RECOVERABLE (5.2.x) error levels </bullet> <bullet> Improved memory manager (5.2.x)</bullet> <bullet> Optimized a number of string manipulation functions (5.2.x)</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig5.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig5.xml +++ presentations/slides/intro/mig5.xml <slide title="Migrating to PHP 5"> <blurb title="Minor OOP Changes" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet>by-ref instead of by-value objects as already discussed</bullet> <bullet>*var* keyword is synonymous with *public*</bullet> <bullet>old-style constructors still work</bullet> <bullet>is_a() is going away, use instanceof operator</bullet> </list> <example title="Converting Objects to strings in 5.2.x"><![CDATA[<?php echo (string)new stdClass; // Results in Object id #1 before 5.2.x // E_RECOVERABLE_ERROR in 5.2.x // Use a __tostring() method to explicitly define the conversion ?>]]></example> <example title="Don't re-assign $this"><![CDATA[<?php class foo { function bar($obj) { $this = $obj; // Fatal error in 5.x } } ?>]]></example> <example title="Case kept in object info calls"><![CDATA[<?php class Foo { function BaR() { } } class Xyz extends Foo { } $a = new xyz; echo get_class($a); print_r(get_class_methods($a)); echo get_parent_class($a); ?>]]></example> <example title="A valid class is no longer empty"><![CDATA[<?php $a = new stdClass; var_dump(empty($a)); // true in PHP 4, false in PHP 5 ?>]]></example> <example title="Avoid is_a()"><![CDATA[<?php $a = new stdClass; var_dump(empty($a)); // true in PHP 4, false in PHP 5 ?>]]></example> <example title="E_STRICT on static method calls"><![CDATA[<?php class foo { function bar() { echo "Bar"; } } foo::bar(); // Non-static method foo::bar() should not be called statically ?>]]></example> <example title="Redefining consts in 5.2.x"><![CDATA[<?php class foo { const foo = "bar"; const foo = "baz"; // Fatal error in 5.2.x } echo foo::foo; ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig6.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig6.xml +++ presentations/slides/intro/mig6.xml <slide title="Migrating to PHP 5"> <blurb title="Other Minor Changes" fontsize="4em"> </blurb> <example title="Stricter type checks on array handling"><![CDATA[<?php $a = "test"; $a[1][2][3] = "a"; // Warning in PHP 4, Fatal in 5.x array_merge("string",123); // Warning in 5.x ?>]]></example> <example title="strrpos() works now"><![CDATA[<?php echo strrpos("kangaroo","an"); // Returns 4 in PHP 4 // Returns 1 in PHP 5 ?>]]></example> <example title="ip2long has been fixed"><![CDATA[<?php var_dump(ip2long("000.000.998.889")); // -1 in PHP 4, false in PHP 5 var_dump(ip2long("255.255.255.255")); // -1 in PHP 4, -1 in PHP 5 ?>]]></example> <example title="Don't use {} for string offsets"><![CDATA[<?php $a = "foo"; $a{0} = "F"; ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig7.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig7.xml +++ presentations/slides/intro/mig7.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <example title="A lint check across your code could help" type="shell"><![CDATA[ find /source/directory \ -name \*.php -o -name \*.inc -o \*.html \ | xargs -n1 \ php -ddisplay_errors=1 -derror_reporting=8191 -l ]]></example> <break lines="2" /> <blurb fontsize="5em">Resources</blurb> <link marginleft="2em" fontsize="4em" href="http://php.net/migration5">http://php.net/migration5</link> <link marginleft="2em" fontsize="4em" href="http://www.php.net/UPDATE_5_2.txt">http://www.php.net/UPDATE_5_2.txt</link> </slide>
http://cvs.php.net/viewvc.cgi/presentations/fowa2.xml?view=markup&rev=1.1 Index: presentations/fowa2.xml +++ presentations/fowa2.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <topic>Yahoo!</topic> <title>PHP Workshop</title> <event>FOWA 2007</event> <location>London</location> <date>Feb.22, 2007</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://php.corp.yahoo.com/show/fowa2</url> <slide>slides/intro/titlepage.xml</slide> <slide>slides/fowa/workshop_agenda.xml</slide> <slide>slides/bm06/profit.xml</slide> <slide>slides/bm06/initial.xml</slide> <slide>slides/bm06/pg.xml</slide> <slide>slides/bm06/pg_persist.xml</slide> <slide>slides/bm06/mysql.xml</slide> <slide>slides/bm06/apc.xml</slide> <slide>slides/bm06/apc2.xml</slide> <slide>slides/intro/php5.xml</slide> <slide>slides/intro/php5_refclone.xml</slide> <slide>slides/intro/php5_construct.xml</slide> <slide>slides/intro/php5_private.xml</slide> <slide>slides/intro/php5_protected.xml</slide> <slide>slides/intro/php5_setget.xml</slide> <slide>slides/intro/php5_call.xml</slide> <slide>slides/intro/php5_exceptions.xml</slide> <slide>slides/intro/streams.xml</slide> <slide>slides/intro/stream_select.xml</slide> <slide>slides/intro/sqlite1.xml</slide> <slide>slides/intro/sqlite2.xml</slide> <slide>slides/intro/xml_eg.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/atom_google.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/geoflickr.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/ws8.xml</slide> <slide>slides/intro/ws9.xml</slide> <slide>slides/intro/ajax_upload1.xml</slide> <slide>slides/intro/ajax_upload2.xml</slide> <slide>slides/intro/security_title.xml</slide> <slide>slides/intro/xss.xml</slide> <slide>slides/intro/xss1.xml</slide> <slide>slides/intro/xss2.xml</slide> <slide>slides/intro/xss_common.xml</slide> <slide>slides/intro/the_web_is_broken.xml</slide> <slide>slides/intro/xss_risks.xml</slide> <slide>slides/intro/input_filter2.xml</slide> <slide>slides/intro/mig1.xml</slide> <slide>slides/intro/mig2.xml</slide> <slide>slides/intro/mig4.xml</slide> <slide>slides/intro/mig5.xml</slide> <slide>slides/intro/mig6.xml</slide> <slide>slides/intro/mig7.xml</slide> <slide>slides/intro/web2_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/fowa/workshop_agenda.xml?view=markup&rev=1.1 Index: presentations/slides/fowa/workshop_agenda.xml +++ presentations/slides/fowa/workshop_agenda.xml <slide title="Agenda"> <break lines="2" /> <blurb marginleft="150px" fontsize="5em"> Profiling and Performance</blurb> <blurb marginleft="150px" fontsize="5em"> New things in PHP 5</blurb> <blurb marginleft="150px" fontsize="5em"> Ajax Examples</blurb> <blurb marginleft="150px" fontsize="5em"> Security</blurb> <blurb marginleft="150px" fontsize="5em"> Migrating from PHP 4 to PHP 5</blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig1.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig1.xml +++ presentations/slides/intro/mig1.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="XML Handling" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Replace old domxml parsers with SimpleXML or new dom</bullet> <bullet> Replace old SAX parsers with xmlreader</bullet> <bullet> Replace PEAR SOAP or NuSOAP with new SOAP extension</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig2.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig2.xml +++ presentations/slides/intro/mig2.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="MySQL" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Consider moving to PDO or mysqli</bullet> <bullet> Old ext/mysql extension still works fine</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig4.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig4.xml +++ presentations/slides/intro/mig4.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <blurb title="Minor Changes" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet> Completely rewritten date/time handling code</bullet> <bullet> New E_STRICT (5.1.x) and E_RECOVERABLE (5.2.x) error levels </bullet> <bullet> Improved memory manager (5.2.x)</bullet> <bullet> Optimized a number of string manipulation functions (5.2.x)</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig5.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig5.xml +++ presentations/slides/intro/mig5.xml <slide title="Migrating to PHP 5"> <blurb title="Minor OOP Changes" fontsize="4em"> </blurb> <list fontsize="4em"> <bullet>by-ref instead of by-value objects as already discussed</bullet> <bullet>*var* keyword is synonymous with *public*</bullet> <bullet>old-style constructors still work</bullet> <bullet>is_a() is going away, use instanceof operator</bullet> </list> <example title="Converting Objects to strings in 5.2.x"><![CDATA[<?php echo (string)new stdClass; // Results in Object id #1 before 5.2.x // E_RECOVERABLE_ERROR in 5.2.x // Use a __tostring() method to explicitly define the conversion ?>]]></example> <example title="Don't re-assign $this"><![CDATA[<?php class foo { function bar($obj) { $this = $obj; // Fatal error in 5.x } } ?>]]></example> <example title="Case kept in object info calls"><![CDATA[<?php class Foo { function BaR() { } } class Xyz extends Foo { } $a = new xyz; echo get_class($a); print_r(get_class_methods($a)); echo get_parent_class($a); ?>]]></example> <example title="A valid class is no longer empty"><![CDATA[<?php $a = new stdClass; var_dump(empty($a)); // true in PHP 4, false in PHP 5 ?>]]></example> <example title="Avoid is_a()"><![CDATA[<?php $a = new stdClass; var_dump(empty($a)); // true in PHP 4, false in PHP 5 ?>]]></example> <example title="E_STRICT on static method calls"><![CDATA[<?php class foo { function bar() { echo "Bar"; } } foo::bar(); // Non-static method foo::bar() should not be called statically ?>]]></example> <example title="Redefining consts in 5.2.x"><![CDATA[<?php class foo { const foo = "bar"; const foo = "baz"; // Fatal error in 5.2.x } echo foo::foo; ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig6.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig6.xml +++ presentations/slides/intro/mig6.xml <slide title="Migrating to PHP 5"> <blurb title="Other Minor Changes" fontsize="4em"> </blurb> <example title="Stricter type checks on array handling"><![CDATA[<?php $a = "test"; $a[1][2][3] = "a"; // Warning in PHP 4, Fatal in 5.x array_merge("string",123); // Warning in 5.x ?>]]></example> <example title="strrpos() works now"><![CDATA[<?php echo strrpos("kangaroo","an"); // Returns 4 in PHP 4 // Returns 1 in PHP 5 ?>]]></example> <example title="ip2long has been fixed"><![CDATA[<?php var_dump(ip2long("000.000.998.889")); // -1 in PHP 4, false in PHP 5 var_dump(ip2long("255.255.255.255")); // -1 in PHP 4, -1 in PHP 5 ?>]]></example> <example title="Don't use {} for string offsets"><![CDATA[<?php $a = "foo"; $a{0} = "F"; ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/mig7.xml?view=markup&rev=1.1 Index: presentations/slides/intro/mig7.xml +++ presentations/slides/intro/mig7.xml <slide title="Migrating to PHP 5"> <break lines="2" /> <example title="A lint check across your code could help" type="shell"><![CDATA[ find /source/directory \ -name \*.php -o -name \*.inc -o \*.html \ | xargs -n1 \ php -ddisplay_errors=1 -derror_reporting=8191 -l ]]></example> <break lines="2" /> <blurb fontsize="5em">Resources</blurb> <link marginleft="2em" fontsize="4em" href="http://php.net/migration5">http://php.net/migration5</link> <link marginleft="2em" fontsize="4em" href="http://www.php.net/UPDATE_5_2.txt">http://www.php.net/UPDATE_5_2.txt</link> </slide>