This PR: - moves state.go to its own module - moves the phpheaders test the phpheaders module - simplifies backoff.go - makes the backoff error instead of panic (so it can be tested) - removes some unused C structs
* refactor: rely on context.Context for log/slog and others * optimize * refactor * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix watcher-skip * better globals handling * fix --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Makes go arrays more consistent with PHP arrays. * NewAssociativeArray. * linting * go linting * Exposes all primitive types. * Removes pointer alias * linting * Optimizes hash update. * Fixes extgen tests. * Moves file to tests. * Fixes suggested by @dunglas. * Replaces 'interface{}' with 'any'. * Panics on wrong zval. * interface improvements as suggested by @dunglas. * Adjusts docs. * Adjusts docs. * Removes PackedArray alias and adjusts docs. * Updates docs.