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