summaryrefslogtreecommitdiff
path: root/include/value.h
AgeCommit message (Collapse)Author
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-26Added macro wrapper for noexceptRoland Eischer
- Added macro wrapper for noexcept to support MSVC compiler.
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-17added initial implementation for registering constantsEmiel Bruijntjes
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-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-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-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-21Value::refcount() is now const, and fixed a memory leak in return valuesToon Schoenmakers
2014-11-21fixed issue 107, casting a value to a std::map was not working correctlyEmiel Bruijntjes
2014-10-22Allow casting a Php::Value to a std::setv1.2.1Martijn Otto
2014-10-22emplace_back does not work, since some types cannot be constructed directly ↵Martijn Otto
from a Php::Value
2014-10-22use emplace_back instead of push_back for creating the vector of valuesMartijn Otto
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-07-27added commentEmiel Bruijntjes
2014-07-27Merge branch 'fixed#107' of https://github.com/andot/PHP-CPPEmiel Bruijntjes
2014-07-27renamed subclassOf() to derivedFrom() (added to pull request #110)Emiel Bruijntjes
2014-07-26added Value::subclassOf(), and implemented Php::is_a() and Php::is_subclass_of()Emiel Bruijntjes
2014-07-10Fixed issue #107andot
2014-07-10Add Php::is_a implementation.andot
Add is, isSubClassOf for Php::Value. Add Php::is_a implementation. Add Php::is_subclass_of implementation.
2014-07-08in the documentation and source code comments, the old method name ↵Emiel Bruijntjes
Value::resize() was used, while the actual name is reserve(), solves issue #102
2014-06-11donevalmat
2014-06-11Value::operator==valmat
2014-06-08Comparison operators for hardcoded Valuevalmat
2014-04-14added Php::IniValue constructor to the Php::Value class, so that "return ↵Emiel Bruijntjes
Php::ini_get("extension.x");" can be implemented
2014-04-10calls to strlen has been converted into calls to ::strlen, because ↵Emiel Bruijntjes
Php::strlen() now also exists as (slow) php function, see issue #78
2014-04-09added support for accessing array keys by other value objects, support for ↵Emiel Bruijntjes
unsetting array members, support for array_key_exists(), isset() and unset() functions (feature request in from issue #71)
2014-04-07objects were not destructed correctly (we freed memory that we had allocated ↵Emiel Bruijntjes
ourselves, but the Zend engine seemed to deallocate the same memory too, which caused a crash), and improved returning values from functions, which crashed when one of the own parameters was directly returned (error mentioned in issue #68)
2014-04-05removed zend code from the iterator header file, and moved it into the src ↵Emiel Bruijntjes
directory
2014-04-02refactored the class and classbase classes, and introduced a classimpl class ↵Emiel Bruijntjes
in the src directory, this is a first step to remove all zend-specific code from the header files, so that we can later have a hhvm backend for the php-cpp library
2014-04-01much simpler implementation of hash member, i do not understand why i first ↵Emiel Bruijntjes
used this complicated zval wrapping implementation, fixes problems reported in issue #56
2014-03-29fixed broken texts because of wrong return value of many chaining methods in ↵Emiel Bruijntjes
Class.h
2014-03-29all methods to register functions, methods, properties and classes not ↵Emiel Bruijntjes
return *this, to allow chaining these methods. This was suggested by valmat in issue #55
2014-03-25ZTS thread safety is now automatically detected when PHP-CPP is installedEmiel Bruijntjes
2014-03-24fixed nested arrays, issue #50Emiel Bruijntjes
2014-03-21fixed compile problem with php 5.5Emiel Bruijntjes
2014-03-21implementation of traverseiterator (untested)Emiel Bruijntjes
2014-03-16removed Value constructor that wraps around a hash tableEmiel Bruijntjes
2014-03-16added Value::begin() and Value::end() methods to make it possible to iterate ↵Emiel Bruijntjes
over a value
2014-03-15renamed reserve to resizeEmiel Bruijntjes
2014-03-15removed HardCoded class because it turned out to be too difficult to ↵Emiel Bruijntjes
implement it for now
2014-03-15added empty() function, and added HardCoded classEmiel Bruijntjes
2014-03-14Value::numericValue() now returns a int64_t, and no longer a longEmiel Bruijntjes
2014-03-14introduced super globals Php::POST, Php::GET, et cetera, fixed setting array ↵Emiel Bruijntjes
members, introduced Value::attach() method
2014-03-10deal with magic methods and magic interfaces that throw exceptionsEmiel Bruijntjes