summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-06-20 11:31:43 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-06-20 11:31:43 +0000
commitc687987f25fc3344da2b3804b20343e0d2cb0933 (patch)
tree1f9adc31448b12b0e96ab56d9471eac27ba294c0 /scripts
parent4debf9bb292c85ebcc34b280ccb263cc6c52ee5d (diff)
downloadphp-git-c687987f25fc3344da2b3804b20343e0d2cb0933.tar.gz
- package.xml genartion fixed, <configureoptions> and <license> added
- shutdown code for globals added
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ext_skel_ng/extension_parser.php20
-rw-r--r--scripts/ext_skel_ng/php_global.php7
2 files changed, 21 insertions, 6 deletions
diff --git a/scripts/ext_skel_ng/extension_parser.php b/scripts/ext_skel_ng/extension_parser.php
index 09ba750365..3a4a17dc15 100644
--- a/scripts/ext_skel_ng/extension_parser.php
+++ b/scripts/ext_skel_ng/extension_parser.php
@@ -710,7 +710,7 @@ PHP_MINIT_FUNCTION({$this->name})
";
if (count($this->globals)) {
- $code .= "\tZEND_INIT_MODULE_GLOBALS({$this->name}, php_{$this->name}_init_globals, NULL)\n";
+ $code .= "\tZEND_INIT_MODULE_GLOBALS({$this->name}, php_{$this->name}_init_globals, php_{$this->name}_shutdown_globals)\n";
$need_block = true;
}
@@ -1269,7 +1269,7 @@ you have been warned!
ob_start();
echo
-"<?xml version=\"1.0\" encoding=\"utf-8\">
+"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
<!DOCTYPE package SYSTEM \"../../package.dtd\">
<package>
<name>{$this->name}</name>
@@ -1283,6 +1283,16 @@ you have been warned!
echo " <description>\n".rtrim($this->description)."\n </description>\n";
}
+ if (isset($this->release['license'])) {
+ echo " <license>".$this->release['license']."</license>\n";
+ }
+
+ if (isset($this->with['attr'])) {
+ echo " <configureoptions>\n";
+ echo " <configureoption name=\"{$this->name}\" default=\"shared\" prompt=\"{$this->name} installation directory?\" />\n";
+ echo " </configureoptions>\n";
+ }
+
if (@is_array($this->users)) {
echo "\n <maintainers>\n";
foreach ($this->users as $user) {
@@ -1292,9 +1302,9 @@ you have been warned!
echo " <$key>{$user[$key]}</$key>\n";
}
}
- echo " <maintainer/>\n";
+ echo " </maintainer>\n";
}
- echo " <maintainers/>\n";
+ echo " </maintainers>\n";
}
if (is_array($this->release)) {
@@ -1304,7 +1314,7 @@ you have been warned!
echo " <$key>{$this->release[$key]}</$key>\n";
}
}
- echo " <release/>\n";
+ echo " </release>\n";
}
echo "\n <filelist>\n";
diff --git a/scripts/ext_skel_ng/php_global.php b/scripts/ext_skel_ng/php_global.php
index bec2082e09..83a0dea878 100644
--- a/scripts/ext_skel_ng/php_global.php
+++ b/scripts/ext_skel_ng/php_global.php
@@ -47,7 +47,12 @@
}
static function c_code_footer() {
- return "}\n\n";
+ return "
+}
+
+static void php_{name}_shutdown_globals(zend_{name}_globals *{name}_globals)
+{
+}";
}
static function h_code_header($name) {