Repository navigation
The v0.6.0 release of phpscript contains 50 commits since v0.5.0. The changes focus on an HTTP server written in PHP with a runtime per request, callable values and closures that travel across a call, Go-to-PHP interop through typed closures, and the lint, godoc and package-layout ratchets the pipeline enforces.
pie title v0.6.0 commits by category
"feature" : 10
"fix" : 7
"docs" : 6
"build" : 4
"chore" : 4
"test" : 2
"perf" : 1
"refactor" : 1
"update" : 1
"other" : 14
Changelog
feature
- 22fa5b4 feat(stdlib/regexp): bind Go regexp as the Regexp namespace (#119)
- fd5e67c feat: PHP 8.1 first-class callable syntax, callable(...) (#122)
- 62b92f5 feat(runner,stdlib/http): a callable value, and the runtime that calls it
- a5b87a4 feat(runner,cmd): a queue of runs, and signals that reach the script
- 1a9e688 feat(runner,stdlib/http): a runtime per request, and closures that travel
- dc60d6f feat(stdlib/http): HTTP\Mux and HTTP\Server
- f9be014 feat(stdlib/core): sleep and usleep
- ad43011 feat(runner): bound a script's run with a deadline and its client
- 2e30607 feat(runner): look up a PHP function as a typed Go closure
- 4163db9 feat(runner,flatstack): precompile behaviour (#113)
fix
- c9bdee2 fix(runner): the callable contract, and what a closure carries into an invocation (#121)
- 6662548 fix(stdlib/core): count bytes in str* so a PREG_OFFSET_CAPTURE offset reads back (#120)
- de3a605 fix(stdlib/session): read the request's cookies through the accessor
- 0e5efc5 fix(runner): a fork inherits the autoloaders
- ff2be28 fix(runner,stdlib/http): the defects a red team found in the first cut
- b20c2b4 fix(parser,runner): record a declaration's file where it is parsed
- d000dbf fix(stdlib,server): resolve a site's relative sqlite path against its root
docs
- 62e1c66 docs: cut every doc comment splint reported, godoc is at zero
- afcaf4a docs: drop the fixture table the README kept going stale, and name fmt -l
- 5bcc121 docs: the godoc splint asked for, and two comments that had drifted
- 7417877 docs: program re-entry, and the server bindings a script builds
- ee28148 docs(types): record that declared types are not checked
- 61cd5c3 docs: calling PHP from Go
build
- a786458 build: render the coverage reports as markdown tables, through splint (#123)
- 3f2bf89 build: the program decides what it links, not a library
- 3e228e6 build: make atkins lint a ratchet instead of a job that always fails
- 0d7406b build: render the size diagram with splint sizes
chore
- a0b3e5b chore: update go.mod/sum dependencies
- b693b33 chore: update go.mod/sum dependencies
- d5ae843 chore: update go.mod/sum dependencies
- dadb178 chore: update go.mod/sum dependencies
test
- e93ad95 test: pin a PREG_OFFSET_CAPTURE offset feeding substr on one line of php
- 8381a17 test: pair every test file with its source, and put the black box suites under tests/
perf
- 131992f perf(runner): resolve a symbol in constant time
refactor
- 11b14ca refactor(runner,stdlib): move runner/bindings into the packages that own it
update
- 56b431f build(deps): update the dependencies
other
- 4f5e801 testdata: mount the test server's handlers as methods
- 6ecf09b testdata: a Go server to measure the PHP one against, and $this->fnName back
- b106460 testdata: shape the test server the way a Go one is shaped
- b3e6bc8 testdata: return what each step builds, and print phpinfo only on /info
- 2e391cb testdata: let the test server be load tested
- 6e3674c testdata: structure the test server as a class
- f566304 testdata: a php program that is the http server
- 6790a6c bench(runner): measure a pooled runtime against a fresh one per request
- 240839a trace: enhance memory accounting signal (#114)
- 5774ad6 flatstack: compile compact() instead of falling back to the interpreter (#112)
- d006b03 runner: unset removes a key from a native map, and renumbers a native slice (#111)
- 87d9639 server: -t tests the configuration, -s reload applies it (#110)
- 67d809f mail: named servers configured by the host, credentials out of script scope (#109)
- ae3ec76 mdox: install main version rather than latest