Skip to content

v0.3.3

Choose a tag to compare

@titpetric titpetric released this 12 Nov 10:27
· 438 commits to main since this release

The v0.3.3 release of phpscript contains 53 commits since v0.3.2. The changes focus on compiling closures, exceptions and class constants to flatstack bytecode, splitting stdlib into core areas with new string, array and var-dump functions, matching PHP's integer and float arithmetic, and grouping the test fixtures into per-area folders.

pie title v0.3.3 commits by category
    "feature" : 9
    "fix" : 6
    "docs" : 5
    "update" : 3
    "test" : 2
    "chore" : 1
    "other" : 27

Changelog

feature

  • 147ce18 feat(lint,test): deduplicate test run, add ansi output to lint
  • a166893 feat(stdlib/http): HTTP\Client and HTTP\Request bindings (#55)
  • 496cea1 Add autoindexing feature, fallbacks to .html for index and error pages
  • db15d32 Add support for error pages
  • aca885a feat(stdlib/internals): implement memory_get_usage and memory_limit (#51)
  • ca13e56 feat(stdlib): add intdiv and fdiv
  • 38cc37e feat(runner,flatstack): evaluate the ** operator in both engines
  • cdf6423 feat(parser): lex and parse the ** power operator
  • 5332043 Add test fixtures for multiplication

fix

  • c501493 fix(stdlib): is_object answers for a value a Go binding returned (#56)
  • 456ffcf fix(flatstack): include extras, per-frame state, case-insensitive methods (#52)
  • 724a59c Fix intval to match php, add some test fixtures for class work
  • c86a1d0 fix(runner): promote overflowing integer arithmetic to float
  • f8cb27d fix(runner): render floats the way PHP echo does
  • 30de497 Fix php arithmetics, not just ints

docs

  • b810fa1 docs: regenerate the fixture report
  • a89ff04 docs: regenerate the API reference for the new stdlib functions
  • 2cc611a docs: regenerate the API reference for the stdlib package moves
  • 2cee3f4 docs: update references, database and error handling
  • 2279842 docs: list known divergences from PHP

update

  • 555ca32 Update go-bridget/mig, form stdlib/logger
  • c387771 Update dependencies
  • 69324c9 Update demos/dbadmin with modernised admin panel

test

  • 26f4c18 test: print a table per fixture folder, write markdown with -o
  • 3ea0ffe test: cover addition, subtraction and division for ints and floats

chore

  • f858814 chore: go.mod deps, update compose networking, gitignore

other

  • 142dfca Compile closures to flatstack bytecode (#57)
  • 53b930b runner: evaluate class defaults in a scope that knows the class
  • 9a936a1 parser: implement the bitwise operators
  • c7bc191 flatstack: compile class constants, casts and list() into a property
  • 527b699 runner: accept an absolute script path, resolve DIR in fixtures
  • 9b24d4d flatstack: select a catch clause by its declared type
  • 986c3c7 runner: raise a catchable TypeError instead of panicking in the host
  • 30abc98 stdlib/compat: give preg_match and preg_match_all flags and an offset
  • 27e295f stdlib/core: add the array stack functions and make in_array strict
  • 86fc8a1 stdlib/core: add ten string functions and fix offset handling
  • 6f63b2a parser: say why a namespaced file may only declare symbols
  • 8b6b46a parser: record extends and implements without inheriting
  • 02fc051 parser: accept final, readonly and abstract class modifiers
  • c57c31f stdlib/core: add gettype, var_export, var_dump and print_r
  • 3e52dfd flatstack: let a by-reference out-parameter overwrite a set variable
  • 2c8e140 stdlib: split stdlib.go and platform.go into core areas
  • 9f50339 stdlib: rename ps to core, extract session into its own package
  • 1807a0c internal/phpval: extract PHP's value semantics from stdlib
  • a74e44e tests: group fixtures into areas, root each at its own folder
  • cd19f2f tests: add test fixtures for database, password hashing, exit in try
  • 80ca745 flatstack: terminate on exit/die
  • 4c7e5af stdlib: add crypto, database connection management api
  • 582ece8 runner: handle exit/die as flush and interrupt
  • 5aad350 fmt fix
  • 178b0a7 Tweak virtual hosting, simplify setting a domain list
  • 303a665 annotations: small update to trace transaction allocation pressure
  • 33d2fbd update(docs): correction improvements, code to docs generator replacement (#53)

v0.3.2...v0.3.3