- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
/* {{{ proto mixed array_reduce(array input, mixed callback [, int initial])
Iteratively reduce the array to a single value via the callback. */
...
if (ZEND_NUM_ARGS() > 2) {
ALLOC_ZVAL(result);
*result = **initial;
zval_copy_ctor(result);
convert_to_long(result); // SIC!
INIT_PZVAL(result);
}
...
guest 28.08.2009 18:10 # 0