Skip to content

Releases: cscott/node-php-embed

0.5.3

05 Nov 19:16
Compare
Choose a tag to compare
  • Add and enable Opcache extension for opcode caching (performance).
  • Add and enable Intl extension (fast internationalization support).
  • Add and enable APCu extension for object caching (performance).

0.5.2

03 Nov 20:02
Compare
Choose a tag to compare
  • Ensure PHP private properties aren't writable.
  • Implement __toString magic method on wrapped JavaScript objects.
  • Include stack trace when JavaScript exceptions are thrown into PHP.
  • Implement wrapping of PHP arrays and objects implementing ArrayAccess and Countable.
  • Add Js\ByRef to allow arrays to be passed by reference to JavaScript functions.
  • Add binaries for node 5.0.0.

0.5.1

30 Oct 08:51
Compare
Choose a tag to compare
  • Support passing cookies and POST data to PHP request.

0.5.0

28 Oct 21:09
Compare
Choose a tag to compare
  • Support server variables, headers, and query string
    processing to allow using the embedded PHP to process http
    requests from node's http server.
  • Support passing "command-line arguments" to allow the embedded PHP
    to execute scripts using PHP's CLI interface.
  • Add a simple php-embed CLI script for easy testing.
  • Allow PHP to invoke asynchronous JavaScript functions synchronously
    by passing a Js\Wait object where the callback would go. This
    blocks the PHP event loop (naturally) but not the JavaScript one.
    This is used internally to implement PHP requests to flush the
    output stream.
  • Wrap PHP objects (but not yet arrays) for use within Node.
    Property access is implemented; method invocation is not yet
    implemented.
  • Rework message passing to allow two-way communication between JS
    and PHP. Both JS and PHP have event loops now, and both can do
    asynchronous method calls (but at the moment most calls are
    synchronous).
  • Aggressively lint the C++ and JS code bases.

0.0.2

23 Oct 04:31
Compare
Choose a tag to compare
  • Add synchronous PHP access to JavaScript variables, functions, and
    methods.
  • Wrap JavaScript Buffer objects so they can be passed from PHP to JS.
    This allows us to avoid decoding/re-encoding UTF-8 when we stream
    data back from PHP.
  • Node >= 2.4.0 is now required, due to use of C++11 features and
    v8's NativeWeakMap.

0.0.1

11 Oct 02:01
Compare
Choose a tag to compare

Initial release: just a basic async invocation of a PHP request, with streaming back to node.