From 882e5243767bd4cc143aceaae4133f92a762c6af Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 9 Apr 2014 10:24:13 +0200 Subject: added unset function (request from issue #71) --- zend/classimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zend/classimpl.h') diff --git a/zend/classimpl.h b/zend/classimpl.h index febdbca..ec28322 100644 --- a/zend/classimpl.h +++ b/zend/classimpl.h @@ -408,7 +408,7 @@ public: void property(const char *name, bool value, int flags = Php::Public) { _members.push_back(std::make_shared (name, value, flags & PropertyModifiers)); } void property(const char *name, char value, int flags = Php::Public) { _members.push_back(std::make_shared (name, &value, 1, flags & PropertyModifiers)); } void property(const char *name, const std::string &value, int flags = Php::Public) { _members.push_back(std::make_shared (name, value, flags & PropertyModifiers)); } - void property(const char *name, const char *value, int flags = Php::Public) { _members.push_back(std::make_shared (name, value, strlen(value), flags & PropertyModifiers)); } + void property(const char *name, const char *value, int flags = Php::Public) { _members.push_back(std::make_shared (name, value, ::strlen(value), flags & PropertyModifiers)); } void property(const char *name, double value, int flags = Php::Public) { _members.push_back(std::make_shared (name, value, flags & PropertyModifiers)); } /** -- cgit v1.2.3