summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-06-21 19:38:13 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-06-21 19:38:13 +0000
commit476cb350830bdb980906017ce89035a53a8a02e6 (patch)
treeec79f2c22cc10ffef1bab473ef114ec17f49e3f0
parentba8e371db1fdd31f88700d3464df7c331389326d (diff)
downloadphp-git-476cb350830bdb980906017ce89035a53a8a02e6.tar.gz
ini stuff was a bit broken
-rw-r--r--scripts/ext_skel_ng/php_global.php6
-rw-r--r--scripts/ext_skel_ng/php_ini.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/ext_skel_ng/php_global.php b/scripts/ext_skel_ng/php_global.php
index 83a0dea878..df74b2a073 100644
--- a/scripts/ext_skel_ng/php_global.php
+++ b/scripts/ext_skel_ng/php_global.php
@@ -33,7 +33,7 @@
static function c_code_header($name) {
- return "static void php_{name}_init_globals(zend_{name}_globals *{name}_globals)\n{\n";
+ return "static void php_{$name}_init_globals(zend_{$name}_globals *{$name}_globals)\n{\n";
}
function c_code($name) {
@@ -46,11 +46,11 @@
return $code;
}
- static function c_code_footer() {
+ static function c_code_footer($name) {
return "
}
-static void php_{name}_shutdown_globals(zend_{name}_globals *{name}_globals)
+static void php_{$name}_shutdown_globals(zend_{$name}_globals *{$name}_globals)
{
}";
}
diff --git a/scripts/ext_skel_ng/php_ini.php b/scripts/ext_skel_ng/php_ini.php
index 88da50ae28..3ac6e44fab 100644
--- a/scripts/ext_skel_ng/php_ini.php
+++ b/scripts/ext_skel_ng/php_ini.php
@@ -18,7 +18,7 @@
$this->value = $attr["value"];
$this->desc = $attr["desc"];
- switch ($attr["access"]) {
+ switch (@$attr["access"]) {
case "system":
$this->access = "PHP_INI_SYSTEM";
break;
@@ -70,7 +70,7 @@
}
function c_code($name) {
- return " STD_PHP_INI_ENTRY(\"{$name}.$name\", \"{$this->value}\", {$this->access}, {$this->onupdate}, $name, zend_{$name}_globals, {$name}_globals)\n";
+ return " STD_PHP_INI_ENTRY(\"$name.{$this->name}\", \"{$this->value}\", {$this->access}, {$this->onupdate}, {$this->name}, zend_{$name}_globals, {$name}_globals)\n";
}
static function c_code_footer() {