repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
typehint_callable.php
blob
990ec79f430e73667c03a6dae1a04032a0b91b55
1
<
?php
2
3
function
a
(
callable
$b
) {
$b
(); }
4
5
$c
=
function
() {
var_dump
(
true
); };
6
a
(
$c
);
7
8
try
{
9
a
(
'hi'
);
10
}
catch
(
Exception
$e
) {
11
var_dump
(
$e
);
12
}