cvs: presentations / migrating-ffm2004.xml /slides/migrating array_merge.xml automagic_objects.xml casting4.xml casting5.xml cli.xml clone-compat.xml
clone.xml comparing4.xml comparing5.xml compat-mode.xml constructors.xml define-before-use.xml e_strict.xml get_class.xml ip2long.xml mysql.xml
resources.xml signatures.xml strrpos.xml this.xml var_vs_public.xml versions.png /slides/perf ezp.css /slides/php5intro/nl newobjectmodel.xml
/slides/sqlite_mtl db2.sqlite

From: Date: Mon, 01 Nov 2004 11:00:58 +0000
Subject: cvs: presentations / migrating-ffm2004.xml /slides/migrating array_merge.xml automagic_objects.xml casting4.xml casting5.xml cli.xml clone-compat.xml
clone.xml comparing4.xml comparing5.xml compat-mode.xml constructors.xml define-before-use.xml e_strict.xml get_class.xml ip2long.xml mysql.xml
resources.xml signatures.xml strrpos.xml this.xml var_vs_public.xml versions.png /slides/perf ezp.css /slides/php5intro/nl newobjectmodel.xml
/slides/sqlite_mtl db2.sqlite
Groups: php.pres 
Request: Send a blank email to pres+get-1080@lists.php.net to get a copy of this message
derick Mon Nov 1 06:00:58 2004 EDT Added files: /presentations migrating-ffm2004.xml /presentations/slides/migrating constructors.xml define-before-use.xml ip2long.xml Modified files: /presentations/slides/migrating array_merge.xml automagic_objects.xml casting4.xml casting5.xml cli.xml clone-compat.xml clone.xml comparing4.xml comparing5.xml compat-mode.xml e_strict.xml get_class.xml mysql.xml resources.xml signatures.xml strrpos.xml this.xml var_vs_public.xml versions.png /presentations/slides/perf ezp.css /presentations/slides/php5intro/nl newobjectmodel.xml /presentations/slides/sqlite_mtl db2.sqlite Log: - Migrating from PHP 4 to PHP 5 presentation for PHP conference.

http://cvs.php.net/diff.php/presentations/slides/migrating/array_merge.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/array_merge.xml diff -u presentations/slides/migrating/array_merge.xml:1.1 presentations/slides/migrating/array_merge.xml:1.2 --- presentations/slides/migrating/array_merge.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/array_merge.xml Mon Nov 1 06:00:57 2004 @@ -2,33 +2,33 @@ <slide fontsize="6em"> <title>array_merge()</title> - <break lines="1"/> <blurb fontsize="4em"> array_merge() no longer accepts non-array parameters to merge. </blurb> - +<break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php - $scandinavia = array('Denmark', 'Norway', 'Sweden', 'Finland'); $uk = "The UK"; $europe = array_merge($scandinavia, $uk); print_r($europe); -? >]]></example> +?>]]></example> +<break lines="2"/> <blurb fontsize="2.5em">PHP 4:</blurb> - +<break/> <example fontsize="1em"><![CDATA[Array ( -[0] => Denmark -[1] => Norway -[2] => Sweden -[3] => Finland -[4] => The UK + [0] => Denmark + [1] => Norway + [2] => Sweden + [3] => Finland + [4] => The UK ) ]]></example> +<break lines="2"/> <blurb fontsize="2.5em">PHP 5:</blurb> - +<break/> <example fontsize="1.5em"><![CDATA[Warning: array_merge(): Argument #2 is not an array in - on line 7]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/automagic_objects.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/automagic_objects.xml diff -u presentations/slides/migrating/automagic_objects.xml:1.1 presentations/slides/migrating/automagic_objects.xml:1.2 --- presentations/slides/migrating/automagic_objects.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/automagic_objects.xml Mon Nov 1 06:00:57 2004 @@ -2,19 +2,19 @@ <slide fontsize="6em"> <title>Automagic Objects</title> - <break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php $country->name = 'Moldovia'; var_dump($country); -? >]]></example> +?>]]></example> - <break lines="2"/> +<break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> +<break/> <example fontsize="1.3em"><![CDATA[Strict Standards: Creating default object from empty value in - on line 2 - object(stdClass)#1 (1) { - ["name"]=> - string(8) "Moldovia" - }]]></example> +object(stdClass)#1 (1) { + ["name"]=> + string(8) "Moldovia" +}]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/casting4.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/casting4.xml diff -u presentations/slides/migrating/casting4.xml:1.1 presentations/slides/migrating/casting4.xml:1.2 --- presentations/slides/migrating/casting4.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/casting4.xml Mon Nov 1 06:00:57 2004 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Casting Objects</title> - - <blurb fontsize="3.5em">PHP 4</blurb> + <subtitle>PHP 4</subtitle> <example fontsize="1.3em"><![CDATA[<?php class Country { @@ -17,10 +16,9 @@ echo (int) $jurop, "\n"; echo (int) $dutchieland, "\n"; -? >]]></example> - - <blurb fontsize="2.5em">Output:</blurb> - +?>]]></example> +<break/> + <blurb fontsize="2.5em">output:</blurb> <example fontsize="1.3em"><![CDATA[0 1]]></example> http://cvs.php.net/diff.php/presentations/slides/migrating/casting5.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/casting5.xml diff -u presentations/slides/migrating/casting5.xml:1.1 presentations/slides/migrating/casting5.xml:1.2 --- presentations/slides/migrating/casting5.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/casting5.xml Mon Nov 1 06:00:57 2004 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Casting Objects</title> - - <blurb fontsize="3.5em">PHP 5</blurb> + <subtitle>PHP 5</subtitle> <example fontsize="1.3em"><![CDATA[<?php class Country { @@ -17,18 +16,17 @@ echo (int) $jurop, "\n"; echo (int) $dutchieland, "\n"; -? >]]></example> - - <blurb fontsize="2.5em">Output:</blurb> - - <example fontsize="1.3em"><![CDATA[Notice: Object of class Country could not be converted to integer in - on line 13 -1 -Notice: Object of class Country could not be converted to integer in - on line 14 -1]]></example> +?>]]></example> +<break/> + <blurb fontsize="2.5em">output:</blurb> + <example fontsize="1.3em"><![CDATA[Object id #1 +Object id #2 +]]></example> +<break lines="2"/> + <blurb>In PHP 5 *(int) $object* results in:</blurb> <list> - <bullet marginleft="0em">In PHP 5 *(int) $object* results in:</bullet> - <bullet marginleft="2em">A notice and always "1"</bullet> + <bullet marginleft="2em">"Object id #" + Object ID</bullet> <bullet marginleft="2em">unless *zend.ze1_compatibility_mode = 1*</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/cli.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/cli.xml diff -u presentations/slides/migrating/cli.xml:1.1 presentations/slides/migrating/cli.xml:1.2 --- presentations/slides/migrating/cli.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/cli.xml Mon Nov 1 06:00:57 2004 @@ -2,7 +2,6 @@ <slide fontsize="6em"> <title>Command Line Interface</title> - <break lines="3"/> <blurb fontsize="4em"> In the PHP 4 distributions you will find the following binaries: </blurb> http://cvs.php.net/diff.php/presentations/slides/migrating/clone-compat.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/clone-compat.xml diff -u presentations/slides/migrating/clone-compat.xml:1.1 presentations/slides/migrating/clone-compat.xml:1.2 --- presentations/slides/migrating/clone-compat.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/clone-compat.xml Mon Nov 1 06:00:57 2004 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Clone</title> + <subtitle>The Compatible Way</subtitle> - <blurb fontsize="3.5em">The Compatible Way</blurb> - + <blurb>%zend.ze1_compatibility_mode%:</blurb> <example fontsize="1.3em"><![CDATA[<?php ini_set('zend.ze1_compatibility_mode', '1'); @@ -25,9 +25,9 @@ echo $linux->name. "\n"; echo $win->name; -? >]]></example> - - <blurb fontsize="2.5em">Output:</blurb> +?>]]></example> +<break/> + <blurb fontsize="2.5em">output:</blurb> <example fontsize="1.3em"><![CDATA[linux windows]]></example> http://cvs.php.net/diff.php/presentations/slides/migrating/clone.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/clone.xml diff -u presentations/slides/migrating/clone.xml:1.1 presentations/slides/migrating/clone.xml:1.2 --- presentations/slides/migrating/clone.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/clone.xml Mon Nov 1 06:00:57 2004 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Clone</title> + <subtitle>The PHP 5 Way</subtitle> - <blurb fontsize="3.5em">The PHP 5 Way</blurb> - + <blurb fontsize="2.5em">%clone% keyword:</blurb> <example fontsize="1.3em"><![CDATA[<?php class OS { var $name; @@ -23,10 +23,10 @@ echo $linux->name. "\n"; echo $win->name; -? >]]></example> - - <blurb fontsize="2.5em">Output:</blurb> +?>]]></example> + <break/> + <blurb fontsize="2.5em">output:</blurb> <example fontsize="1.3em"><![CDATA[linux windows]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/comparing4.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/comparing4.xml diff -u presentations/slides/migrating/comparing4.xml:1.1 presentations/slides/migrating/comparing4.xml:1.2 --- presentations/slides/migrating/comparing4.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/comparing4.xml Mon Nov 1 06:00:57 2004 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Comparing Objects</title> - - <blurb fontsize="3.5em">PHP 4</blurb> + <subtitle>PHP 4</subtitle> <example fontsize="1.3em"><![CDATA[<?php class Country { @@ -19,13 +18,17 @@ if ($deutschland == $die_schweiz) { echo "Deutschland ist die Schweiz.\n"; } + if ($deutschland === $die_schweiz) { + echo "Deutschland ist die Schweiz.\n"; + } if ($deutschland == $norway) { echo "Deutschland er Norway.\n"; } -? >]]></example> +?>]]></example> +<break lines="2"/> + <blurb>In PHP 4 *$obj1 == $obj2* or *$obj1 === $obj2* results in *true*:</blurb> <list> - <bullet marginleft="0em">In PHP 4 *$obj1 == $obj2* results in *true*:</bullet> - <bullet effect="slide" marginleft="2em">when the object's properties are the same</bullet> + <bullet effect="hide" marginleft="2em">when the object's properties are the same</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/comparing5.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/comparing5.xml diff -u presentations/slides/migrating/comparing5.xml:1.1 presentations/slides/migrating/comparing5.xml:1.2 --- presentations/slides/migrating/comparing5.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/comparing5.xml Mon Nov 1 06:00:57 2004 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Comparing Objects</title> - - <blurb fontsize="3.5em">PHP 5</blurb> + <subtitle>PHP 5</subtitle> <example fontsize="1.3em"><![CDATA[<?php class Country { @@ -14,18 +13,22 @@ $deutschland = new Country('West Europe'); $die_schweiz = new Country('West Europe'); - $norway = new Country('Scandinavia'); if ($deutschland == $die_schweiz) { echo "Deutschland ist die Schweiz.\n"; } - if ($deutschland == $norway) { - echo "Deutschland er Norway.\n"; + if ($deutschland === $die_schweiz) { + echo "Deutschland ist die Schweiz.\n"; } -? >]]></example> +?>]]></example> +<break lines="2"/> + <blurb>In PHP 5 *$obj1 == $obj2* results in *true*:</blurb> + <list> + <bullet effect="hide" marginleft="2em">when the object's properties are the same</bullet> + </list> + <blurb>In PHP 5 *$obj1 === $obj2* results in *true*:</blurb> <list> - <bullet marginleft="0em">In PHP 5 *$obj1 == $obj2* results in *true*:</bullet> - <bullet effect="slide" marginleft="2em">when the object's *handles* are the same</bullet> + <bullet effect="hide" marginleft="2em">when the object's *handles* are the same</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/compat-mode.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/compat-mode.xml diff -u presentations/slides/migrating/compat-mode.xml:1.1 presentations/slides/migrating/compat-mode.xml:1.2 --- presentations/slides/migrating/compat-mode.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/compat-mode.xml Mon Nov 1 06:00:57 2004 @@ -2,7 +2,6 @@ <slide fontsize="6em"> <title>Compatibility Mode</title> - <break lines="4"/> <blurb fontsize="5em"> php.ini: </blurb> @@ -15,11 +14,7 @@ </blurb> <list fontsize="5em"> <bullet>cloning objects</bullet> - </list> - <list fontsize="5em"> <bullet>casting objects</bullet> - </list> - <list fontsize="5em"> <bullet>comparing objects</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/e_strict.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/e_strict.xml diff -u presentations/slides/migrating/e_strict.xml:1.1 presentations/slides/migrating/e_strict.xml:1.2 --- presentations/slides/migrating/e_strict.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/e_strict.xml Mon Nov 1 06:00:57 2004 @@ -2,7 +2,6 @@ <slide fontsize="6em"> <title>E_STRICT</title> - <break lines="4"/> <blurb fontsize="4em"> E_STRICT is a new error level. </blurb> http://cvs.php.net/diff.php/presentations/slides/migrating/get_class.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/migrating/get_class.xml diff -u presentations/slides/migrating/get_class.xml:1.2 presentations/slides/migrating/get_class.xml:1.3 --- presentations/slides/migrating/get_class.xml:1.2 Sat Aug 28 08:09:57 2004 +++ presentations/slides/migrating/get_class.xml Mon Nov 1 06:00:57 2004 @@ -2,7 +2,6 @@ <slide fontsize="6em"> <title>get_class()</title> - <break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php class TheNetherlands { var $area; @@ -14,16 +13,19 @@ $holland = new TheNetherlands('Holland'); echo get_class($holland), "\n"; -? >]]></example> +?>]]></example> - <break lines="2"/> +<break lines="2"/> <blurb fontsize="3.5em">PHP 4:</blurb> +<break/> <example fontsize="1.3em"><![CDATA[thenetherlands]]></example> - <break lines="2"/> +<break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> +<break/> <example fontsize="1.3em"><![CDATA[TheNetherlands]]></example> +<break lines="2"/> <blurb fontsize="3.5"> The same is true for get_parent_class() and get_class_methods(). </blurb> http://cvs.php.net/diff.php/presentations/slides/migrating/mysql.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/mysql.xml diff -u presentations/slides/migrating/mysql.xml:1.1 presentations/slides/migrating/mysql.xml:1.2 --- presentations/slides/migrating/mysql.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/mysql.xml Mon Nov 1 06:00:57 2004 @@ -2,21 +2,19 @@ <slide fontsize="6em"> <title>Changes in MySQL</title> - <break lines="4"/> <blurb fontsize="4em"> In PHP 5 the MySQL client library is no longer bundled because: </blurb> <list fontsize="4em"> - <bullet>Maintainability</bullet> - <bullet>License change</bullet> - <bullet>Problems with other modules</bullet> + <bullet>Most systems have the library installed</bullet> + <bullet>Multiple versions of libraries can cause problems (mod_auth_mysql)</bullet> + <bullet>Maintainability of the bundled library</bullet> + <bullet>libmysql changed license to GPL, which means we can not bundle it with PHP anymore.</bullet> </list> - <break lines="2"/> - <blurb fontsize="4em"> - Solution: +<break lines="2"/> + <blurb>Solution:</blurb> + <blurb> + Install the MySQL client libraries and add %--with-mysql=[DIR]% to + ./configure </blurb> - <list fontsize="4em"> - <bullet>Install the MySQL client libraries</bullet> - <bullet>--with-mysql=[DIR]</bullet> - </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/resources.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/migrating/resources.xml diff -u presentations/slides/migrating/resources.xml:1.2 presentations/slides/migrating/resources.xml:1.3 --- presentations/slides/migrating/resources.xml:1.2 Tue May 4 03:57:27 2004 +++ presentations/slides/migrating/resources.xml Mon Nov 1 06:00:57 2004 @@ -10,6 +10,6 @@ <break lines="5" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> - <link fontsize="3em" marginleft="2em" leader="PHP 4 to 5 Migration manual page: " href="http://www.php.net/manual/en/migration5.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="PHP 4 to 5 Migration manual page: " href="http://php.net/migration5" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="derick@php.net" target="_new"/> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/signatures.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/signatures.xml diff -u presentations/slides/migrating/signatures.xml:1.1 presentations/slides/migrating/signatures.xml:1.2 --- presentations/slides/migrating/signatures.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/signatures.xml Mon Nov 1 06:00:57 2004 @@ -2,7 +2,6 @@ <slide fontsize="6em"> <title>Signatures</title> - <break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php class Scandinavia { function get_countries() { @@ -17,10 +16,11 @@ } } } -? >]]></example> +?>]]></example> - <break lines="2"/> +<break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> +<break/> <example fontsize="1.3em"><![CDATA[Strict Standards: Declaration of Europe::get_countries() should be compatible with that of Scandinavia::get_countries() in - on line 14]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/strrpos.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/migrating/strrpos.xml diff -u presentations/slides/migrating/strrpos.xml:1.2 presentations/slides/migrating/strrpos.xml:1.3 --- presentations/slides/migrating/strrpos.xml:1.2 Tue May 4 03:49:58 2004 +++ presentations/slides/migrating/strrpos.xml Mon Nov 1 06:00:57 2004 @@ -2,25 +2,27 @@ <slide fontsize="6em"> <title>strrpos() and strripos()</title> - <break lines="4"/> <blurb fontsize="4em"> strr(i)pos() now searches the full needle inside the haystack, and not only the first character of it. </blurb> +<break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php $haystack = "There are now ten more countries in Europe"; $needle = "The Netherlands"; $pos = strrpos($haystack, $needle); var_dump($pos); -? <]]></example> +?>]]></example> +<break lines="2"/> <blurb fontsize="2.5em">PHP 4:</blurb> - +<break/> <example fontsize="1em"><![CDATA[int(0)]]></example> +<break lines="2"/> <blurb fontsize="2.5em">PHP 5:</blurb> - +<break/> <example fontsize="1em"><![CDATA[bool(false)]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/this.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/this.xml diff -u presentations/slides/migrating/this.xml:1.1 presentations/slides/migrating/this.xml:1.2 --- presentations/slides/migrating/this.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/this.xml Mon Nov 1 06:00:57 2004 @@ -2,24 +2,20 @@ <slide fontsize="6em"> <title>Assigning to $this</title> - <break lines="4"/> - <blurb fontsize="4em"> - PEAR uses this for two things mainly: - </blurb> + <blurb fontsize="4em">PEAR uses this for two things mainly:</blurb> <list marginleft="-2em" fontsize="3.5em"> - <bullet type="none">1. returning errors from constructors (*$this = PEAR_Error();*)</bullet> - <bullet type="none">2. driver model (*$this = new Slider('Pager');*)</bullet> + <bullet class="pres_bullet_nr">returning errors from constructors (*$this = PEAR_Error();*)</bullet> + <bullet class="pres_bullet_nr">driver model (*$this = new Slider('Pager');*)</bullet> </list> + <break /> - <blurb fontsize="4em"> - This is no longer allowed in PHP 5, so the classes should be redesigned. - </blurb> + <blurb fontsize="4em">This is no longer allowed in PHP 5, so the classes should be redesigned.</blurb> + <break lines="3"/> - <blurb fontsize="4em"> - Solutions (not compatible with PHP 4). - </blurb> + <blurb fontsize="4em">Solutions (not compatible with PHP 4).</blurb> + <list marginleft="-2em" fontsize="3.5em"> - <bullet type="none">1. Use Exceptions</bullet> - <bullet type="none">2. driver model (*$this = new Slider('Pager');*)</bullet> + <bullet class="pres_bullet_nr">Use Exceptions</bullet> + <bullet class="pres_bullet_nr">driver model (*$this = new Slider('Pager');*)</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/var_vs_public.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/var_vs_public.xml diff -u presentations/slides/migrating/var_vs_public.xml:1.1 presentations/slides/migrating/var_vs_public.xml:1.2 --- presentations/slides/migrating/var_vs_public.xml:1.1 Sat May 1 15:29:50 2004 +++ presentations/slides/migrating/var_vs_public.xml Mon Nov 1 06:00:57 2004 @@ -2,19 +2,19 @@ <slide fontsize="6em"> <title>var vs. public</title> - <break lines="2"/> <example fontsize="1.3em"><![CDATA[<?php class Russia { var $local_name; function Russia() { - $this->local_name = "Roosjia"; + $this->local_name = "Roosija"; } } -? >]]></example> +?>]]></example> - <break lines="2"/> +<break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> +<break/> <example fontsize="1.3em"><![CDATA[Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in - on line 3]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/migrating/versions.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/migrating/versions.png http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.9&r2=1.10&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.9 presentations/slides/perf/ezp.css:1.10 --- presentations/slides/perf/ezp.css:1.9 Wed Sep 22 15:39:38 2004 +++ presentations/slides/perf/ezp.css Mon Nov 1 06:00:58 2004 @@ -68,6 +68,12 @@ margin-right: 40px; } +li.pres_bullet_nr { +font-size: 28pt; +margin-right: 40px; +list-style-type: decimal; +} + ul.large div li.pres_bullet { font-size: 40pt; http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/newobjectmodel.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/php5intro/nl/newobjectmodel.xml diff -u presentations/slides/php5intro/nl/newobjectmodel.xml:1.3 presentations/slides/php5intro/nl/newobjectmodel.xml:1.4 --- presentations/slides/php5intro/nl/newobjectmodel.xml:1.3 Sat May 1 15:29:50 2004 +++ presentations/slides/php5intro/nl/newobjectmodel.xml Mon Nov 1 06:00:58 2004 @@ -3,8 +3,8 @@ <title>Objectmodel in PHP 5</title> <break lines="1" /> - <image align="center" filename="newoo.png" /> - + <image align="right" filename="newoo.png" /> + <break lines="32"/> <list marginleft="2em" fontsize="3.5em"> <bullet>Pass by reference</bullet> <bullet>Objects are referenced by a handle.</bullet> http://cvs.php.net/diff.php/presentations/slides/sqlite_mtl/db2.sqlite?r1=1.1&r2=1.2&ty=u Index: presentations/slides/sqlite_mtl/db2.sqlite http://cvs.php.net/co.php/presentations/migrating-ffm2004.xml?r=1.1&p=1 Index: presentations/migrating-ffm2004.xml +++ presentations/migrating-ffm2004.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>PHP 5</topic> <title>Migrating from PHP 4 to PHP 5</title> <event>Intl. PHP Conference</event> <location>Amsterdam, the Netherlands</location> <date>Nov 9, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/migrating-ffm2004</url> <slide>slides/migrating/title.xml</slide> <slide>slides/php5intro/nl/oldobjectmodel2.xml</slide> <slide>slides/php5intro/nl/newobjectmodel.xml</slide> <slide>slides/migrating/clone.xml</slide> <slide>slides/migrating/clone-compat.xml</slide> <slide>slides/migrating/casting4.xml</slide> <slide>slides/migrating/casting5.xml</slide> <slide>slides/migrating/comparing4.xml</slide> <slide>slides/migrating/comparing5.xml</slide> <slide>slides/migrating/compat-mode.xml</slide> <slide>slides/migrating/e_strict.xml</slide> <slide>slides/migrating/this.xml</slide> <slide>slides/migrating/constructors.xml</slide> <slide>slides/migrating/get_class.xml</slide> <slide>slides/migrating/var_vs_public.xml</slide> <slide>slides/migrating/automagic_objects.xml</slide> <slide>slides/migrating/signatures.xml</slide> <slide>slides/migrating/define-before-use.xml</slide> <slide>slides/migrating/array_merge.xml</slide> <slide>slides/migrating/strrpos.xml</slide> <slide>slides/migrating/ip2long.xml</slide> <slide>slides/migrating/cli.xml</slide> <slide>slides/migrating/mysql.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/migrating/resources.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/migrating/constructors.xml?r=1.1&p=1 Index: presentations/slides/migrating/constructors.xml +++ presentations/slides/migrating/constructors.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>constructors</title> <example fontsize="1.3em"><![CDATA[<?php class Weather { var $temperature; function __construct($temp) { echo "New version\n"; } function Weather($temp) { echo "Old version\n"; } } $w = new Weather(7); ?>]]></example> <break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> <break/> <example fontsize="1.3em"><![CDATA[Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in - on line 3 Strict Standards: Redefining already defined constructor for class Weather in - on line 9 New version ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/migrating/define-before-use.xml?r=1.1&p=1 Index: presentations/slides/migrating/define-before-use.xml +++ presentations/slides/migrating/define-before-use.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Define classes before using them</title> <blurb>In PHP 4 it was never necessary to define a class before using it in your code, although it would decrease script execution times a bit. The same is true for PHP 5, but if you are using Interfaces in your code, then you are *required* to define a class before using it.</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/migrating/ip2long.xml?r=1.1&p=1 Index: presentations/slides/migrating/ip2long.xml +++ presentations/slides/migrating/ip2long.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>ip2long()</title> <example fontsize="1.3em"><![CDATA[<?php $ips = array("129.51.31.51", "129.256.13.15", "255.255.255.255"); foreach ($ips as $ip) { $v = ip2long($ip); printf("%s %u\n", var_export($v, true), $v); } ?>]]></example> <break lines="2"/> <blurb fontsize="3.5em">PHP 4:</blurb> <break/> <example fontsize="1.3em"><![CDATA[-2127356109 2167611187 -1 4294967295 -1 4294967295]]></example> <break lines="2"/> <blurb fontsize="3.5em">PHP 5:</blurb> <break/> <example fontsize="1.3em"><![CDATA[-2127356109 2167611187 false 0 -1 4294967295]]></example> </slide>
« previous php.pres (#1080) next »