1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
--TEST-- Bug #55578 (Segfault on implode/concat) --FILE-- <?php $options = array(); class Foo { public function __toString() { return 'Foo'; } } function test($options, $queryPart) { return ''. (0 ? 1 : $queryPart); } var_dump(test($options, new Foo())); ?> --EXPECT-- string(3) "Foo"