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
add bitset operations and tests
[hiphop-php.git]
/
hphp
/
test
/
slow
/
pinit
/
pinit-throw.php
blob
601df2cf81fa6e8448a0a8cc6b19a41b5ff2e873
1
<
?php
2
3
function
__autoload
(
$cls
) {
4
echo
"__autoloading
$cls\n
"
;
5
if
(
$cls
===
'Y'
) {
6
throw new
Exception
(
"x"
);
7
}
8
}
9
10
class
X
{
11
public
$p
=
Y
::
FOO
;
12
}
13
14
function
test
() {
15
for
(
$i
=
0
;
$i
<
3
;
$i
++
) {
16
try
{
17
var_dump
(
new
X
);
18
}
catch
(
Exception
$e
) {
19
echo
"Caught exception constructing an X: "
.
$e
->
getMessage
().
"
\n
"
;
20
}
21
}
22
}
23
24
test
();