cvs: php4 / README.SELF-CONTAINED-EXTENSIONS
| From: | Sascha Schumann | Date: | Thu, 08 Jun 2000 00:34:04 +0000 |
| Subject: | cvs: php4 / README.SELF-CONTAINED-EXTENSIONS | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80@lists.php.net to get a copy of this message | ||
sas Wed Jun 7 17:34:04 2000 EDT
Modified files:
/php4 README.SELF-CONTAINED-EXTENSIONS
Log:
Add note about using PHP_ARG_WITH/ENABLE
Index: php4/README.SELF-CONTAINED-EXTENSIONS
diff -u php4/README.SELF-CONTAINED-EXTENSIONS:1.4 php4/README.SELF-CONTAINED-EXTENSIONS:1.5
--- php4/README.SELF-CONTAINED-EXTENSIONS:1.4 Tue May 23 03:26:35 2000
+++ php4/README.SELF-CONTAINED-EXTENSIONS Wed Jun 7 17:34:04 2000
@@ -1,4 +1,4 @@
-$Id: README.SELF-CONTAINED-EXTENSIONS,v 1.4 2000/05/23 10:26:35 sas Exp $
+$Id: README.SELF-CONTAINED-EXTENSIONS,v 1.5 2000/06/08 00:34:04 sas Exp $
=============================================================================
HOW TO CREATE A SELF-CONTAINED PHP EXTENSION
@@ -93,12 +93,17 @@
PHP_ARG_ENABLE(foobar,whether to enable foobar,
[ --enable-foobar Enable foobar])
-PHP_EXTENSION(foobar, $ext_shared)
+if test "$PHP_FOOBAR" != "no"; then
+ PHP_EXTENSION(foobar, $ext_shared)
+fi
------------------------------------------------------------------------------
PHP_ARG_ENABLE will automatically set the correct variables, so
that the extension will be enabled by PHP_EXTENSION in shared mode.
+ Please use always PHP_ARG_ENABLE or PHP_ARG_WITH. Even if you do not
+ plan to distribute your module with PHP, these facilities allow you
+ to integrate your module easily into the main PHP module framework.
CREATING SOURCE FILES