1--TEST-- 2Test posix_getsid() function : error conditions 3--DESCRIPTION-- 4cases: no params, wrong param, wrong param range 5--CREDITS-- 6Moritz Neuhaeuser, info@xcompile.net 7PHP Testfest Berlin 2009-05-10 8--SKIPIF-- 9<?php 10 if(!extension_loaded("posix")) { 11 die("SKIP - POSIX extension not loaded"); 12 } 13?> 14--FILE-- 15<?php 16var_dump( posix_getsid() ); 17var_dump( posix_getsid(array()) ); 18var_dump( posix_getsid(-1) ); 19?> 20===DONE=== 21--EXPECTF-- 22Warning: posix_getsid() expects exactly 1 parameter, 0 given in %s on line %d 23bool(false) 24 25Warning: posix_getsid() expects parameter 1 to be long, array given in %s on line %d 26bool(false) 27bool(false) 28===DONE=== 29