trowski
Repos
31
Followers
178
Following
40

A non-blocking concurrency framework for PHP applications. 🐘

3706
218

The PHP Interpreter

C
34363
7004

A non-blocking HTTP application server for PHP based on Amp.

1201
86

Parallel processing for PHP based on Amp.

603
50

WebSocket component for PHP based on the Amp HTTP server.

84
12

Async Postgres client for PHP based on Amp.

66
17

Events

Avoid using internal API

Created at 1 week ago

Left over statics

Created at 3 weeks ago

Carry should have been bool

Created at 3 weeks ago
create branch
trowski create branch reduce-header-search
Created at 3 weeks ago

Fix regression on HTTP/2 upgrade from prior commit

Remove duplicate call to makeId()

Created at 3 weeks ago

Allow keep-alive on 1.0

ab -k does not send a connection header, so for keep-alive to work we have to assume it even on HTTP/1.0 connections.

Plus a few optimizations in the HTTP/1.x driver.

Created at 3 weeks ago

Make encodeBinary an instance method

Allow BackedEnums and Stringable objects in query params

Created at 3 weeks ago
create branch
trowski create branch wip
Created at 3 weeks ago

Update binary result handling

Created at 4 weeks ago

Convert closures to arrows

Cleanup debug output code

Created at 4 weeks ago

Use $this as flag

Nicely eliminates need to separate decode cases.

Update phpbench for v3

Require bind data to be a string

Data was being cast to a string internally, instead have the user do that explicitly. Also fixed multiple bind calls on statement pool.

Reset statement when pushing instead of pulling

Created at 1 month ago

Null deferred after completing

Created at 1 month ago

Use data provider in MysqlDateTypeTest

Created at 1 month ago

Back-port packet parsing improvements and fixes from v3

Created at 1 month ago

Back-port fixes for DATETIME, DATE, TIME, YEAR, and JSON types from v3

Created at 1 month ago
delete branch
trowski delete branch closable
Created at 1 month ago
delete branch
trowski delete branch v3-wip
Created at 1 month ago

Make parsing compression slightly cleaner

Further reduce substr() calls

Refactor date and time decoding

Only return date for DATE and fix format for TIME

Add MysqlDataType tests

Refactor packing sending

Also fixed JSON encoding/decoding in prepared statements.

Update PHPUnit config

Fix missed inequalities on ConnectionState

Created at 1 month ago

Only return date for DATE and fix format for TIME

Add MysqlDataType tests

Refactor packing sending

Also fixed JSON encoding/decoding in prepared statements.

Fix testsuite name

Created at 1 month ago

WIP

Created at 1 month ago
issue comment
Delay fiber VM stack cleanup until after observer has been called

If we are going to add a hook for freeing fiber-related memory, perhaps we should expand on this and allow the stack to be allocated separately and use the hook to free the fiber stack as well.

Here is alternative version which implements such a separation, adding a function hook which is invoked when the fiber context is destroyed. https://github.com/trowski/php-src/commit/feb8c08ee077a8ea056996665e10465a19505a46

Created at 1 month ago
create branch
trowski create branch fiber-stack-external-alloc
Created at 1 month ago
issue comment
#53 - cancel query before close connection

Thanks, would you be willing to add a test for this as well?

Created at 1 month ago

WIP

Created at 1 month ago