summaryrefslogtreecommitdiff
path: root/zend/object.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-09 10:24:13 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-09 10:24:13 +0200
commit882e5243767bd4cc143aceaae4133f92a762c6af (patch)
tree9d395f7c1f12752982bbade94f898cec8a794bc7 /zend/object.cpp
parent3953d8833e070fa1d6cc7b264dd19ed56c909f02 (diff)
added unset function (request from issue #71)
Diffstat (limited to 'zend/object.cpp')
-rw-r--r--zend/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zend/object.cpp b/zend/object.cpp
index d7fc158..08553b5 100644
--- a/zend/object.cpp
+++ b/zend/object.cpp
@@ -33,7 +33,7 @@ Object::Object(const char *name, Base *base)
// this is a brand new object that should be allocated, the C++ instance
// is already there (created by the extension) but it is not yet stored
// in PHP, find out the classname first
- auto *entry = zend_fetch_class(name, strlen(name), 0 TSRMLS_CC);
+ auto *entry = zend_fetch_class(name, ::strlen(name), 0 TSRMLS_CC);
if (!entry) throw Php::Exception(std::string("Unknown class name ") + name);
// construct an implementation (this will also set the implementation
@@ -55,7 +55,7 @@ void Object::instantiate(const char *name)
TSRMLS_FETCH();
// convert the name into a class_entry
- auto *entry = zend_fetch_class(name, strlen(name), 0 TSRMLS_CC);
+ auto *entry = zend_fetch_class(name, ::strlen(name), 0 TSRMLS_CC);
if (!entry) throw Php::Exception(std::string("Unknown class name ") + name);
// initiate the zval (which was already allocated in the base constructor)