From 476cb350830bdb980906017ce89035a53a8a02e6 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Sat, 21 Jun 2003 19:38:13 +0000 Subject: [PATCH] ini stuff was a bit broken --- scripts/ext_skel_ng/php_global.php | 6 +++--- scripts/ext_skel_ng/php_ini.php | 4 ++-- 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 83a0dea878c..df74b2a073b 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 88da50ae284..3ac6e44fab2 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() {