php-src/Zend/tests/bug55578.phpt
2020-02-03 22:52:20 +01:00

21 lines
308 B
PHP

--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"