summaryrefslogtreecommitdiff
path: root/zend
AgeCommit message (Collapse)Author
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-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-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-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
2014-12-22Corrected an incorrect refcount when cloning a Php::Value, this should fix ↵Toon Schoenmakers
the memory leak in issue #153
2014-12-16fix issue #151, chaining method calls was not working as it should because ↵Emiel Bruijntjes
the per-object refcount was not updated correctly, which caused an object to be destructed even when it already was assigned to a different variable
2014-11-26Marked `noexcept` all move constructors and assigment operatorsvalmat
See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html
2014-11-25Used variadic templates instead of code duplicationvalmat
2014-11-25Fixed a memory leak when returning a Php::Object with an already allocated Basev1.2.2Toon Schoenmakers
2014-11-21Value::refcount() is now const, and fixed a memory leak in return valuesToon Schoenmakers
2014-11-21fixed value destructor, reference variables should not be unreferencedToon Schoenmakers
2014-11-21Removed move constructor from Object class, because it caused failures when ↵Toon Schoenmakers
instantiating with a std::string parameter, Php::Object constructors now always first call the base constructor, and the __construct() function is now always called
2014-11-21fixed issue 107, casting a value to a std::map was not working correctlyEmiel Bruijntjes
2014-11-20Fixed issue #137: Php::Object("MyClass") crashed when no __construct() ↵Emiel Bruijntjes
function was defined in it
2014-08-29Merge pull request #128 from andot/vs2013Emiel Bruijntjes
Fixed compatibility issue with VS2013
2014-08-26when value properties that start with a null byte are set or retrieved (this ↵v1.2Emiel Bruijntjes
happens when the user relies on specific Zend features) we now block such access because we do not want the user to be exposed to the peculiarities of the Zend engine
2014-08-26fixed conflictEmiel Bruijntjes
2014-08-26Value objects allocated with a const char * that is set to null, will not ↵Emiel Bruijntjes
create NULL php values
2014-08-22Store the impl pointer for ClassImpl after the name in the zend_class_entry ↵Toon Schoenmakers
on php5.3 Turns out the apache reload issue from f57607d2d58f6e7689a3550c84ba68ce42c6a7b3 was never actually fixed. This commit however does finally fix it. The previously comment trick however is still used with php 5.4 and php 5.5 as this 'new' trick doesn't work with these versions of php as char* name in the zend_class_entry is a const char* and is no longer internally copied and all (meaning we can't realloc it).
2014-08-19Fixed the compile issues against php 5.3Toon Schoenmakers
2014-08-19Use stringValue() rather than checking if it's a numeric value to then use ↵Toon Schoenmakers
std::to_string()
2014-08-16Update objectimpl.h小马哥
2014-08-15Properly use numeric keys in case we're requesting a mapValueToon Schoenmakers
2014-07-27renamed subclassOf() to derivedFrom() (added to pull request #110)Emiel Bruijntjes
2014-07-26fixed compile issuesEmiel Bruijntjes
2014-07-26removed includes for fastcall.hEmiel Bruijntjes
2014-07-26added Value::subclassOf(), and implemented Php::is_a() and Php::is_subclass_of()Emiel Bruijntjes
2014-07-26Merge branch 'is_a' of https://github.com/andot/PHP-CPPEmiel Bruijntjes