diff options
-rw-r--r-- | include/value.h | 2 | ||||
-rw-r--r-- | zend/value.cpp | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/value.h b/include/value.h index b0b5ed2..2fe940a 100644 --- a/include/value.h +++ b/include/value.h @@ -452,8 +452,6 @@ public: template <typename T> std::vector<T> vectorValue() const { - - // only works for arrays, other types return an empty vector if (!isArray()) return std::vector<T>(); diff --git a/zend/value.cpp b/zend/value.cpp index 69f7e2c..ac999c7 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -124,10 +124,10 @@ Value::Value(const std::string &value) */ Value::Value(const char *value, int size) { - // allocate the zval + // allocate the zval MAKE_STD_ZVAL(_val); - - // do we have a valid value? + + // is there a value? if (value) { // create a string zval |