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 >> /opt/php-7.0.1/ext/date/tests/ |
files >> //opt/php-7.0.1/ext/date/tests/date_create_error.phpt |
--TEST-- Test date_create() function : error conditions --FILE-- <?php /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) * Description: Returns new DateTime object * Source code: ext/date/php_date.c * Alias to functions: DateTime::__construct */ echo "*** Testing date_create() : error conditions ***\n"; echo "\n-- Testing date_create() function with more than expected no. of arguments --\n"; $time = "GMT"; $timezone = timezone_open("GMT"); $extra_arg = 99; var_dump( date_create($time, $timezone, $extra_arg) ); ?> ===DONE=== --EXPECTF-- *** Testing date_create() : error conditions *** -- Testing date_create() function with more than expected no. of arguments -- Warning: date_create() expects at most 2 parameters, 3 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`