mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
21 lines
310 B
Plaintext
21 lines
310 B
Plaintext
|
--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"
|