summaryrefslogtreecommitdiff
path: root/zend/classimpl.cpp
AgeCommit message (Collapse)Author
2016-05-20Fixed segfault during Value::~ValueMartijn Otto
2016-05-19Updated the required PHP version and correctly install the classimpl pointer ↵Martijn Otto
in the doc_comment
2016-05-18Set the return type hint to undefined, otherwise PHP will not accept ↵Martijn Otto
__construct member functions (they are not allowed to return anything)
2016-05-17Fixed final compilation issuesMartijn Otto
2016-05-11Work in progress on PHP7 compatibilityMartijn Otto
2015-10-08Fix logic error that caused segfaults for extension-created classes extended ↵Martijn Otto
from userland using a doc-block
2015-10-08Revert "Revert "Revert "Revert "Fix issue with derived classes, but only fix ↵Martijn Otto
it for PHP 5.4 and up. Closes #211"""" This reverts commit 0ef1b5e130f300dab0ae06b67b44b33da7274a97.
2015-10-08Handle exceptions thrown from unserialize similar to normal phpToon Schoenmakers
Most of this code was taken from ext/standard/vars.c:948, the error message isn't the same, but that's just a small detail. Funny enough you can actually make unserialize throw if you make this code handling the same as serialize, but as the php documentation says that unserialize doesn't throw we just handle it like this (the way we should).
2015-10-08Properly handle a Php::Exception when thrown from a serialize methodToon Schoenmakers
2015-10-07Revert "Revert "Revert "Fix issue with derived classes, but only fix it for ↵v1.5.1Toon Schoenmakers
PHP 5.4 and up. Closes #211""" This reverts commit c512e02a4031f4c359e60d637e0c86e8d9084646.
2015-10-06Revert "Revert "Fix issue with derived classes, but only fix it for PHP 5.4 ↵Toon Schoenmakers
and up. Closes #211"" This reverts commit fd806d0195f469dbbed8e4e329086f82e15312ad. Reverting the revert as I'm unable to reproduce the issue caused by this commit and it all seems to work fine..
2015-09-25Revert "Fix issue with derived classes, but only fix it for PHP 5.4 and up. ↵Toon Schoenmakers
Closes #211" This reverts commit 8aa6e9bbb497d494dbcf86203acaf136da2a50c8.
2015-08-07Fix issue with derived classes, but only fix it for PHP 5.4 and up. Closes #211Martijn Otto
2015-07-28added "keeprefcount" parameter to Value::detach()Emiel Bruijntjes
2015-07-28fixed memory leak when using magic casting functions like __toIntegerAart Stuurman
2015-06-10Fix segfault when casting an object using the default handlersMartijn Otto
2015-02-21fixed memory leak in classimplEmiel 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-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
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-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-07-08changed comments to match coding styleEmiel Bruijntjes
2014-06-23Fixed issue #100valmat
2014-06-19errors are no longer thrown as exceptions, but are php fatal errors, so that ↵Emiel Bruijntjes
they more closely match the zend error reporting system
2014-06-11when an object was created using Php::Object("MyClass", new MyClass()), the ↵Emiel Bruijntjes
object handlers were not installed, which caused the magic methods not to be functional (issue #94)
2014-04-06renamed src directory to zend directory, disabled TSRM debug codeEmiel Bruijntjes