summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-17Fix indentДмитрий Пацура
2015-02-09fix test (fixes issue 167)Emiel Bruijntjes
2015-02-05refactored the initialization and shutdown of extension objects (code is ↵Emiel Bruijntjes
moved from a static method to a real member method), and more importantly: fixed initialization of the PhpCpp::Functor class, previously, we created the class an runtime whenever we needed it, but that turned out to be a cause for crashes when php stopped, this has also been solved
2015-02-05always cast constants to 64bitEmiel Bruijntjes
2015-02-05Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPPEmiel Bruijntjes
2015-02-05when an exception was thrown from out of an __invoke() or __call() method, a ↵Emiel Bruijntjes
segmentation fault occured because memory was too early freed (the exception constructor still relied on data that was already freed)
2015-02-05for 32bit systems there was a compile issue, hopefully this commit solves ↵Emiel Bruijntjes
that (issue 167)
2015-02-02It was reported (see ↵Emiel Bruijntjes
http://www.php-cpp.com/documentation#comment-1830049280) that visual c++ has not support for initializer_lists, well at least old versions of it so not support it (see https://msdn.microsoft.com/en-us/library/hh567368.aspx), so we added a couple of extra checks to ensure that PHP-CPP also compilers on these olders compilers
2015-01-26disable alternate Php::Function constructor on compilers that do not support ↵v1.3Emiel Bruijntjes
it (fix for issue #164)
2015-01-26removed the advise to run "make test" from the Makefile, because tests are ↵Emiel Bruijntjes
not working, and they confuse people all the time, and the same bugs are reported all the time
2015-01-26fixed _NOEXCEPT macro for normal compilers, updated version number to force ↵Emiel Bruijntjes
recompile of extensions after we introduced the constants
2015-01-26Merge pull request #165 from atvise/redefine_noexeptEmiel Bruijntjes
Added macro wrapper for noexcept
2015-01-26Added macro wrapper for noexceptRoland Eischer
- Added macro wrapper for noexcept to support MSVC compiler.
2015-01-25added documentation about class constantsEmiel Bruijntjes
2015-01-25added Php::define() function to create constants at run timeEmiel Bruijntjes
2015-01-25added functions Php::constant() to retrieve the value of a constant, and ↵Emiel Bruijntjes
Php::defined() to find out if a constant is defined
2015-01-25fixed include order, and fixed added Php::Constant to Php::Class objectsEmiel Bruijntjes
2015-01-25Php::Constant objects can now also be added to a Php::Class to create class ↵Emiel Bruijntjes
constants
2015-01-25Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPPEmiel Bruijntjes
2015-01-21fixed compile issues for HHVM (not that the HHVM version works, but people ↵Emiel Bruijntjes
try to compile it, see commit 5235f87126cc2bca3907daada9f59e0c7c7bc834)
2015-01-21This should have noexcept in the .cpp file as wellToon Schoenmakers
At least, clang told me it should have noexcept there
2015-01-20resolved conflictEmiel Bruijntjes
2015-01-20PHP-CPP now checks whether an already compiled extension is still compatible ↵Emiel Bruijntjes
with the PHP-CPP library. This prevents weird crashes when users update their PHP-CPP library, without recompiling their extensions
2015-01-19fixed weird name_len (for constants it apparently includes the null byte)Emiel Bruijntjes
2015-01-19the Constant class no longer wraps around a Php::Value, but uses the ↵Emiel Bruijntjes
zend_constant struct directly
2015-01-18update include fileEmiel Bruijntjes
2015-01-18implemented namespace::constants() methodEmiel Bruijntjes
2015-01-18when constants are added to a namespace, they now have the correct name with ↵Emiel Bruijntjes
a namespace prefix
2015-01-17added initial implementation for registering constantsEmiel Bruijntjes
2015-01-16fixed typos in lambda function documentationEmiel Bruijntjes
2015-01-16fixed typos in lambda function documentationEmiel Bruijntjes
2015-01-16fixed typos in lambda function documentationEmiel Bruijntjes
2015-01-16lambda function documentation updatesEmiel Bruijntjes
2015-01-16lambda function documentation updatesEmiel Bruijntjes
2015-01-16Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPPEmiel Bruijntjes
2015-01-16added documentation about lambda functionsEmiel Bruijntjes
2015-01-15fixed compiling on multithreading platformsEmiel Bruijntjes
2015-01-15Added the Php::Function class. This is an extension to the Php::Value class ↵Emiel Bruijntjes
that can be used if you want to assign a std::function object to a Value. This is useful if you want to pass a C++ lambda to a PHP userspace function
2015-01-14fix for issue #159: the eval() function no longer relies on the Zend ↵Emiel Bruijntjes
zend_eval_stringl_ex() function, because that function modifies the to-be-evaluated php code, which could result in syntax errors for perfectly valid PHP code
2015-01-13in response to issue #156: the super-global arrays Php::POST, Php::SERVER, ↵Emiel Bruijntjes
etcetera can now be iterated over, and they can be assigned to a regular Php::Value variable
2015-01-12Added missing executestate.h file (forgot that in previous commit), and ↵Emiel Bruijntjes
solved issue #158, the Php::Object constructor for multiple parameters accidentally matched the call to Php::Object(name, implementation)
2015-01-12fixed compiling in ZTS environments (reported in issue #57)Emiel Bruijntjes
2015-01-11Merge pull request #118 from andot/fixedunsetEmiel Bruijntjes
Fixed unset of Php::Value
2015-01-11fixed return value problem in the Php::eval() function (also solved in issue ↵Emiel Bruijntjes
#129)
2015-01-11added include(), require(), include_once() and require_once() methods, based ↵Emiel Bruijntjes
on the Php::File class (feature built based on inspiration from pull request #147);
2015-01-11fixed memory leak when executing php code using the Opcodes class, fixed ↵Emiel Bruijntjes
possible double-free when path passed to File class was absolute, added extra constructors to the File class
2015-01-11refactored script class to have a seperate opcodes class, added file class ↵Emiel Bruijntjes
that uses this same opcodes class
2015-01-10exception support for the Script classEmiel Bruijntjes
2015-01-10added Script class to simplify parsing and executing php scripts (the ↵Emiel Bruijntjes
Php::eval() call both compiles and executes a script, while the Script class splits these two steps, which allows you to run the same opcodes multiple times)
2015-01-10Merge branch 'improvements' of https://github.com/valmat/PHP-CPPEmiel Bruijntjes