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 issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
bug-3725260.php
blob
10c8eb283d9d2d3a4e2bb019fac5dcd455c61cc9
1
<
?php
2
3
// Test that concat binops with un-used results are not incorrectly optimized
4
// away if they can invoke side-effects. See task #3725260.
5
6
class
A
{
7
public function
__toString
() {
echo
"__toString()
\n
"
;
return
"heh"
; }
8
}
9
10
$a
=
new
A
();
11
$b
=
new
A
();
12
$a
.
$b
;
13
14
echo
"done
\n
"
;