ini

package
v0.0.0-...-5eef1f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INI_NONE = 0
	INI_USER = 1 << iota
	INI_PERDIR
	INI_SYSTEM

	INI_ALL = INI_USER | INI_PERDIR | INI_SYSTEM
)

Variables

View Source
var Defaults = map[string]*IniDirective{}/* 390 elements not displayed */

Functions

func GetClass

func GetClass(ctx phpv.Context, name phpv.ZString, autoload bool) (phpv.ZClass, error)

func GetFunction

func GetFunction(ctx phpv.Context, name phpv.ZString) (phpv.Callable, error)

ideally, ini values will have a separate mini-compilers, but this will do for now

func New

func New() phpv.IniConfig

Types

type Config

type Config struct {
	Values map[string]*phpv.IniValue
}

func (*Config) CanIniSet

func (c *Config) CanIniSet(name phpv.ZString) bool

func (*Config) EvalConfigValue

func (c *Config) EvalConfigValue(ctx phpv.Context, expr phpv.ZString) (*phpv.ZVal, error)

func (*Config) Get

func (c *Config) Get(varName phpv.ZString) *phpv.IniValue

func (*Config) IterateConfig

func (c *Config) IterateConfig() iter.Seq2[string, phpv.IniValue]

func (*Config) LoadDefaults

func (c *Config) LoadDefaults(ctx phpv.Context)

func (*Config) Parse

func (c *Config) Parse(ctx phpv.Context, r io.Reader) error

func (*Config) RestoreConfig

func (c *Config) RestoreConfig(ctx phpv.Context, varName phpv.ZString)

func (*Config) SetGlobal

func (c *Config) SetGlobal(ctx phpv.Context, varName phpv.ZString, value *phpv.ZVal) *phpv.ZVal

func (*Config) SetLocal

func (c *Config) SetLocal(ctx phpv.Context, varName phpv.ZString, value *phpv.ZVal) *phpv.ZVal

type IniContext

type IniContext struct {
	phpv.GlobalContext
}

func (*IniContext) ConstantGet

func (ic *IniContext) ConstantGet(k phpv.ZString) (phpv.Val, bool)

func (*IniContext) Global

func (ic *IniContext) Global() phpv.GlobalContext

type IniDirective

type IniDirective struct {
	RawDefault string
	Mode       int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL