php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/date/tests/ |
files >> //php-7.1.11/ext/date/tests/date_sunset_variation9.phpt |
--TEST-- Test date_sunset() function : usage variation - Passing high positive and negative float values to time argument. --SKIPIF-- <?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?> --FILE-- <?php /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunset for a given day and location * Source code: ext/date/php_date.c * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; // GMT is zero for the timezone date_default_timezone_set("Asia/Calcutta"); //Initialise the variables $latitude = 38.4; $longitude = -9; $zenith = 90; $gmt_offset = 1; echo "\n-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --\n"; $time = 12.3456789000e10; var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) ); echo "\n-- Testing date_sunset() function by passing float -12.3456789000e10 value to time --\n"; $time = -12.3456789000e10; var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) ); ?> ===DONE=== --EXPECTF-- *** Testing date_sunset() : usage variation *** -- Testing date_sunset() function by passing float 12.3456789000e10 value to time -- Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) -- Testing date_sunset() function by passing float -12.3456789000e10 value to time -- Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d bool(false) ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`