cvs: pecl /classkit classkit.c
| From: | Sara Golemon | Date: | Sat, 21 Aug 2004 11:47:15 +0000 |
| Subject: | cvs: pecl /classkit classkit.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1697@lists.php.net to get a copy of this message | ||
pollita Sat Aug 21 07:47:15 2004 EDT
Modified files:
/pecl/classkit classkit.c
Log:
All special methods have double underscores...
http://cvs.php.net/diff.php/pecl/classkit/classkit.c?r1=1.1&r2=1.2&ty=u
Index: pecl/classkit/classkit.c
diff -u pecl/classkit/classkit.c:1.1 pecl/classkit/classkit.c:1.2
--- pecl/classkit/classkit.c:1.1 Fri Aug 20 16:16:46 2004
+++ pecl/classkit/classkit.c Sat Aug 21 07:47:14 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: classkit.c,v 1.1 2004/08/20 20:16:46 pollita Exp $ */
+/* $Id: classkit.c,v 1.2 2004/08/21 11:47:14 pollita Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -261,18 +261,18 @@
#ifdef ZEND_ENGINE_2
if (strcmp(methodname, ce->name) == 0 ||
- strcmp(methodname, "construct") == 0) ce->constructor = fe;
- else if (strcmp(methodname, "destruct") == 0) ce->destructor = fe;
+ strcmp(methodname, "__construct") == 0) ce->constructor = fe;
+ else if (strcmp(methodname, "__destruct") == 0) ce->destructor = fe;
else if (strcmp(methodname, "__clone") == 0) ce->clone = fe;
else if (strcmp(methodname, "__get") == 0) ce->__get = fe;
else if (strcmp(methodname, "__set") == 0) ce->__set = fe;
else if (strcmp(methodname, "__call") == 0) ce->__call = fe;
if (strcmp(methodname, ce->name) == 0 ||
- strcmp(methodname, "construct") == 0) {
+ strcmp(methodname, "__construct") == 0) {
ce->constructor = fe;
fe->common.fn_flags |= ZEND_ACC_CTOR;
- } else if (strcmp(methodname, "destruct") == 0) {
+ } else if (strcmp(methodname, "__destruct") == 0) {
ce->destructor = fe;
fe->common.fn_flags |= ZEND_ACC_DTOR;
} else if (strcmp(methodname, "__clone") == 0) {
@@ -420,10 +420,10 @@
if (fe == ce->__call) ce->__call = NULL;
if (strcmp(newname, ce->name) == 0 ||
- strcmp(newname, "construct") == 0) {
+ strcmp(newname, "__construct") == 0) {
ce->constructor = fe;
fe->common.fn_flags |= ZEND_ACC_CTOR;
- } else if (strcmp(newname, "destruct") == 0) {
+ } else if (strcmp(newname, "__destruct") == 0) {
ce->destructor = fe;
fe->common.fn_flags |= ZEND_ACC_DTOR;
} else if (strcmp(newname, "__clone") == 0) {