feat(core): start support for streams#326
Open
Guikingone wants to merge 20 commits into
Open
Conversation
PhpType stream resource, fopen/fread/fwrite/fclose/fgets/fseek/ftell/feof/fflush/fstat, directory iteration, popen/pclose, and the shared frontend wiring (catalog, signatures, type inference, optimizer effects, parser/AST, name resolution) that the rest of the streams subsystem builds on.
stream_socket_server/client/accept/sendto/recvfrom/get_name/pair/shutdown, fsockopen/pfsockopen, IPv4+IPv6 address parsing, DNS resolution (gethostby*), and the protoent/servent lookups.
elephc-tls rustls staticlib (connect/read/write/close, insecure + client-cert configs), the https:// wrapper honoring ssl.* context options, ftps://, and stream_socket_enable_crypto promoting a live TCP fd to TLS. Wires the CI and release workflows to build the elephc-tls staticlib (cargo build -p elephc-tls) before the test step, since the codegen runner links compiled TLS programs against libelephc_tls.a (cargo test alone only produces the rlib dev-dependency, not the staticlib).
data:// (RFC 2397), http:// (GET, redirects), ftp://, the compress.zlib:// / compress.bzip2:// wrappers, the gz*/inet helpers, and crc32().
stream_filter_append/prepend/remove with the built-in transforms and $params, user filters (stream_filter_register), stream_bucket_*, stream_context_*, the stream notification callback, and the userspace stream_wrapper_register vtable (open/read/write/close/seek/eof/flush/lock/truncate/cast + path and dir ops).
phar:// read (compile-time literal + runtime non-literal, uncompressed/gzip/bzip2) and signed single-entry write, plus the streams documentation, examples, ROADMAP remaining-work checklist, Docker test image deps, and the elephc-tls workspace wiring.
da725a9 to
7b81494
Compare
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.
No description provided.