1--TEST-- 2Test function posix_setgid() by substituting argument 1 with float values. 3--SKIPIF-- 4<?php 5 if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 6 if(posix_geteuid() == 0) print "skip - Cannot run test as root."; 7?> 8--CREDITS-- 9Marco Fabbri mrfabbri@gmail.com 10Francesco Fullone ff@ideato.it 11#PHPTestFest Cesena Italia on 2009-06-20 12--FILE-- 13<?php 14 15 16echo "*** Test substituting argument 1 with float values ***\n"; 17 18 19 20$variation_array = array( 21 'float 10.5' => 10.5, 22 'float -10.5' => -10.5, 23 'float 12.3456789000e10' => 12.3456789000e10, 24 'float -12.3456789000e10' => -12.3456789000e10, 25 'float .5' => .5, 26 ); 27 28 29foreach ( $variation_array as $var ) { 30 var_dump(posix_setgid( $var ) ); 31} 32?> 33===DONE=== 34--EXPECTF-- 35*** Test substituting argument 1 with float values *** 36bool(false) 37bool(false) 38bool(false) 39bool(false) 40bool(false) 41===DONE=== 42 43