1--TEST-- 2msg_send() segfault when the type does not serialize as expected 3--EXTENSIONS-- 4sysvmsg 5--FILE-- 6<?php 7class Test { 8 function __serialize() {} 9} 10 11$q = msg_get_queue(1); 12try { 13 msg_send($q, 1, new Test, true); 14} catch (\TypeError $e) { 15 echo $e->getMessage(); 16} 17?> 18--EXPECT-- 19Test::__serialize() must return an array 20