summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-08-04 21:56:05 +0000
committerMarcus Boerger <helly@php.net>2003-08-04 21:56:05 +0000
commitb099670127063fd67c3d7f808e5d44f3cfb02716 (patch)
treee92f1eda8a99c6d8c594d40a925b3fc52c9d5a60 /ext/spl/php_spl.c
parentc80e7329bd16d76091ca184051dc1113fc67d9a1 (diff)
downloadphp-git-b099670127063fd67c3d7f808e5d44f3cfb02716.tar.gz
- Unset support for spl_array_access by method set($index)
- Parameter names for array interface methods
Diffstat (limited to 'ext/spl/php_spl.c')
-rwxr-xr-xext/spl/php_spl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 6634e156b5..9704fe261d 100755
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -95,6 +95,7 @@ static void spl_init_globals(zend_spl_globals *spl_globals)
#ifdef SPL_ARRAY_WRITE
ZEND_EXECUTE_HOOK(ZEND_ASSIGN_DIM);
+ ZEND_EXECUTE_HOOK(ZEND_UNSET_DIM_OBJ);
#endif /* SPL_ARRAY_WRITE */
}
/* }}} */
@@ -106,13 +107,13 @@ PHP_FUNCTION(spl_abstract) {}
static
ZEND_BEGIN_ARG_INFO(arginfo_one_param, 0)
- ZEND_ARG_PASS_INFO(0)
+ ZEND_ARG_INFO(0, index)
ZEND_END_ARG_INFO();
static
ZEND_BEGIN_ARG_INFO(arginfo_two_params, 0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
+ ZEND_ARG_INFO(0, index)
+ ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();
function_entry spl_funcs_iterator[] = {
@@ -148,6 +149,7 @@ function_entry spl_funcs_array_read[] = {
function_entry spl_funcs_array_access[] = {
SPL_ABSTRACT_FE(array_access, set, arginfo_two_params)
+ SPL_ABSTRACT_FE(array_access, del, arginfo_one_param)
{NULL, NULL, NULL}
};