1--TEST--
2Test concatenating a class instance that has __toString with itself that uses a non-interned string
3--FILE--
4<?php
5$global_non_interned_string = str_repeat("a", 3);
6
7class Test {
8	public function __toString() {
9		global $global_non_interned_string;
10		return $global_non_interned_string;
11	}
12}
13
14$test1 = new Test;
15$test2 = new Test;
16$test1 .= $test2;
17
18echo $test1 . "\n";
19?>
20--EXPECT--
21aaaaaa
22