diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 07:42:37 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 07:42:37 -0700 |
commit | b2042dbd58c043ab49e9b0dbb51bf8516fe8cea8 (patch) | |
tree | 25c7806d4c9d5fb237c0995b4bd12c4664bf853a /src/classinfo.cpp | |
parent | 53272534a76a9d8cbee4ee887e1f360c4a99728b (diff) |
Initial attempt to register native C++ class methods directly to PHP
Diffstat (limited to 'src/classinfo.cpp')
-rw-r--r-- | src/classinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classinfo.cpp b/src/classinfo.cpp index 6d96494..a8f7a8d 100644 --- a/src/classinfo.cpp +++ b/src/classinfo.cpp @@ -162,13 +162,13 @@ _ClassInfo::~_ClassInfo() * Initialize the class * @param mixed Optional threading ID */ -void _ClassInfo::initialize(TSRMLS_D) +void _ClassInfo::initialize(TSRMLS_DC) { // the class entry zend_class_entry entry; // initialize the class entry - INIT_CLASS_ENTRY_EX(entry, _name.c_str(), _name.size(), NULL); + INIT_CLASS_ENTRY_EX(entry, _name.c_str(), _name.size(), methods()); // we need a special constructor entry.create_object = create_object; |