├── API-0.1.0 ├── CREDITS ├── EXPERIMENTAL ├── README ├── RELEASE-0.1.0 ├── config.m4 ├── config.w32 ├── myext.c ├── myext.php ├── package.xml ├── php_myext.h └── tests └── 001.phpt /API-0.1.0: -------------------------------------------------------------------------------- 1 | Package myext API release notes for version 0.1.0. -------------------------------------------------------------------------------- /CREDITS: -------------------------------------------------------------------------------- 1 | ;; put your info here 2 | Your Name [handle] (lead) -------------------------------------------------------------------------------- /EXPERIMENTAL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickallaert/PHP_Extension_Workshop/da6df350c1351a31ba5da86594ba18a4302f3677/EXPERIMENTAL -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Extension package myext summary 2 | 3 | Detailed description (edit README to change this) -------------------------------------------------------------------------------- /RELEASE-0.1.0: -------------------------------------------------------------------------------- 1 | Package myext release notes for version 0.1.0. -------------------------------------------------------------------------------- /config.m4: -------------------------------------------------------------------------------- 1 | dnl config.m4 for myext 2 | 3 | PHP_ARG_ENABLE(myext, whether to enable myext support, 4 | [ --enable-myext Enable myext support]) 5 | 6 | if test "$PHP_MYEXT" != "no"; then 7 | PHP_NEW_EXTENSION(myext, myext.c, $ext_shared) 8 | fi 9 | -------------------------------------------------------------------------------- /config.w32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickallaert/PHP_Extension_Workshop/da6df350c1351a31ba5da86594ba18a4302f3677/config.w32 -------------------------------------------------------------------------------- /myext.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | 5 | #include "php.h" 6 | #include "php_myext.h" 7 | 8 | 9 | /* {{{ myext_module_entry 10 | */ 11 | zend_module_entry myext_module_entry = { 12 | STANDARD_MODULE_HEADER, 13 | "myext", 14 | NULL, /* Function entries */ 15 | NULL, /* Module init */ 16 | NULL, /* Module shutdown */ 17 | NULL, /* Request init */ 18 | NULL, /* Request shutdown */ 19 | NULL, /* Module information */ 20 | "0.1", /* Replace with version number for your extension */ 21 | STANDARD_MODULE_PROPERTIES 22 | }; 23 | /* }}} */ 24 | 25 | #ifdef COMPILE_DL_MYEXT 26 | ZEND_GET_MODULE(myext) 27 | #endif 28 | -------------------------------------------------------------------------------- /myext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickallaert/PHP_Extension_Workshop/da6df350c1351a31ba5da86594ba18a4302f3677/myext.php -------------------------------------------------------------------------------- /package.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | myext 4 | pecl.php.net 5 | Extension package myext summary 6 | 7 | 8 | Detailed description (edit README to change this) 9 | 10 | Your Name 11 | handle 12 | handle@php.net 13 | yes 14 | 15 | 2011-09-25 16 | 17 | 18 | 0.1.0 19 | 0.1.0 20 | 21 | 22 | alpha 23 | alpha 24 | 25 | New BSD License 26 | Package myext release notes for version 0.1.0. 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 5.2.0 42 | 43 | 44 | 1.4.8 45 | 46 | 47 | 48 | myext 49 | 50 | 51 | -------------------------------------------------------------------------------- /php_myext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickallaert/PHP_Extension_Workshop/da6df350c1351a31ba5da86594ba18a4302f3677/php_myext.h -------------------------------------------------------------------------------- /tests/001.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickallaert/PHP_Extension_Workshop/da6df350c1351a31ba5da86594ba18a4302f3677/tests/001.phpt --------------------------------------------------------------------------------