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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
tostring_throw.php
blob
1499ffe641765e973cee5d4c083bfa7eb5dc4af2
1
<
?php
2
3
class
stringer
{
4
public function
__toString
() {
throw new
Exception
(
"nope
\n
"
); }
5
}
6
class
dtor
{}
7
8
function
ignore
() {}
9
function
foo
() {
10
$x
=
new
stringer
();
11
ignore
(
new
dtor
(),
"foo"
.
$x
);
12
}
13
14
try
{
15
foo
();
16
}
catch
(
Exception
$e
) {
17
}
18
19
print
"all ok
\n
"
;