summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorHarald Radi <phanto@php.net>2003-02-02 23:30:14 +0000
committerHarald Radi <phanto@php.net>2003-02-02 23:30:14 +0000
commitc4528f82a0ab47613b7e94aeb42b23d3e90a499f (patch)
tree77a42b592be10264d31f75326ece28aa510b1448 /Zend/zend_API.h
parentccf8365baad693e49a7b5805aea1289cf79bd1d9 (diff)
downloadphp-git-c4528f82a0ab47613b7e94aeb42b23d3e90a499f.tar.gz
extend the parameter parsing API by two functions
for parsing method parameters with automatic detection if the function was called as such or as a class method (with a valid this ptr). if called as a function the first parameter has to be the object it is operating on, if called as a method this is used. #not yet testet, only commiting so that georg can #continue working on ext/mysqli
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index ed82a37f38..d870f82cfc 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -123,6 +123,9 @@ ZEND_API int zend_parse_parameters(int num_args TSRMLS_DC, char *type_spec, ...)
ZEND_API int zend_parse_parameters_ex(int flags, int num_args TSRMLS_DC, char *type_spec, ...);
ZEND_API char *zend_zval_type_name(zval *arg);
+ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, zend_class_entry *ce, void **object, ...);
+ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, zend_class_entry *ce, void **object, ...);
+
/* End of parameter parsing API -- andrei */
int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);