Skip to content

Version 1.3

Compare
Choose a tag to compare
@EmielBruijntjes EmielBruijntjes released this 27 Jan 15:56
· 378 commits to master since this release

A new release of PHP-CPP with bug fixes and new features. The highlights are:

  • Value::unset() method has been fixed to make it possible to remove array/object members
  • Reduced amount of code by using variadic templates
  • All move and assignment operators are marked as 'noexcept'
  • Fixed chaining methods, it now is possible to "return this"
  • FIxed memory leaks
  • Added Php::Script and Php::File classes that can evaluate PHP scripts
  • Added methods Php::include(), Php::include_once(), Php::require() and Php::require_once()
  • Fixed return value of Php::eval() function (this could break existing applications that rely on old behavior)
  • It now is possible to iterate over super-globals like Php::POST, Php::SERVER, etcetera
  • Added Php::Function class that allows one to capture C++ lambdas and pass them over to PHP user space
  • Added support for constants using the Php::Constant class
  • Added functions Php::define(), Php::defined() and Php::constant()
  • Added version check to ensure that a compiled extension is compatible with the installed version of PHP-CPP