summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug67064.phpt
blob: 2818516dac0f136c8d8e8a540c544edbc79ff315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #67064 (Countable interface prevents using 2nd parameter ($mode) of count() function)
--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)