cvs: presentations / vancouver-ext.xml /slides/ze-ext code-check.xml config-m4-check.xml config-m4-phpize.xml config-m4-search.xml
protos-generate.xml protos-ident.xml resources-vancouver.xml
| From: | Derick Rethans | Date: | Fri, 23 Jan 2004 23:27:33 +0000 |
| Subject: | cvs: presentations / vancouver-ext.xml /slides/ze-ext code-check.xml config-m4-check.xml config-m4-phpize.xml config-m4-search.xml protos-generate.xml protos-ident.xml resources-vancouver.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-959@lists.php.net to get a copy of this message | ||
derick Fri Jan 23 18:27:33 2004 EDT
Added files:
/presentations vancouver-ext.xml
/presentations/slides/ze-ext protos-ident.xml
resources-vancouver.xml
Modified files:
/presentations/slides/ze-ext code-check.xml config-m4-check.xml
config-m4-phpize.xml
config-m4-search.xml
protos-generate.xml
Log:
- Extension writing talk commit
http://cvs.php.net/diff.php/presentations/slides/ze-ext/code-check.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/code-check.xml diff -u presentations/slides/ze-ext/code-check.xml:1.1 presentations/slides/ze-ext/code-check.xml:1.2 --- presentations/slides/ze-ext/code-check.xml:1.1 Mon Dec 9 04:48:03 2002 +++ presentations/slides/ze-ext/code-check.xml Fri Jan 23 18:27:33 2004 @@ -9,14 +9,14 @@ ... Libraries have been installed in: - /dat/dev/php/aalib/modules]]></example> + /dat/dev/php/my_ext_name/modules]]></example> <blurb> </blurb> <blurb>Test library:</blurb> - <example fontsize="1.4em"><![CDATA[# php -r 'dl("/dat/dev/php/aalib/modules/aalib.so"); - echo "\n".confirm_aalib_compiled("aalib")."\n";']]></example> + <example fontsize="1.4em"><![CDATA[# php -r 'dl("/dat/dev/php/my_ext_name/modules/my_ext_name.so"); + echo "\n".confirm_my_ext_name_compiled("my_ext_name")."\n";']]></example> <blurb> </blurb> <blurb>Output:</blurb> - <example fontsize="1.4em"><![CDATA[Congratulations! You have successfully modified ext/aalib/config.m4. Module aalib is now compiled into PHP.]]></example> + <example fontsize="1.4em"><![CDATA[Congratulations! You have successfully modified ext/my_ext_name/config.m4. Module my_ext_name is now compiled into PHP.]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-check.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-check.xml diff -u presentations/slides/ze-ext/config-m4-check.xml:1.1 presentations/slides/ze-ext/config-m4-check.xml:1.2 --- presentations/slides/ze-ext/config-m4-check.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-check.xml Fri Jan 23 18:27:33 2004 @@ -4,24 +4,24 @@ <blurb>config.m4</blurb> <blurb fontsize="2em"><![CDATA[<pre> -<a name="line28">28</a> PHP_ADD_INCLUDE($AALIB_DIR/<strong>include</strong>) +<a name="line28">28</a> PHP_ADD_INCLUDE($MY_EXT_NAME_DIR/<strong>include</strong>) <a name="line29">29</a> -<a name="line30">30</a> LIBNAME=aalib <font color="#444444"># you may want to change this</font> +<a name="line30">30</a> LIBNAME=my_ext_name <font color="#444444"># you may want to change this</font> <a name="line31">31</a> LIBSYMBOL=aa_init <font color="#444444"># you most likely want to change this </font> <a name="line32">32</a> <a name="line33">33</a> PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, <a name="line34">34</a> [ -<a name="line35">35</a> PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $AALIB_DIR/lib, AALIB_SHARED_LIBADD) -<a name="line36">36</a> AC_DEFINE(HAVE_AALIBLIB,1,[ ]) +<a name="line35">35</a> PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $MY_EXT_NAME_DIR/lib, MY_EXT_NAME_SHARED_LIBADD) +<a name="line36">36</a> AC_DEFINE(HAVE_MY_EXT_NAMELIB,1,[ ]) <a name="line37">37</a> ],[ -<a name="line38">38</a> AC_MSG_ERROR([wrong aalib lib version or lib not found]) +<a name="line38">38</a> AC_MSG_ERROR([wrong my_ext_name lib version or lib not found]) <a name="line39">39</a> ],[ -<a name="line40">40</a> -L$AALIB_DIR/lib -lm -ldl +<a name="line40">40</a> -L$MY_EXT_NAME_DIR/lib -lm -ldl <a name="line41">41</a> ]) <a name="line42">42</a> -<a name="line43">43</a> PHP_SUBST(AALIB_SHARED_LIBADD) +<a name="line43">43</a> PHP_SUBST(MY_EXT_NAME_SHARED_LIBADD) <a name="line44">44</a> -<a name="line45">45</a> PHP_NEW_EXTENSION(aalib, aalib.c, $ext_shared) +<a name="line45">45</a> PHP_NEW_EXTENSION(my_ext_name, my_ext_name.c, $ext_shared) <a name="line46">46</a> fi </pre> ]]></blurb> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-phpize.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-phpize.xml diff -u presentations/slides/ze-ext/config-m4-phpize.xml:1.1 presentations/slides/ze-ext/config-m4-phpize.xml:1.2 --- presentations/slides/ze-ext/config-m4-phpize.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-phpize.xml Fri Jan 23 18:27:33 2004 @@ -6,13 +6,13 @@ <list fontsize="4em"> <bullet>Copy our newly created extension to some other place:</bullet> </list> - <example fontsize="1.7em"><![CDATA[# mv ext/aalib /dat/dev/php]]></example> + <example fontsize="1.7em"><![CDATA[# mv ext/my_ext_name /dat/dev/php]]></example> <blurb></blurb> <list fontsize="4em"> <bullet>Go to the new directory and run phpize:</bullet> </list> - <example fontsize="1.7em"><![CDATA[# cd /dat/dev/php/aalib + <example fontsize="1.7em"><![CDATA[# cd /dat/dev/php/my_ext_name # phpize ]]></example> @@ -20,10 +20,9 @@ <list fontsize="4em"> <bullet>You should see the following output (or similar):</bullet> </list> - <example fontsize="1.7em"><![CDATA[You should update your `aclocal.m4' by running aclocal. -Configuring for: - PHP Api Version: 20020918 - Zend Module Api No: 20020429 - Zend Extension Api No: 20021010 + <example fontsize="1.7em"><![CDATA[Configuring for: +PHP Api Version: 20031224 +Zend Module Api No: 20020429 +Zend Extension Api No: 90021012 ]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-search.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-search.xml diff -u presentations/slides/ze-ext/config-m4-search.xml:1.1 presentations/slides/ze-ext/config-m4-search.xml:1.2 --- presentations/slides/ze-ext/config-m4-search.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-search.xml Fri Jan 23 18:27:33 2004 @@ -10,28 +10,28 @@ </head> <body bgcolor="#ffffff" text="#000000"> <pre> -<a name="line4"> 4</a> PHP_ARG_WITH(aalib, for aalib support, -<a name="line5"> 5</a> [ --with-aalib Include aalib support]) +<a name="line4"> 4</a> PHP_ARG_WITH(my_ext_name, for my_ext_name support, +<a name="line5"> 5</a> [ --with-my_ext_name Include my_ext_name support]) <a name="line6"> 6</a> -<a name="line7"> 7</a> if test "$PHP_AALIB" != "no"; then +<a name="line7"> 7</a> if test "$PHP_MY_EXT_NAME" != "no"; then <a name="line8"> 8</a> <a name="line9"> 9</a> SEARCH_PATH="/usr/local /usr" <font color="#444444"># you might want to change this</font> -<a name="line10">10</a> SEARCH_FOR="/<strong>include</strong>/aalib.h" <font color="#444444"># you most likely want to change this</font> -<a name="line11">11</a> if test -r $PHP_AALIB/$SEARCH_FOR; then <font color="#444444"># path given as parameter</font> -<a name="line12">12</a> AALIB_DIR=$PHP_AALIB +<a name="line10">10</a> SEARCH_FOR="/<strong>include</strong>/my_ext_name.h" <font color="#444444"># you most likely want to change this</font> +<a name="line11">11</a> if test -r $PHP_MY_EXT_NAME/$SEARCH_FOR; then <font color="#444444"># path given as parameter</font> +<a name="line12">12</a> MY_EXT_NAME_DIR=$PHP_MY_EXT_NAME <a name="line13">13</a> else <font color="#444444"># search default path list</font> -<a name="line14">14</a> AC_MSG_CHECKING([for aalib files in default path]) +<a name="line14">14</a> AC_MSG_CHECKING([for my_ext_name files in default path]) <a name="line15">15</a> for i in $SEARCH_PATH ; do <a name="line16">16</a> if test -r $i/$SEARCH_FOR; then -<a name="line17">17</a> AALIB_DIR=$i +<a name="line17">17</a> MY_EXT_NAME_DIR=$i <a name="line18">18</a> AC_MSG_RESULT(found in $i) <a name="line19">19</a> fi <a name="line20">20</a> done <a name="line21">21</a> fi <a name="line22">22</a> -<a name="line23">23</a> if test -z "$AALIB_DIR"; then +<a name="line23">23</a> if test -z "$MY_EXT_NAME_DIR"; then <a name="line24">24</a> AC_MSG_RESULT([not found]) -<a name="line25">25</a> AC_MSG_ERROR([Please reinstall the aalib distribution]) +<a name="line25">25</a> AC_MSG_ERROR([Please reinstall the my_ext_name distribution]) <a name="line26">26</a> fi </pre> </body> http://cvs.php.net/diff.php/presentations/slides/ze-ext/protos-generate.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/ze-ext/protos-generate.xml diff -u presentations/slides/ze-ext/protos-generate.xml:1.2 presentations/slides/ze-ext/protos-generate.xml:1.3 --- presentations/slides/ze-ext/protos-generate.xml:1.2 Mon Dec 9 04:48:03 2002 +++ presentations/slides/ze-ext/protos-generate.xml Fri Jan 23 18:27:33 2004 @@ -4,17 +4,17 @@ <blurb> </blurb> <list fontsize="4.4em"> - <bullet>Go to the php4/ext directory</bullet> + <bullet>Go to the php5/ext directory</bullet> <bullet>Execute the following command:</bullet> </list> <blurb></blurb> - <example fontsize="1.7em"><![CDATA[# ./ext_skel --extname=aalib --proto=/path/to/protofile]]></example> + <example fontsize="1.7em"><![CDATA[# ./ext_skel --extname=my_ext_name --proto=/path/to/protofile]]></example> <list fontsize="4.4em"> <bullet>This produces the following source files:</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>config.m4</bullet> - <bullet>aalib.c</bullet> - <bullet>php_aalib.h</bullet> + <bullet>my_ext_name.c</bullet> + <bullet>php_my_ext_name.h</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/vancouver-ext.xml?r=1.1&p=1 Index: presentations/vancouver-ext.xml +++ presentations/vancouver-ext.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/ze-ext/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>Extention Writing</title> <event>Vancouver PHP Conference</event> <location>Vancouver, Canada</location> <date>January 22nd, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/extention-vancouver</url> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/ze-ext/protos-ident.xml</slide> <slide>slides/ze-ext/protos-generate.xml</slide> <slide>slides/ze-ext/config-m4-search.xml</slide> <slide>slides/ze-ext/config-m4-check.xml</slide> <slide>slides/ze-ext/config-m4-phpize.xml</slide> <slide>slides/ze-ext/config-m4-run2.xml</slide> <slide>slides/ze-ext/code-remove-stuff.xml</slide> <slide>slides/ze-ext/code-resource-create.xml</slide> <slide>slides/ze-ext/code-resource-dtor.xml</slide> <slide>slides/ze-ext/code-resource-fetch.xml</slide> <slide>slides/ze-ext/code-check.xml</slide> <slide>slides/ze-ext/parameter-parsing-api1.xml</slide> <slide>slides/ze-ext/parameter-parsing-api2.xml</slide> <slide>slides/ze-ext/code-return-others.xml</slide> <slide>slides/ze-ext/code-return-array.xml</slide> <slide>slides/ze-ext/code-return-nested-array.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/ze-ext/resources-vancouver.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/ze-ext/protos-ident.xml?r=1.1&p=1 Index: presentations/slides/ze-ext/protos-ident.xml +++ presentations/slides/ze-ext/protos-ident.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Prototypes</title> <blurb> </blurb> <blurb>protos</blurb> <example fontsize="1.5em"><![CDATA[return_type function_name(type1 param1, type2 param2 [, type3 param3]) Description]]></example> <blurb>Types:</blurb> <list> <bullet>bool</bullet> <bullet>int</bullet> <bullet>string</bullet> <bullet>float</bullet> <bullet>array</bullet> <bullet>object</bullet> <bullet>resource</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/ze-ext/resources-vancouver.xml?r=1.1&p=1 Index: presentations/slides/ze-ext/resources-vancouver.xml +++ presentations/slides/ze-ext/resources-vancouver.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="18"/> <link fontsize="2em" marginleft="5em" leader="Internals list: " href="mailto:internals@lists.php.net" target="_new"/> <link fontsize="2em" marginleft="5em" leader="PECL list: " href="mailto:pecl-dev@lists.php.net" target="_new"/> <link fontsize="2em" marginleft="5em" leader="These Slides: " href="http://pres.derickrethans.nl/encryption-vancouver" target="_new"/> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide>
http://cvs.php.net/diff.php/presentations/slides/ze-ext/code-check.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/code-check.xml diff -u presentations/slides/ze-ext/code-check.xml:1.1 presentations/slides/ze-ext/code-check.xml:1.2 --- presentations/slides/ze-ext/code-check.xml:1.1 Mon Dec 9 04:48:03 2002 +++ presentations/slides/ze-ext/code-check.xml Fri Jan 23 18:27:33 2004 @@ -9,14 +9,14 @@ ... Libraries have been installed in: - /dat/dev/php/aalib/modules]]></example> + /dat/dev/php/my_ext_name/modules]]></example> <blurb> </blurb> <blurb>Test library:</blurb> - <example fontsize="1.4em"><![CDATA[# php -r 'dl("/dat/dev/php/aalib/modules/aalib.so"); - echo "\n".confirm_aalib_compiled("aalib")."\n";']]></example> + <example fontsize="1.4em"><![CDATA[# php -r 'dl("/dat/dev/php/my_ext_name/modules/my_ext_name.so"); + echo "\n".confirm_my_ext_name_compiled("my_ext_name")."\n";']]></example> <blurb> </blurb> <blurb>Output:</blurb> - <example fontsize="1.4em"><![CDATA[Congratulations! You have successfully modified ext/aalib/config.m4. Module aalib is now compiled into PHP.]]></example> + <example fontsize="1.4em"><![CDATA[Congratulations! You have successfully modified ext/my_ext_name/config.m4. Module my_ext_name is now compiled into PHP.]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-check.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-check.xml diff -u presentations/slides/ze-ext/config-m4-check.xml:1.1 presentations/slides/ze-ext/config-m4-check.xml:1.2 --- presentations/slides/ze-ext/config-m4-check.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-check.xml Fri Jan 23 18:27:33 2004 @@ -4,24 +4,24 @@ <blurb>config.m4</blurb> <blurb fontsize="2em"><![CDATA[<pre> -<a name="line28">28</a> PHP_ADD_INCLUDE($AALIB_DIR/<strong>include</strong>) +<a name="line28">28</a> PHP_ADD_INCLUDE($MY_EXT_NAME_DIR/<strong>include</strong>) <a name="line29">29</a> -<a name="line30">30</a> LIBNAME=aalib <font color="#444444"># you may want to change this</font> +<a name="line30">30</a> LIBNAME=my_ext_name <font color="#444444"># you may want to change this</font> <a name="line31">31</a> LIBSYMBOL=aa_init <font color="#444444"># you most likely want to change this </font> <a name="line32">32</a> <a name="line33">33</a> PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, <a name="line34">34</a> [ -<a name="line35">35</a> PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $AALIB_DIR/lib, AALIB_SHARED_LIBADD) -<a name="line36">36</a> AC_DEFINE(HAVE_AALIBLIB,1,[ ]) +<a name="line35">35</a> PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $MY_EXT_NAME_DIR/lib, MY_EXT_NAME_SHARED_LIBADD) +<a name="line36">36</a> AC_DEFINE(HAVE_MY_EXT_NAMELIB,1,[ ]) <a name="line37">37</a> ],[ -<a name="line38">38</a> AC_MSG_ERROR([wrong aalib lib version or lib not found]) +<a name="line38">38</a> AC_MSG_ERROR([wrong my_ext_name lib version or lib not found]) <a name="line39">39</a> ],[ -<a name="line40">40</a> -L$AALIB_DIR/lib -lm -ldl +<a name="line40">40</a> -L$MY_EXT_NAME_DIR/lib -lm -ldl <a name="line41">41</a> ]) <a name="line42">42</a> -<a name="line43">43</a> PHP_SUBST(AALIB_SHARED_LIBADD) +<a name="line43">43</a> PHP_SUBST(MY_EXT_NAME_SHARED_LIBADD) <a name="line44">44</a> -<a name="line45">45</a> PHP_NEW_EXTENSION(aalib, aalib.c, $ext_shared) +<a name="line45">45</a> PHP_NEW_EXTENSION(my_ext_name, my_ext_name.c, $ext_shared) <a name="line46">46</a> fi </pre> ]]></blurb> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-phpize.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-phpize.xml diff -u presentations/slides/ze-ext/config-m4-phpize.xml:1.1 presentations/slides/ze-ext/config-m4-phpize.xml:1.2 --- presentations/slides/ze-ext/config-m4-phpize.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-phpize.xml Fri Jan 23 18:27:33 2004 @@ -6,13 +6,13 @@ <list fontsize="4em"> <bullet>Copy our newly created extension to some other place:</bullet> </list> - <example fontsize="1.7em"><![CDATA[# mv ext/aalib /dat/dev/php]]></example> + <example fontsize="1.7em"><![CDATA[# mv ext/my_ext_name /dat/dev/php]]></example> <blurb></blurb> <list fontsize="4em"> <bullet>Go to the new directory and run phpize:</bullet> </list> - <example fontsize="1.7em"><![CDATA[# cd /dat/dev/php/aalib + <example fontsize="1.7em"><![CDATA[# cd /dat/dev/php/my_ext_name # phpize ]]></example> @@ -20,10 +20,9 @@ <list fontsize="4em"> <bullet>You should see the following output (or similar):</bullet> </list> - <example fontsize="1.7em"><![CDATA[You should update your `aclocal.m4' by running aclocal. -Configuring for: - PHP Api Version: 20020918 - Zend Module Api No: 20020429 - Zend Extension Api No: 20021010 + <example fontsize="1.7em"><![CDATA[Configuring for: +PHP Api Version: 20031224 +Zend Module Api No: 20020429 +Zend Extension Api No: 90021012 ]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/ze-ext/config-m4-search.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/ze-ext/config-m4-search.xml diff -u presentations/slides/ze-ext/config-m4-search.xml:1.1 presentations/slides/ze-ext/config-m4-search.xml:1.2 --- presentations/slides/ze-ext/config-m4-search.xml:1.1 Wed Dec 4 16:07:22 2002 +++ presentations/slides/ze-ext/config-m4-search.xml Fri Jan 23 18:27:33 2004 @@ -10,28 +10,28 @@ </head> <body bgcolor="#ffffff" text="#000000"> <pre> -<a name="line4"> 4</a> PHP_ARG_WITH(aalib, for aalib support, -<a name="line5"> 5</a> [ --with-aalib Include aalib support]) +<a name="line4"> 4</a> PHP_ARG_WITH(my_ext_name, for my_ext_name support, +<a name="line5"> 5</a> [ --with-my_ext_name Include my_ext_name support]) <a name="line6"> 6</a> -<a name="line7"> 7</a> if test "$PHP_AALIB" != "no"; then +<a name="line7"> 7</a> if test "$PHP_MY_EXT_NAME" != "no"; then <a name="line8"> 8</a> <a name="line9"> 9</a> SEARCH_PATH="/usr/local /usr" <font color="#444444"># you might want to change this</font> -<a name="line10">10</a> SEARCH_FOR="/<strong>include</strong>/aalib.h" <font color="#444444"># you most likely want to change this</font> -<a name="line11">11</a> if test -r $PHP_AALIB/$SEARCH_FOR; then <font color="#444444"># path given as parameter</font> -<a name="line12">12</a> AALIB_DIR=$PHP_AALIB +<a name="line10">10</a> SEARCH_FOR="/<strong>include</strong>/my_ext_name.h" <font color="#444444"># you most likely want to change this</font> +<a name="line11">11</a> if test -r $PHP_MY_EXT_NAME/$SEARCH_FOR; then <font color="#444444"># path given as parameter</font> +<a name="line12">12</a> MY_EXT_NAME_DIR=$PHP_MY_EXT_NAME <a name="line13">13</a> else <font color="#444444"># search default path list</font> -<a name="line14">14</a> AC_MSG_CHECKING([for aalib files in default path]) +<a name="line14">14</a> AC_MSG_CHECKING([for my_ext_name files in default path]) <a name="line15">15</a> for i in $SEARCH_PATH ; do <a name="line16">16</a> if test -r $i/$SEARCH_FOR; then -<a name="line17">17</a> AALIB_DIR=$i +<a name="line17">17</a> MY_EXT_NAME_DIR=$i <a name="line18">18</a> AC_MSG_RESULT(found in $i) <a name="line19">19</a> fi <a name="line20">20</a> done <a name="line21">21</a> fi <a name="line22">22</a> -<a name="line23">23</a> if test -z "$AALIB_DIR"; then +<a name="line23">23</a> if test -z "$MY_EXT_NAME_DIR"; then <a name="line24">24</a> AC_MSG_RESULT([not found]) -<a name="line25">25</a> AC_MSG_ERROR([Please reinstall the aalib distribution]) +<a name="line25">25</a> AC_MSG_ERROR([Please reinstall the my_ext_name distribution]) <a name="line26">26</a> fi </pre> </body> http://cvs.php.net/diff.php/presentations/slides/ze-ext/protos-generate.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/ze-ext/protos-generate.xml diff -u presentations/slides/ze-ext/protos-generate.xml:1.2 presentations/slides/ze-ext/protos-generate.xml:1.3 --- presentations/slides/ze-ext/protos-generate.xml:1.2 Mon Dec 9 04:48:03 2002 +++ presentations/slides/ze-ext/protos-generate.xml Fri Jan 23 18:27:33 2004 @@ -4,17 +4,17 @@ <blurb> </blurb> <list fontsize="4.4em"> - <bullet>Go to the php4/ext directory</bullet> + <bullet>Go to the php5/ext directory</bullet> <bullet>Execute the following command:</bullet> </list> <blurb></blurb> - <example fontsize="1.7em"><![CDATA[# ./ext_skel --extname=aalib --proto=/path/to/protofile]]></example> + <example fontsize="1.7em"><![CDATA[# ./ext_skel --extname=my_ext_name --proto=/path/to/protofile]]></example> <list fontsize="4.4em"> <bullet>This produces the following source files:</bullet> </list> <list fontsize="4em" marginleft="2em"> <bullet>config.m4</bullet> - <bullet>aalib.c</bullet> - <bullet>php_aalib.h</bullet> + <bullet>my_ext_name.c</bullet> + <bullet>php_my_ext_name.h</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/vancouver-ext.xml?r=1.1&p=1 Index: presentations/vancouver-ext.xml +++ presentations/vancouver-ext.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/ze-ext/style.css" backgroundfixed="1" > <topic>Internals</topic> <title>Extention Writing</title> <event>Vancouver PHP Conference</event> <location>Vancouver, Canada</location> <date>January 22nd, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/extention-vancouver</url> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/ze-ext/protos-ident.xml</slide> <slide>slides/ze-ext/protos-generate.xml</slide> <slide>slides/ze-ext/config-m4-search.xml</slide> <slide>slides/ze-ext/config-m4-check.xml</slide> <slide>slides/ze-ext/config-m4-phpize.xml</slide> <slide>slides/ze-ext/config-m4-run2.xml</slide> <slide>slides/ze-ext/code-remove-stuff.xml</slide> <slide>slides/ze-ext/code-resource-create.xml</slide> <slide>slides/ze-ext/code-resource-dtor.xml</slide> <slide>slides/ze-ext/code-resource-fetch.xml</slide> <slide>slides/ze-ext/code-check.xml</slide> <slide>slides/ze-ext/parameter-parsing-api1.xml</slide> <slide>slides/ze-ext/parameter-parsing-api2.xml</slide> <slide>slides/ze-ext/code-return-others.xml</slide> <slide>slides/ze-ext/code-return-array.xml</slide> <slide>slides/ze-ext/code-return-nested-array.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/ze-ext/resources-vancouver.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/ze-ext/protos-ident.xml?r=1.1&p=1 Index: presentations/slides/ze-ext/protos-ident.xml +++ presentations/slides/ze-ext/protos-ident.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Prototypes</title> <blurb> </blurb> <blurb>protos</blurb> <example fontsize="1.5em"><![CDATA[return_type function_name(type1 param1, type2 param2 [, type3 param3]) Description]]></example> <blurb>Types:</blurb> <list> <bullet>bool</bullet> <bullet>int</bullet> <bullet>string</bullet> <bullet>float</bullet> <bullet>array</bullet> <bullet>object</bullet> <bullet>resource</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/ze-ext/resources-vancouver.xml?r=1.1&p=1 Index: presentations/slides/ze-ext/resources-vancouver.xml +++ presentations/slides/ze-ext/resources-vancouver.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="18"/> <link fontsize="2em" marginleft="5em" leader="Internals list: " href="mailto:internals@lists.php.net" target="_new"/> <link fontsize="2em" marginleft="5em" leader="PECL list: " href="mailto:pecl-dev@lists.php.net" target="_new"/> <link fontsize="2em" marginleft="5em" leader="These Slides: " href="http://pres.derickrethans.nl/encryption-vancouver" target="_new"/> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide>