/* }}} */
-/* {{{ proto void extract(array var_array, int extract_type [, string prefix])
+/* {{{ proto int extract(array var_array, int extract_type [, string prefix])
Imports variables into symbol table from an array */
PHP_FUNCTION(extract)
{
zval **entry, *data;
char *varname, *finalname;
ulong lkey;
- int res, extype;
+ int res, extype, count = 0;
switch(ZEND_NUM_ARGS()) {
case 1:
ZEND_SET_SYMBOL(EG(active_symbol_table), finalname, data);
efree(finalname);
+
+ count++;
}
}
}
zend_hash_move_forward(Z_ARRVAL_PP(var_array));
}
+
+ RETURN_LONG(count);
}
/* }}} */