1--TEST--
2Test concatenating a class instance that has __toString with itself
3--FILE--
4<?php
5class Tmp {
6 public function __toString() {
7 return "abc";
8 }
9}
10
11$tmp = new Tmp;
12$tmp .= $tmp;
13echo $tmp . "\n";
14?>
15--EXPECT--
16abcabc
17