com pecl/networking/uuid: cleaups: EXPERIMENTAL INSTALL README uuid.php
| From: | Remi Collet | Date: | Sat, 04 Apr 2015 05:19:57 +0000 |
| Subject: | com pecl/networking/uuid: cleaups: EXPERIMENTAL INSTALL README uuid.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-22010@lists.php.net to get a copy of this message | ||
Commit: 52487e6c46401cea8b48264401fad9805aaa02d0
Author: Remi Collet <remi@php.net> Sat, 4 Apr 2015 07:19:57 +0200
Parents: 05e7d61a7e12d39bf55b00fc119e3230bedffadb
Branches: master
Link: http://git.php.net/?p=pecl/networking/uuid.git;a=commitdiff;h=52487e6c46401cea8b48264401fad9805aaa02d0
Log:
cleaups
Changed paths:
D EXPERIMENTAL
A INSTALL
D README
M uuid.php
Diff:
diff --git a/EXPERIMENTAL b/EXPERIMENTAL
deleted file mode 100644
index 6443e99..0000000
--- a/EXPERIMENTAL
+++ /dev/null
@@ -1,5 +0,0 @@
-this extension is experimental,
-its functions may change their names
-or move to extension all together
-so do not rely to much on them
-you have been warned!
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..106d6ce
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,55 @@
+This is a standalone PHP extension created using CodeGen_PECL 1.1.3dev
+
+HACKING
+=======
+
+There are two ways to modify an extension created using CodeGen_PECL:
+
+1) you can modify the generated code as with any other PHP extension
+
+2) you can add custom code to the CodeGen_PECL XML source and re-run pecl-gen
+
+The 2nd approach may look a bit complicated but you have be aware that any
+manual changes to the generated code will be lost if you ever change the
+XML specs and re-run PECL-Gen. All changes done before have to be applied
+to the newly generated code again.
+Adding code snippets to the XML source itself on the other hand may be a
+bit more complicated but this way your custom code will always be in the
+generated code no matter how often you rerun CodeGen_PECL.
+
+
+BUILDING ON UNIX etc.
+=====================
+
+To compile your new extension, you will have to execute the following steps:
+
+1. $ ./phpize
+2. $ ./configure [--with-uuid=...]
+3. $ make
+4. $ make test
+5. $ [sudo] make install
+
+
+
+TESTING
+=======
+
+You can now load the extension using a php.ini directive
+
+ extension="uuid.[so|dll]"
+
+or load it at runtime using the dl() function
+
+ dl("uuid.[so|dll]");
+
+The extension should now be available, you can test this
+using the extension_loaded() function:
+
+ if (extension_loaded("uuid"))
+ echo "uuid loaded :)";
+ else
+ echo "something is wrong :(";
+
+The extension will also add its own block to the output
+of phpinfo();
+
diff --git a/README b/README
deleted file mode 100644
index 106d6ce..0000000
--- a/README
+++ /dev/null
@@ -1,55 +0,0 @@
-This is a standalone PHP extension created using CodeGen_PECL 1.1.3dev
-
-HACKING
-=======
-
-There are two ways to modify an extension created using CodeGen_PECL:
-
-1) you can modify the generated code as with any other PHP extension
-
-2) you can add custom code to the CodeGen_PECL XML source and re-run pecl-gen
-
-The 2nd approach may look a bit complicated but you have be aware that any
-manual changes to the generated code will be lost if you ever change the
-XML specs and re-run PECL-Gen. All changes done before have to be applied
-to the newly generated code again.
-Adding code snippets to the XML source itself on the other hand may be a
-bit more complicated but this way your custom code will always be in the
-generated code no matter how often you rerun CodeGen_PECL.
-
-
-BUILDING ON UNIX etc.
-=====================
-
-To compile your new extension, you will have to execute the following steps:
-
-1. $ ./phpize
-2. $ ./configure [--with-uuid=...]
-3. $ make
-4. $ make test
-5. $ [sudo] make install
-
-
-
-TESTING
-=======
-
-You can now load the extension using a php.ini directive
-
- extension="uuid.[so|dll]"
-
-or load it at runtime using the dl() function
-
- dl("uuid.[so|dll]");
-
-The extension should now be available, you can test this
-using the extension_loaded() function:
-
- if (extension_loaded("uuid"))
- echo "uuid loaded :)";
- else
- echo "something is wrong :(";
-
-The extension will also add its own block to the output
-of phpinfo();
-
diff --git a/uuid.php b/uuid.php
index 1c86dfe..f55e43b 100644
--- a/uuid.php
+++ b/uuid.php
@@ -1,4 +1,4 @@
-<?
+<?php
if(!extension_loaded('uuid')) {
dl('uuid.so');
}
@@ -9,9 +9,8 @@ foreach($functions as $func) {
echo $func."<br>\n";
}
echo "<br>\n";
-$function = 'confirm_' . $module . '_compiled';
if (extension_loaded($module)) {
- $str = $function($module);
+ $str = sprintf("Module %s version %s loaded", $module, phpversion($module));
} else {
$str = "Module $module is not compiled into PHP";
}