Repository navigation
Conversation
Compile time of pdo_sqlite_basic.php (-O2): 10.2-11.3 s before, 10.0 s after (stubs only; re-measure at Task 9).
…TCH_CLASS var_dump
…otocol and emulated prepares
…A-encrypt the password
…atement execution unbounded unless ATTR_TIMEOUT is set
…statement semantics against php
… connection-refused passes
…RL and libpq's retry order
…a2 password inside it
…ased Class|false receiver Fixes #339
… bindParam on every driver
… outlive their scope
…er rule in InferScans and VivifyRefArgs
…e caller, share or copy at the callee, release boxes on unwind
…rence-cells ceiling
…AsyncHook and not-async lists
…null, not the object's first field Fixes #359
… not the garbage word #359 printed
…r through the class_id switch, not the holder's offset on any object (#359)
…(1153 above max_allowed_packet), as php does, not 2006
…bpq do: Nagle held reply-less COM_STMT_CLOSEs behind the delayed ACK
…the driver, not the oracle host's libpq
…come: 2006 or 1153 is a kernel race php itself loses on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PDO
pgsql:andmysql:drivers written in pure PHP over stream sockets (no FFI on the data path), async-aware, plus the compiler fixes the work surfaced.Async\Pool(Pool::pdo), cancel-safe drains.bindColumn,PDO::FETCH_BOUND, true by-referencebindParam,resetSession,ping.arrayparam read as (float) $o[2] and (string) $o[1002] crashes (an int read as a string pointer) once a caller also passes []. #318 PDO::setAttribute(ATTR_ERRMODE, non-int) returns true instead of throwing TypeError #326 PDO::getAttribute() of an unsupported attribute resets errorInfo code and message instead of keeping the previous ones #327 var_export(PHP_INT_MIN) prints the literal -9223372036854775808 instead of -9223372036854775807-1 #330 A temporary returned through aT|falsemethod return and used in a call chain is not destructed at the end of the statement. #334 Areturn [null]beside areturn $rowof type array<int,?string> makes a NULL element of $row read back as "0". #336 Passing an undefined variable by reference to a method on aClass|falsereceiver fails MIR.verify (dangling local) #339 unset() of a local that a callee stored by reference does not disconnect it: later writes through the stored reference revive the variable #340 Two function locals stored by reference in an array property outlive their function: reads and writes through them corrupt the heap. #341.tests/pdo_netharness against real servers (php oracle, hostile fake-server cases), CI jobpdo-net; AOT cases for each compiler fix.docs/pdo.md,docs/design/reference-cells.md.Known gaps (filed, repros in
tests/aot/repro)#331 #337 #302 #303 #328 #344-#354
Testing
Focused AOT families green locally (ref, alias, byref, closure, leak, own, array, method, generator, param, unset, global, static, pdo_, bound). Owed: full suite, self-host fixpoint, Linux/amd64 gate, difftest, symfony/cs-fixer corpora, first
pdo-netCI run.