1--TEST--
2Exception handling in array_multisort()
3--FILE--
4<?php
5$array = [1 => new DateTime(), 0 => new DateTime()];
6array_multisort($array, SORT_STRING);
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in %s:%d
10Stack trace:
11#0 %s(%d): array_multisort(Array, 2)
12#1 {main}
13  thrown in %s on line %d
14