hholzgra Sat Jun 21 15:38:13 2003 EDT
Modified files:
/php4/scripts/ext_skel_ng php_ini.php php_global.php
Log:
ini stuff was a bit broken
Index: php4/scripts/ext_skel_ng/php_ini.php
diff -u php4/scripts/ext_skel_ng/php_ini.php:1.1
php4/scripts/ext_skel_ng/php_ini.php:1.2
--- php4/scripts/ext_skel_ng/php_ini.php:1.1 Sat Apr 26 11:05:01 2003
+++ php4/scripts/ext_skel_ng/php_ini.php Sat Jun 21 15:38:13 2003
@@ -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() {
Index: php4/scripts/ext_skel_ng/php_global.php
diff -u php4/scripts/ext_skel_ng/php_global.php:1.2
php4/scripts/ext_skel_ng/php_global.php:1.3
--- php4/scripts/ext_skel_ng/php_global.php:1.2 Fri Jun 20 07:31:43 2003
+++ php4/scripts/ext_skel_ng/php_global.php Sat Jun 21 15:38:13 2003
@@ -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)
{
}";
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php