Skip to content

Commit

Permalink
add zapi::lang::Variant::get method
Browse files Browse the repository at this point in the history
  • Loading branch information
zzusoftboy committed Jun 9, 2017
1 parent b309317 commit f7d96a0
Show file tree
Hide file tree
Showing 3 changed files with 760 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/zapi/lang/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ enum class Type : unsigned char
Constant = IS_CONSTANT, // A constant value
ConstantAST = IS_CONSTANT_AST, // I think an Abstract Syntax tree, not quite sure
// "fake types", not quite sure what that means
Bool = _IS_BOOL, // You will never get this back as a type
Boolean = _IS_BOOL, // You will never get this back as a type
Callable = IS_CALLABLE, // I don't know why this is a "fake" type
// internal types
Indirect = IS_INDIRECT,
Expand Down
4 changes: 2 additions & 2 deletions include/zapi/lang/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ class ZAPI_DECL_EXPORT Variant
* @param size
* @return Value
*/
Variant get(const char *key, int size = -1) const;
Variant get(const char *key, ssize_t size = -1) const;

/**
* Set a certain property
Expand Down Expand Up @@ -986,7 +986,7 @@ class ZAPI_DECL_EXPORT Variant
* @param allowString Allow the 'this' object to be a string
* @return zend_class_entry
*/
_zend_class_entry *classEntry(bool allowString = true) const;
_zend_class_entry *getClassEntry(bool allowString = true) const;

protected:
Zval m_val;
Expand Down
Loading

0 comments on commit f7d96a0

Please sign in to comment.