diff options
Diffstat (limited to 'Zend/tests/bug55578.phpt')
| -rw-r--r-- | Zend/tests/bug55578.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug55578.phpt b/Zend/tests/bug55578.phpt new file mode 100644 index 0000000000..4a8604a23b --- /dev/null +++ b/Zend/tests/bug55578.phpt @@ -0,0 +1,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" |
