summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug67064.phpt
blob: e1996e36b6c6f35109ffdb859037ac5738275441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #67064 ()
--FILE--
<?php
class Counter implements Countable {
	public function count($mode = COUNT_NORMAL) {
		var_dump($mode == COUNT_RECURSIVE);
		return 1;
	}
}

$counter = new Counter;
var_dump(count($counter, COUNT_RECURSIVE));
?>
--EXPECTF--
bool(true)
int(1)