summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug75193.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/tests/bug75193.phpt')
-rw-r--r--ext/intl/tests/bug75193.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/intl/tests/bug75193.phpt b/ext/intl/tests/bug75193.phpt
new file mode 100644
index 0000000000..d6c32dbe26
--- /dev/null
+++ b/ext/intl/tests/bug75193.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #75193 segfault in collator_convert_object_to_string
+--SKIPIF--
+<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+--FILE--
+<?php
+$a = new \Collator('en_US');
+$b = [new stdclass, new stdclass];
+var_dump($a->sort($b));
+?>
+===DONE===
+--EXPECT--
+bool(true)
+===DONE===