cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Marcus Boerger | Date: | Mon, 28 Feb 2005 18:53:34 +0000 |
| Subject: | cvs: ZendEngine2 / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3446@lists.php.net to get a copy of this message | ||
helly Mon Feb 28 13:53:34 2005 EDT
Modified files:
/ZendEngine2 zend_builtin_functions.c
Log:
- Add support for methods dynamically added through object handlers
http://cvs.php.net/diff.php/ZendEngine2/zend_builtin_functions.c?r1=1.257&r2=1.258&ty=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.257 ZendEngine2/zend_builtin_functions.c:1.258
--- ZendEngine2/zend_builtin_functions.c:1.257 Sun Feb 27 10:03:09 2005
+++ ZendEngine2/zend_builtin_functions.c Mon Feb 28 13:53:33 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.257 2005/02/27 15:03:09 helly Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.258 2005/02/28 18:53:33 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -878,8 +878,14 @@
RETURN_TRUE;
} else {
efree(lcname);
- RETURN_FALSE;
+ if (Z_TYPE_PP(klass) == IS_OBJECT
+ && Z_OBJ_HT_PP(klass)->get_method != NULL
+ && Z_OBJ_HT_PP(klass)->get_method(klass, Z_STRVAL_PP(method_name),
Z_STRLEN_PP(method_name) TSRMLS_CC) != NULL
+ ) {
+ RETURN_TRUE;
+ }
}
+ RETURN_FALSE;
}
/* }}} */