diff options
Diffstat (limited to 'ext/date/tests')
285 files changed, 496 insertions, 496 deletions
diff --git a/ext/date/tests/003.phpt b/ext/date/tests/003.phpt index 8b1750ee22..501899cc5f 100644 --- a/ext/date/tests/003.phpt +++ b/ext/date/tests/003.phpt @@ -10,7 +10,7 @@ for ($i = 0; $i < 32; $i++) { echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- string(4) "31st" string(3) "1st" string(3) "2nd" diff --git a/ext/date/tests/004.phpt b/ext/date/tests/004.phpt index fb64575cc9..986c9c9179 100644 --- a/ext/date/tests/004.phpt +++ b/ext/date/tests/004.phpt @@ -25,7 +25,7 @@ foreach ($tz as $zone) { echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- string(1) "2" string(3) "177" string(1) "6" diff --git a/ext/date/tests/005.phpt b/ext/date/tests/005.phpt index 911aea7791..e1075ef248 100644 --- a/ext/date/tests/005.phpt +++ b/ext/date/tests/005.phpt @@ -19,7 +19,7 @@ var_dump(idate("'")); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: idate() expects at least 1 parameter, 0 given in %s on line %d bool(false) diff --git a/ext/date/tests/006.phpt b/ext/date/tests/006.phpt index 19a044a91e..425430a470 100644 --- a/ext/date/tests/006.phpt +++ b/ext/date/tests/006.phpt @@ -18,7 +18,7 @@ var_dump(checkdate(1,1,-1)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: checkdate() expects exactly 3 parameters, 0 given in %s on line %d bool(false) bool(true) diff --git a/ext/date/tests/007.phpt b/ext/date/tests/007.phpt index 567777e106..141e251753 100644 --- a/ext/date/tests/007.phpt +++ b/ext/date/tests/007.phpt @@ -14,7 +14,7 @@ var_dump(localtime($t, false)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: localtime() expects at most 2 parameters, 3 given in %s on line %d bool(false) array(9) { diff --git a/ext/date/tests/008.phpt b/ext/date/tests/008.phpt index ce6be18556..e67b4bd0a4 100644 --- a/ext/date/tests/008.phpt +++ b/ext/date/tests/008.phpt @@ -12,7 +12,7 @@ var_dump(getdate()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: getdate() expects at most 1 parameter, 2 given in %s on line %d bool(false) array(11) { diff --git a/ext/date/tests/009.phpt b/ext/date/tests/009.phpt index 23c7668a9f..ae8011eebd 100644 --- a/ext/date/tests/009.phpt +++ b/ext/date/tests/009.phpt @@ -29,7 +29,7 @@ var_dump(gmstrftime("blah", $t)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: strftime() expects at least 1 parameter, 0 given in %s on line %d bool(false) bool(false) diff --git a/ext/date/tests/009_win32.phpt b/ext/date/tests/009_win32.phpt index 3ad04f5849..3da5b35c81 100644 --- a/ext/date/tests/009_win32.phpt +++ b/ext/date/tests/009_win32.phpt @@ -39,7 +39,7 @@ echo "Done\n"; setlocale(LC_TIME, $loc); ?> ---EXPECTF-- +--EXPECTF-- Warning: strftime() expects at least 1 parameter, 0 given in %s on line %d bool(false) bool(false) diff --git a/ext/date/tests/014.phpt b/ext/date/tests/014.phpt index 5cc31aa93a..2e72bdabe0 100644 --- a/ext/date/tests/014.phpt +++ b/ext/date/tests/014.phpt @@ -17,7 +17,7 @@ var_dump(timezone_offset_get($dto, $dtz)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- object(DateTime)#%d (3) { ["date"]=> string(26) "2006-12-12 00:00:00.000000" diff --git a/ext/date/tests/DateInterval_format_a.phpt b/ext/date/tests/DateInterval_format_a.phpt index 48c6cc1675..ce0e8cc086 100644 --- a/ext/date/tests/DateInterval_format_a.phpt +++ b/ext/date/tests/DateInterval_format_a.phpt @@ -6,8 +6,8 @@ Daniel Convissor <danielc@php.net> --INI-- date.timezone=UTC --SKIPIF-- -<?php -if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); +<?php +if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?> --FILE-- <?php diff --git a/ext/date/tests/DateTimeZone_clone_basic1.phpt b/ext/date/tests/DateTimeZone_clone_basic1.phpt index 49c190cf9f..22aee7d08a 100644 --- a/ext/date/tests/DateTimeZone_clone_basic1.phpt +++ b/ext/date/tests/DateTimeZone_clone_basic1.phpt @@ -15,15 +15,15 @@ $orig = new DateTimeZone("GMT"); $clone = clone $orig; var_dump($orig); -var_dump($clone); +var_dump($clone); -if ($clone != $orig) { - echo "TEST FAILED : objects not equal\n"; -}else if ($clone === $orig) { - echo "TEST FAILED : objects identical\n"; +if ($clone != $orig) { + echo "TEST FAILED : objects not equal\n"; +}else if ($clone === $orig) { + echo "TEST FAILED : objects identical\n"; } else { - echo "TEST PASSED : Objects equal but not indetical\n"; -} + echo "TEST PASSED : Objects equal but not indetical\n"; +} ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_clone_basic4.phpt b/ext/date/tests/DateTimeZone_clone_basic4.phpt index 5d1219a87a..11b15a3783 100644 --- a/ext/date/tests/DateTimeZone_clone_basic4.phpt +++ b/ext/date/tests/DateTimeZone_clone_basic4.phpt @@ -7,7 +7,7 @@ date_default_timezone_set("Europe/London"); class DateTimeZoneExt1 extends DateTimeZone { public function __clone() { - echo "-- DateTimeExt1 __clone magic method called --\n"; + echo "-- DateTimeExt1 __clone magic method called --\n"; } } @@ -17,7 +17,7 @@ $d1 = new DateTimeZoneExt1("America/New_York"); $d1_clone = clone $d1; //verify clone by calling method on new object -var_dump( $d1_clone->getName() ); +var_dump( $d1_clone->getName() ); ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_compare_basic1.phpt b/ext/date/tests/DateTimeZone_compare_basic1.phpt index f3648cb243..f32620cd76 100644 --- a/ext/date/tests/DateTimeZone_compare_basic1.phpt +++ b/ext/date/tests/DateTimeZone_compare_basic1.phpt @@ -1,7 +1,7 @@ --TEST-- Test of compare object handler for DateTime objects --FILE-- -<?php +<?php // NB: DateTimeZone class does not define a customized compare class handler so standard object handler will be used diff --git a/ext/date/tests/DateTimeZone_construct_basic.phpt b/ext/date/tests/DateTimeZone_construct_basic.phpt index 12b1090661..870acefc20 100644 --- a/ext/date/tests/DateTimeZone_construct_basic.phpt +++ b/ext/date/tests/DateTimeZone_construct_basic.phpt @@ -5,7 +5,7 @@ Test new DateTimeZone() : basic functionality /* Prototype : DateTimeZone::__construct ( string $timezone ) * Description: Returns new DateTimeZone object * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/DateTimeZone_construct_error.phpt b/ext/date/tests/DateTimeZone_construct_error.phpt index fb8db122dc..6a49bd15ee 100644 --- a/ext/date/tests/DateTimeZone_construct_error.phpt +++ b/ext/date/tests/DateTimeZone_construct_error.phpt @@ -5,7 +5,7 @@ Test new DateTimeZone() : error conditions /* Prototype : DateTimeZone::__construct ( string $timezone ) * Description: Returns new DateTimeZone object * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone date_default_timezone_set("GMT"); diff --git a/ext/date/tests/DateTimeZone_construct_variation1.phpt b/ext/date/tests/DateTimeZone_construct_variation1.phpt index c2b208f0df..f0b2541afe 100644 --- a/ext/date/tests/DateTimeZone_construct_variation1.phpt +++ b/ext/date/tests/DateTimeZone_construct_variation1.phpt @@ -5,7 +5,7 @@ Test DateTime::__construct() function : usage variation - Passing unexpected val /* Prototype : DateTimeZone::__construct ( string $timezone ) * Description: Returns new DateTimeZone object * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing DateTime::__construct() : usage variation - unexpected values to first argument \$timezone***\n"; @@ -88,7 +88,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -100,8 +100,8 @@ foreach($inputs as $variation =>$timezone) { } catch (Throwable $e) { $msg = $e->getMessage(); echo "FAILED: " . $msg . "\n"; - } - + } + }; // closing the resource diff --git a/ext/date/tests/DateTimeZone_getName_error.phpt b/ext/date/tests/DateTimeZone_getName_error.phpt index 0a87b10069..56c3e7e49a 100644 --- a/ext/date/tests/DateTimeZone_getName_error.phpt +++ b/ext/date/tests/DateTimeZone_getName_error.phpt @@ -7,12 +7,12 @@ Test DateTimeZone::getName() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: timezone_name_get() */ - + //Set the default time zone date_default_timezone_set("GMT"); $tz = new DateTimeZone("Europe/London"); - + echo "*** Testing DateTimeZone::getName() : error conditions ***\n"; echo "\n-- Testing DateTimeZone::getName() function with more than expected no. of arguments --\n"; diff --git a/ext/date/tests/DateTimeZone_getOffset_error.phpt b/ext/date/tests/DateTimeZone_getOffset_error.phpt index 56e45b76d4..360f03dc75 100644 --- a/ext/date/tests/DateTimeZone_getOffset_error.phpt +++ b/ext/date/tests/DateTimeZone_getOffset_error.phpt @@ -7,13 +7,13 @@ Test DateTimeZone::getOffset() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: timezone_offset_get() */ - + //Set the default time zone date_default_timezone_set("GMT"); $tz = new DateTimeZone("Europe/London"); $date = date_create("GMT"); - + echo "*** Testing DateTimeZone::getOffset() : error conditions ***\n"; echo "\n-- Testing DateTimeZone::getOffset() function with zero arguments --\n"; diff --git a/ext/date/tests/DateTimeZone_getTransitions_basic1.phpt b/ext/date/tests/DateTimeZone_getTransitions_basic1.phpt index d17808035b..b0d4af7841 100644 --- a/ext/date/tests/DateTimeZone_getTransitions_basic1.phpt +++ b/ext/date/tests/DateTimeZone_getTransitions_basic1.phpt @@ -22,7 +22,7 @@ if (!is_array($tran)) { echo "TEST FAILED: Expected an array\n"; } -echo "\n-- Total number of transitions: " . count($tran). " --\n"; +echo "\n-- Total number of transitions: " . count($tran). " --\n"; echo "\n-- Format a sample entry for Spring 1963 --\n"; var_dump( $tran[6] ); diff --git a/ext/date/tests/DateTimeZone_getTransitions_error.phpt b/ext/date/tests/DateTimeZone_getTransitions_error.phpt index bfcd224ca7..8ed8ff1853 100644 --- a/ext/date/tests/DateTimeZone_getTransitions_error.phpt +++ b/ext/date/tests/DateTimeZone_getTransitions_error.phpt @@ -7,12 +7,12 @@ Test DateTimeZone::getTransitions() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: timezone_transitions_get() */ - + //Set the default time zone date_default_timezone_set("GMT"); $tz = new DateTimeZone("Europe/London"); - + echo "*** Testing DateTimeZone::getTransitions() : error conditions ***\n"; echo "\n-- Testing DateTimeZone::getTransitions() function with more than expected no. of arguments --\n"; diff --git a/ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt b/ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt index 5d68abe05f..1131623ec5 100644 --- a/ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt +++ b/ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt @@ -19,7 +19,7 @@ var_dump( gettype($abbr) ); var_dump( count($abbr) ); echo "\n-- Format a sample entry --\n"; -var_dump( $abbr["acst"] ); +var_dump( $abbr["acst"] ); ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_serialize_type_1.phpt b/ext/date/tests/DateTimeZone_serialize_type_1.phpt index 51a5c53b23..60d72598ea 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_1.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_1.phpt @@ -8,12 +8,12 @@ date_default_timezone_set("Europe/London"); $tz1 = date_create("2012-01-01 10:00 +1:00")->getTimezone(); var_dump( $tz1 ); $serialized = serialize($tz1); -var_dump($serialized); +var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); // Try to use unserialzied object -var_dump( $tz2->getName() ); +var_dump( $tz2->getName() ); ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_serialize_type_2.phpt b/ext/date/tests/DateTimeZone_serialize_type_2.phpt index 4147efe927..6d9e3495ef 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_2.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_2.phpt @@ -8,12 +8,12 @@ date_default_timezone_set("Europe/London"); $tz1 = new DateTimeZone("EST"); var_dump( $tz1 ); $serialized = serialize($tz1); -var_dump($serialized); +var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); // Try to use unserialzied object -var_dump( $tz2->getName() ); +var_dump( $tz2->getName() ); ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_serialize_type_3.phpt b/ext/date/tests/DateTimeZone_serialize_type_3.phpt index 885a17debd..926f796731 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_3.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_3.phpt @@ -8,12 +8,12 @@ date_default_timezone_set("Europe/London"); $tz1 = new DateTimeZone("America/New_York"); var_dump( $tz1 ); $serialized = serialize($tz1); -var_dump($serialized); +var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); // Try to use unserialzied object -var_dump( $tz2->getName() ); +var_dump( $tz2->getName() ); ?> ===DONE=== diff --git a/ext/date/tests/DateTimeZone_verify.phpt b/ext/date/tests/DateTimeZone_verify.phpt index f28742d26a..2cba7c859e 100644 --- a/ext/date/tests/DateTimeZone_verify.phpt +++ b/ext/date/tests/DateTimeZone_verify.phpt @@ -10,10 +10,10 @@ $class = new ReflectionClass('DateTimeZone'); var_dump($class); echo "..and get names of all its methods\n"; -$methods = $class->getMethods(); +$methods = $class->getMethods(); var_dump($methods); -echo "..and get names of all its class constants\n"; +echo "..and get names of all its class constants\n"; $constants = $class->getConstants(); var_dump($constants); ?> diff --git a/ext/date/tests/DateTime_clone_basic4.phpt b/ext/date/tests/DateTime_clone_basic4.phpt index ecb0890bb1..f88d7145cc 100644 --- a/ext/date/tests/DateTime_clone_basic4.phpt +++ b/ext/date/tests/DateTime_clone_basic4.phpt @@ -10,7 +10,7 @@ date_default_timezone_set("Europe/London"); class DateTimeExt1 extends DateTime { public function __clone() { - echo "-- DateTimeExt1 __clone magic method called --\n"; + echo "-- DateTimeExt1 __clone magic method called --\n"; } } @@ -20,7 +20,7 @@ $d1 = new DateTimeExt1("2009-02-03 12:34:41 GMT"); $d1_clone = clone $d1; //verify clone by calling method on new object -var_dump( $d1_clone->format( "m.d.y") ); +var_dump( $d1_clone->format( "m.d.y") ); ?> ===DONE=== diff --git a/ext/date/tests/DateTime_compare_basic1.phpt b/ext/date/tests/DateTime_compare_basic1.phpt index 313dab1c25..6ff6095ddd 100644 --- a/ext/date/tests/DateTime_compare_basic1.phpt +++ b/ext/date/tests/DateTime_compare_basic1.phpt @@ -1,7 +1,7 @@ --TEST-- Test of compare object handler for DateTime objects --FILE-- -<?php +<?php echo "Simple test for DateTime compare object handler\n"; @@ -33,7 +33,7 @@ var_dump($obj2 == $obj3); var_dump($obj2 == $obj4); var_dump($obj3 == $obj4); -date_modify($obj1, "+1 day"); +date_modify($obj1, "+1 day"); echo "\n-- The following test should still compare equal --\n"; var_dump($obj1 == $obj1); echo "\n-- All the following tests should now compare NOT equal --\n"; @@ -44,7 +44,7 @@ var_dump($obj1 == $obj4); echo "\n-- All the following tests should again compare equal --\n"; date_modify($obj2, "+1 day"); date_modify($obj3, "+1 day"); -date_modify($obj4, "+1 day"); +date_modify($obj4, "+1 day"); var_dump($obj1 == $obj2); var_dump($obj1 == $obj3); var_dump($obj1 == $obj4); diff --git a/ext/date/tests/DateTime_construct_basic1.phpt b/ext/date/tests/DateTime_construct_basic1.phpt index d6a8956bf3..e5b3311c3b 100644 --- a/ext/date/tests/DateTime_construct_basic1.phpt +++ b/ext/date/tests/DateTime_construct_basic1.phpt @@ -5,7 +5,7 @@ Test new DateTime() : basic functionality /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] ) * Description: Returns new DateTime object * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/DateTime_construct_error.phpt b/ext/date/tests/DateTime_construct_error.phpt index 71ce3d3018..2777a0617b 100644 --- a/ext/date/tests/DateTime_construct_error.phpt +++ b/ext/date/tests/DateTime_construct_error.phpt @@ -5,7 +5,7 @@ Test new DateTime() : error conditions /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] ) * Description: Returns new DateTime object * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone date_default_timezone_set("GMT"); diff --git a/ext/date/tests/DateTime_construct_variation1.phpt b/ext/date/tests/DateTime_construct_variation1.phpt index 8ff7f7e89c..6c688ab571 100644 --- a/ext/date/tests/DateTime_construct_variation1.phpt +++ b/ext/date/tests/DateTime_construct_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -99,20 +99,20 @@ $timezone = new DateTimeZone("Europe/London"); foreach($inputs as $variation =>$time) { echo "\n-- $variation --\n"; - + try { var_dump( new DateTime($time) ); } catch (Throwable $e) { $msg = $e->getMessage(); echo "FAILED: " . $msg . "\n"; - } - + } + try { var_dump( new DateTime($time, $timezone) ); } catch (Throwable $e) { $msg = $e->getMessage(); echo "FAILED: " . $msg . "\n"; - } + } }; // closing the resource diff --git a/ext/date/tests/DateTime_construct_variation2.phpt b/ext/date/tests/DateTime_construct_variation2.phpt index c84c3b4f23..12e5c43579 100644 --- a/ext/date/tests/DateTime_construct_variation2.phpt +++ b/ext/date/tests/DateTime_construct_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -99,14 +99,14 @@ $time = "2005-07-14 22:30:41"; foreach($inputs as $variation =>$timezone) { echo "\n-- $variation --\n"; - + try { var_dump( new DateTime($time, $timezone) ); } catch (Throwable $e) { $msg = $e->getMessage(); echo "FAILED: " . $msg . "\n"; - } - + } + }; // closing the resource diff --git a/ext/date/tests/DateTime_extends_basic1.phpt b/ext/date/tests/DateTime_extends_basic1.phpt index c5f1b90ef2..aadc8967dc 100644 --- a/ext/date/tests/DateTime_extends_basic1.phpt +++ b/ext/date/tests/DateTime_extends_basic1.phpt @@ -12,7 +12,7 @@ echo "*** Testing basic DateTime inheritance() ***\n"; class DateTimeExt extends DateTime { public static $format = "F j, Y, g:i:s a"; - + public function __toString() { return parent::format(self::$format); @@ -26,8 +26,8 @@ echo "\n-- Invoke __toString --\n"; echo $d . "\n"; echo "\n -- modify date and time --\n"; -$d->setDate(1963, 7, 2); -$d->setTime(10, 45, 30); +$d->setDate(1963, 7, 2); +$d->setTime(10, 45, 30); echo "\n-- Invoke __toString again --\n"; echo $d . "\n"; diff --git a/ext/date/tests/DateTime_extends_basic2.phpt b/ext/date/tests/DateTime_extends_basic2.phpt index 72d27fbd2c..d91bc859c6 100644 --- a/ext/date/tests/DateTime_extends_basic2.phpt +++ b/ext/date/tests/DateTime_extends_basic2.phpt @@ -21,7 +21,7 @@ class DateTimeExt extends DateTime } $d = new DateTimeExt("1967-05-01 22:30:41"); -echo $d->format("F j, Y, g:i:s a") . "\n"; +echo $d->format("F j, Y, g:i:s a") . "\n"; ?> ===DONE=== diff --git a/ext/date/tests/DateTime_format_basic1.phpt b/ext/date/tests/DateTime_format_basic1.phpt index b5bbecfc03..e291dcc62c 100644 --- a/ext/date/tests/DateTime_format_basic1.phpt +++ b/ext/date/tests/DateTime_format_basic1.phpt @@ -7,22 +7,22 @@ Test DateTime::format() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: date_format */ - + //Set the default time zone date_default_timezone_set("Europe/London"); echo "*** Testing DateTime::format() : basic functionality ***\n"; $date = new DateTime("2005-07-14 22:30:41"); -var_dump( $date->format( "F j, Y, g:i a") ); -var_dump( $date->format( "m.d.y") ); -var_dump( $date->format( "j, n, Y") ); -var_dump( $date->format( "Ymd") ); -var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') ); -var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') ); -var_dump( $date->format( "D M j G:i:s T Y") ); -var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') ); -var_dump( $date->format( "H:i:s") ); +var_dump( $date->format( "F j, Y, g:i a") ); +var_dump( $date->format( "m.d.y") ); +var_dump( $date->format( "j, n, Y") ); +var_dump( $date->format( "Ymd") ); +var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') ); +var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') ); +var_dump( $date->format( "D M j G:i:s T Y") ); +var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') ); +var_dump( $date->format( "H:i:s") ); ?> ===DONE=== diff --git a/ext/date/tests/DateTime_format_basic2.phpt b/ext/date/tests/DateTime_format_basic2.phpt index 016fa7b6b2..249a4b12fd 100644 --- a/ext/date/tests/DateTime_format_basic2.phpt +++ b/ext/date/tests/DateTime_format_basic2.phpt @@ -7,7 +7,7 @@ Test date_format() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: date_format */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/DateTime_format_error.phpt b/ext/date/tests/DateTime_format_error.phpt index db1be92290..f0fbba4b76 100644 --- a/ext/date/tests/DateTime_format_error.phpt +++ b/ext/date/tests/DateTime_format_error.phpt @@ -7,7 +7,7 @@ Test DateTime::format() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_format */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -22,7 +22,7 @@ var_dump( $date->format() ); echo "\n-- Testing date_date_formatcreate() function with more than expected no. of arguments --\n"; $format = "F j, Y, g:i a"; $extra_arg = 10; -var_dump( $date->format($format, $extra_arg) ); +var_dump( $date->format($format, $extra_arg) ); ?> ===DONE=== diff --git a/ext/date/tests/DateTime_format_variation1.phpt b/ext/date/tests/DateTime_format_variation1.phpt index 87a99220a6..e57d628d0d 100644 --- a/ext/date/tests/DateTime_format_variation1.phpt +++ b/ext/date/tests/DateTime_format_variation1.phpt @@ -7,7 +7,7 @@ Test DateTime::format() function : usage variation - Passing unexpected values t * Source code: ext/date/php_date.c * Alias to functions: date_format */ - + echo "*** Testing DateTime::format() : usage variation - unexpected values to first argument \$format***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_getOffset_basic1.phpt b/ext/date/tests/DateTime_getOffset_basic1.phpt index 30ff125955..6ade190f82 100644 --- a/ext/date/tests/DateTime_getOffset_basic1.phpt +++ b/ext/date/tests/DateTime_getOffset_basic1.phpt @@ -7,7 +7,7 @@ Test DateTime::getOffset() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: date_offset_get */ - + //Set the default time zone date_default_timezone_set('Europe/London'); @@ -16,8 +16,8 @@ echo "*** Testing DateTime::getOffset() : basic functionality ***\n"; $winter = new DateTime('2008-12-25 14:25:41'); $summer = new DateTime('2008-07-02 14:25:41'); -echo "Winter offset: " . $winter->getOffset() / 3600 . " hours\n"; -echo "Summer offset: " . $summer->getOffset() / 3600 . " hours\n"; +echo "Winter offset: " . $winter->getOffset() / 3600 . " hours\n"; +echo "Summer offset: " . $summer->getOffset() / 3600 . " hours\n"; ?> ===DONE=== diff --git a/ext/date/tests/DateTime_getOffset_error.phpt b/ext/date/tests/DateTime_getOffset_error.phpt index 6e9c3f411d..3d89e78b0d 100644 --- a/ext/date/tests/DateTime_getOffset_error.phpt +++ b/ext/date/tests/DateTime_getOffset_error.phpt @@ -8,7 +8,7 @@ Test DateTime::getOffset() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_offset_get */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/DateTime_getTimeZone_basic1.phpt b/ext/date/tests/DateTime_getTimeZone_basic1.phpt index 0f3edb33e2..3d454f6f4c 100644 --- a/ext/date/tests/DateTime_getTimeZone_basic1.phpt +++ b/ext/date/tests/DateTime_getTimeZone_basic1.phpt @@ -12,16 +12,16 @@ echo "*** Testing DateTime::getTimezone() : basic functionality ***\n"; date_default_timezone_set("Europe/London"); $object = new DateTime("2009-01-30 17:57:32"); -var_dump( $object->getTimeZone()->getName() ); +var_dump( $object->getTimeZone()->getName() ); date_default_timezone_set("America/New_York"); $object = new DateTime("2009-01-30 17:57:32"); -var_dump( $object->getTimeZone()->getName() ); +var_dump( $object->getTimeZone()->getName() ); $la_time = new DateTimeZone("America/Los_Angeles"); $object->setTimeZone($la_time); -var_dump( $object->getTimeZone()->getName() ); +var_dump( $object->getTimeZone()->getName() ); ?> ===DONE=== diff --git a/ext/date/tests/DateTime_modify_basic1.phpt b/ext/date/tests/DateTime_modify_basic1.phpt index 277a6b2965..b11e5e0aa2 100644 --- a/ext/date/tests/DateTime_modify_basic1.phpt +++ b/ext/date/tests/DateTime_modify_basic1.phpt @@ -16,16 +16,16 @@ echo "*** Testing DateTime::modify() : basic functionality ***\n"; // Create a date object to modify $datetime = new DateTime("2009-01-31 14:28:41"); -$datetime->modify("+1 day"); -echo "After modification 1: " . $datetime->format("D, d M Y") . "\n"; +$datetime->modify("+1 day"); +echo "After modification 1: " . $datetime->format("D, d M Y") . "\n"; -$datetime->modify("+1 week 2 days 4 hours 2 seconds"); +$datetime->modify("+1 week 2 days 4 hours 2 seconds"); echo "After modification 2: " . $datetime->format("D, d M Y H:i:s") . "\n"; -$datetime->modify("next Thursday"); -echo "After modification 3: " . $datetime->format("D, d M Y") . "\n"; +$datetime->modify("next Thursday"); +echo "After modification 3: " . $datetime->format("D, d M Y") . "\n"; -$datetime->modify("last Sunday"); +$datetime->modify("last Sunday"); echo "After modification 4: " . $datetime->format("D, d M Y") . "\n"; ?> diff --git a/ext/date/tests/DateTime_modify_variation1.phpt b/ext/date/tests/DateTime_modify_variation1.phpt index ddb36751ce..44e879601d 100644 --- a/ext/date/tests/DateTime_modify_variation1.phpt +++ b/ext/date/tests/DateTime_modify_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_serialize.phpt b/ext/date/tests/DateTime_serialize.phpt index b8af87eee1..501f826cea 100644 --- a/ext/date/tests/DateTime_serialize.phpt +++ b/ext/date/tests/DateTime_serialize.phpt @@ -8,12 +8,12 @@ date_default_timezone_set("Europe/London"); $date1 = new DateTime("2005-07-14 22:30:41"); var_dump($date1); $serialized = serialize($date1); -var_dump($serialized); +var_dump($serialized); $date2 = unserialize($serialized); var_dump($date2); // Try to use unserialzied object -var_dump( $date2->format( "F j, Y, g:i a") ); +var_dump( $date2->format( "F j, Y, g:i a") ); ?> ===DONE=== diff --git a/ext/date/tests/DateTime_setDate_basic1.phpt b/ext/date/tests/DateTime_setDate_basic1.phpt index 8ead020c01..9bcfde9f38 100644 --- a/ext/date/tests/DateTime_setDate_basic1.phpt +++ b/ext/date/tests/DateTime_setDate_basic1.phpt @@ -7,7 +7,7 @@ Test DateTime::setDate() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: date_date_set() */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/DateTime_setDate_error.phpt b/ext/date/tests/DateTime_setDate_error.phpt index 29c019a262..569551dc9c 100644 --- a/ext/date/tests/DateTime_setDate_error.phpt +++ b/ext/date/tests/DateTime_setDate_error.phpt @@ -7,7 +7,7 @@ Test DateTime::setDate() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_date_set() */ - + date_default_timezone_set("Europe/London"); echo "*** Testing DateTime::setDate() : error conditions ***\n"; diff --git a/ext/date/tests/DateTime_setISODate_error.phpt b/ext/date/tests/DateTime_setISODate_error.phpt index af22581829..88818a8da1 100644 --- a/ext/date/tests/DateTime_setISODate_error.phpt +++ b/ext/date/tests/DateTime_setISODate_error.phpt @@ -8,7 +8,7 @@ Test DateTime::setISODate () function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_isodate_set */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -24,7 +24,7 @@ echo "\n-- Testing DateTime::setISODate() function with less than expected no. o var_dump( $datetime->setISODate($year) ); echo "\n-- Testing date_isodate_set() function with more than expected no. of arguments --\n"; -$week = 30; +$week = 30; $day = 7; $extra_arg = 30; var_dump( $datetime->setISODate($year, $week, $day, $extra_arg) ); diff --git a/ext/date/tests/DateTime_setISODate_variation1.phpt b/ext/date/tests/DateTime_setISODate_variation1.phpt index 74f262b536..98a1aa5703 100644 --- a/ext/date/tests/DateTime_setISODate_variation1.phpt +++ b/ext/date/tests/DateTime_setISODate_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setISODate_variation2.phpt b/ext/date/tests/DateTime_setISODate_variation2.phpt index 1677d042c6..f74a99e7e8 100644 --- a/ext/date/tests/DateTime_setISODate_variation2.phpt +++ b/ext/date/tests/DateTime_setISODate_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setISODate_variation3.phpt b/ext/date/tests/DateTime_setISODate_variation3.phpt index 63ac22c28b..2a7d34fa95 100644 --- a/ext/date/tests/DateTime_setISODate_variation3.phpt +++ b/ext/date/tests/DateTime_setISODate_variation3.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setTime_basic1.phpt b/ext/date/tests/DateTime_setTime_basic1.phpt index 0dde746c27..25a2ab095f 100644 --- a/ext/date/tests/DateTime_setTime_basic1.phpt +++ b/ext/date/tests/DateTime_setTime_basic1.phpt @@ -7,7 +7,7 @@ Test DateTime::setTime() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: date_time_set */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/DateTime_setTime_error.phpt b/ext/date/tests/DateTime_setTime_error.phpt index a6b5c5edea..cbdab90d33 100644 --- a/ext/date/tests/DateTime_setTime_error.phpt +++ b/ext/date/tests/DateTime_setTime_error.phpt @@ -7,7 +7,7 @@ Test DateTime::setTime() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_time_set */ - + date_default_timezone_set("Europe/London"); echo "*** Testing DateTime::setTime() : error conditions ***\n"; diff --git a/ext/date/tests/DateTime_setTime_variation1.phpt b/ext/date/tests/DateTime_setTime_variation1.phpt index ea2942bff3..b817c6233c 100644 --- a/ext/date/tests/DateTime_setTime_variation1.phpt +++ b/ext/date/tests/DateTime_setTime_variation1.phpt @@ -2,7 +2,7 @@ Test DateTime::setTime() function : usage variation - Passing unexpected values to first argument $hour. --FILE-- <?php -/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) +/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) * Description: Resets the current time of the DateTime object to a different time. * Source code: ext/date/php_date.c * Alias to functions: date_time_set @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setTime_variation2.phpt b/ext/date/tests/DateTime_setTime_variation2.phpt index f3b91ced5b..0fdbfd34f8 100644 --- a/ext/date/tests/DateTime_setTime_variation2.phpt +++ b/ext/date/tests/DateTime_setTime_variation2.phpt @@ -2,7 +2,7 @@ Test DateTime::setTime() function : usage variation - Passing unexpected values to second argument $minute. --FILE-- <?php -/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) +/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) * Description: Resets the current time of the DateTime object to a different time. * Source code: ext/date/php_date.c * Alias to functions: date_time_set @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setTime_variation3.phpt b/ext/date/tests/DateTime_setTime_variation3.phpt index 4a33fa11be..d41fe3a99c 100644 --- a/ext/date/tests/DateTime_setTime_variation3.phpt +++ b/ext/date/tests/DateTime_setTime_variation3.phpt @@ -2,7 +2,7 @@ Test DateTime::setTime() function : usage variation - Passing unexpected values to third argument $second. --FILE-- <?php -/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) +/* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) * Description: Resets the current time of the DateTime object to a different time. * Source code: ext/date/php_date.c * Alias to functions: date_time_set @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/DateTime_setTimezone_error.phpt b/ext/date/tests/DateTime_setTimezone_error.phpt index 32d03fbec9..95fc6e518c 100644 --- a/ext/date/tests/DateTime_setTimezone_error.phpt +++ b/ext/date/tests/DateTime_setTimezone_error.phpt @@ -7,7 +7,7 @@ Test DateTime::setTimezone () function : error conditions * Source code: ext/date/php_date.c * Alias to functions: date_timezone_set */ - + date_default_timezone_set("UTC"); echo "*** Testing DateTime::setTimezone () : error conditions ***\n"; @@ -15,13 +15,13 @@ echo "*** Testing DateTime::setTimezone () : error conditions ***\n"; $datetime = new DateTime("2009-01-30 17:57:32"); echo "\n-- Testing DateTime::setTimezone () function with zero arguments --\n"; -var_dump( $datetime->setTimezone() ); +var_dump( $datetime->setTimezone() ); echo "\n-- Testing DateTime::setTimezone () function with more than expected no. of arguments --\n"; $timezone = new DateTimezone("GMT"); $extra_arg = 99; var_dump( $datetime->setTimezone($timezone, $extra_arg) ); - + ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/DateTime_setTimezone_variation1.phpt b/ext/date/tests/DateTime_setTimezone_variation1.phpt index 04ab4a4c55..269d657cde 100644 --- a/ext/date/tests/DateTime_setTimezone_variation1.phpt +++ b/ext/date/tests/DateTime_setTimezone_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/big_year.phpt b/ext/date/tests/big_year.phpt index 1cfc5af3dd..6f86e524b5 100644 --- a/ext/date/tests/big_year.phpt +++ b/ext/date/tests/big_year.phpt @@ -6,9 +6,9 @@ Handling of large year values <?php date_default_timezone_set("America/Toronto"); -$t = mktime(0,0,0,1,1,292277026596); +$t = mktime(0,0,0,1,1,292277026596); -var_dump(date("r", $t)); +var_dump(date("r", $t)); echo "OK\n"; ?> diff --git a/ext/date/tests/bug13142.phpt b/ext/date/tests/bug13142.phpt index 5849a94427..5550d5ce9c 100644 --- a/ext/date/tests/bug13142.phpt +++ b/ext/date/tests/bug13142.phpt @@ -18,7 +18,7 @@ if (date('T') == 'GMT') { putenv("TZ=EST5EDT4,M4.1.0,M10.5.0"); } echo date("r\n", strtotime("Sep 04 16:39:45 2001")); -echo date("r\n", strtotime("Sep 04 2001 16:39:45")); +echo date("r\n", strtotime("Sep 04 2001 16:39:45")); ?> --EXPECT-- Tue, 04 Sep 2001 16:39:45 -0400 diff --git a/ext/date/tests/bug20382-1.phpt b/ext/date/tests/bug20382-1.phpt index e81ac20fd3..162852115b 100644 --- a/ext/date/tests/bug20382-1.phpt +++ b/ext/date/tests/bug20382-1.phpt @@ -6,7 +6,7 @@ date.timezone=Europe/Amsterdam <?php $tStamp = mktime (17, 17, 17, 10, 27, 2004); echo "tStamp=". date("l Y-m-d H:i:s T", $tStamp). "\n"; - + $strtotime_timestamp = strtotime ("Monday", $tStamp); echo "result=". date("l Y-m-d H:i:s T", $strtotime_timestamp). "\n"; echo "wanted=Monday 2004-11-01 00:00:00 CET\n"; diff --git a/ext/date/tests/bug30096.phpt b/ext/date/tests/bug30096.phpt index fa4f716ee6..9ca45c4ffe 100644 --- a/ext/date/tests/bug30096.phpt +++ b/ext/date/tests/bug30096.phpt @@ -22,7 +22,7 @@ function gm_date_check($hour, $minute, $second, $month, $day, $year) { global $ts, $tsold; echo "gmmktime($hour,$minute,$second,$month,$day,$year): "; - + $tsold = $ts; $ts = gmmktime($hour, $minute, $second, $month, $day, $year); diff --git a/ext/date/tests/bug32555.phpt b/ext/date/tests/bug32555.phpt index fca34ffa19..03ed09fab4 100644 --- a/ext/date/tests/bug32555.phpt +++ b/ext/date/tests/bug32555.phpt @@ -1,8 +1,8 @@ --TEST-- Bug #32555 (strtotime("tomorrow") can return false) --SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ'); +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ'); ?> --INI-- date.timezone=US/Eastern diff --git a/ext/date/tests/bug33414-1.phpt b/ext/date/tests/bug33414-1.phpt index a7596f93f2..0187aef831 100644 --- a/ext/date/tests/bug33414-1.phpt +++ b/ext/date/tests/bug33414-1.phpt @@ -3,7 +3,7 @@ Bug #33414 [1] (Comprehensive list of incorrect days returned after strotime() / --INI-- date.timezone=America/Mendoza --FILE-- -<?php +<?php print "TZ=America/Mendoza - wrong day.\n"; $tStamp = mktime (17, 17, 17, 1, 8327, 1970); @@ -63,27 +63,27 @@ print "wanted=Friday 00:00:00\n\n"; print "TZ=America/Havana - wrong day.\n"; date_default_timezone_set("America/Havana"); -$tStamp = mktime (17, 17, 17, 1, 12720, 1970); +$tStamp = mktime (17, 17, 17, 1, 12720, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Thursday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; print "wanted=Thursday 00:00:00\n\n"; print "TZ=Europe/Tallinn - wrong day.\n"; -date_default_timezone_set("Europe/Tallinn"); +date_default_timezone_set("Europe/Tallinn"); $tStamp = mktime (17, 17, 17, 1, 11777, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Saturday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Saturday 00:00:00\n\n"; +print "wanted=Saturday 00:00:00\n\n"; -print "TZ=Asia/Jerusalem - wrong day.\n"; +print "TZ=Asia/Jerusalem - wrong day.\n"; date_default_timezone_set("Asia/Jerusalem"); $tStamp = mktime (17, 17, 17, 1, 13056, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Thursday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Thursday 00:00:00\n\n"; +print "wanted=Thursday 00:00:00\n\n"; print "TZ=Europe/Vilnius - wrong day.\n"; date_default_timezone_set("Europe/Vilnius"); @@ -141,29 +141,29 @@ $strtotime_tstamp = strtotime("next Thursday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; print "wanted=Thursday 00:00:00\n\n"; -print "TZ=Asia/Kuala_Lumpur - wrong day.\n"; +print "TZ=Asia/Kuala_Lumpur - wrong day.\n"; date_default_timezone_set("Asia/Kuala_Lumpur"); $tStamp = mktime (17, 17, 17, 1, 4380, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Monday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Monday 00:00:00\n\n"; +print "wanted=Monday 00:00:00\n\n"; -print "TZ=Pacific/Chatham - wrong day.\n"; -date_default_timezone_set("Pacific/Chatham"); +print "TZ=Pacific/Chatham - wrong day.\n"; +date_default_timezone_set("Pacific/Chatham"); $tStamp = mktime (17, 17, 17, 1, 1762, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Monday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Monday 00:00:00\n\n"; +print "wanted=Monday 00:00:00\n\n"; -print "TZ=America/Lima - wrong day.\n"; -date_default_timezone_set("America/Lima"); -$tStamp = mktime (17, 17, 17, 1, 5839, 1970); +print "TZ=America/Lima - wrong day.\n"; +date_default_timezone_set("America/Lima"); +$tStamp = mktime (17, 17, 17, 1, 5839, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Thursday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Thursday 00:00:00\n\n"; +print "wanted=Thursday 00:00:00\n\n"; print "TZ=Asia/Karachi - wrong day.\n"; date_default_timezone_set("Asia/Karachi"); diff --git a/ext/date/tests/bug33414-2.phpt b/ext/date/tests/bug33414-2.phpt index 8e8ad4b0cf..1c71e886fe 100644 --- a/ext/date/tests/bug33414-2.phpt +++ b/ext/date/tests/bug33414-2.phpt @@ -4,11 +4,11 @@ Bug #33414 [2] (Comprehensive list of incorrect days returned after strotime() / <?php print "TZ=Pacific/Rarotonga - wrong day.\n"; date_default_timezone_set("Pacific/Rarotonga"); -$tStamp = mktime (17, 17, 17, 1, 1, 1970); +$tStamp = mktime (17, 17, 17, 1, 1, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Tuesday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Tuesday 00:00:00\n\n"; +print "wanted=Tuesday 00:00:00\n\n"; print "TZ=Atlantic/South_Georgia - wrong day.\n"; date_default_timezone_set("Atlantic/South_Georgia"); @@ -38,17 +38,17 @@ print "TZ=Pacific/Kiritimati - wrong day, off by 2 days.\n"; date_default_timezone_set("Pacific/Kiritimati"); $tStamp = mktime (17, 17, 17, 1, 1, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; -$strtotime_tstamp = strtotime("next Monday", $tStamp); +$strtotime_tstamp = strtotime("next Monday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; print "wanted=Monday 00:00:00\n\n"; -print "TZ=America/Managua - wrong day.\n"; +print "TZ=America/Managua - wrong day.\n"; date_default_timezone_set("America/Managua"); $tStamp = mktime (17, 17, 17, 1, 12879, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Tuesday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Tuesday 00:00:00\n\n"; +print "wanted=Tuesday 00:00:00\n\n"; print "TZ=Pacific/Pitcairn - wrong day.\n"; date_default_timezone_set("Pacific/Pitcairn"); diff --git a/ext/date/tests/bug33415-2.phpt b/ext/date/tests/bug33415-2.phpt index aa15ef93df..7e4d3cd125 100644 --- a/ext/date/tests/bug33415-2.phpt +++ b/ext/date/tests/bug33415-2.phpt @@ -106,7 +106,7 @@ print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; print "wanted=Tuesday 00:30:00\n\n"; print "TZ=Pacific/Tarawa - Is it OK for this to be Midday? Note: does -not appear to have a DST or timezone transition.\n"; +not appear to have a DST or timezone transition.\n"; date_default_timezone_set('Pacific/Tarawa'); $tStamp = mktime (17, 17, 17, 1, 1, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; @@ -128,7 +128,7 @@ $tStamp = mktime (17, 17, 17, 1, 5838, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Wednesday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Wednesday 00:15:00\n\n"; +print "wanted=Wednesday 00:15:00\n\n"; print "TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes\n"; date_default_timezone_set('Pacific/Nauru'); @@ -144,16 +144,16 @@ $tStamp = mktime (17, 17, 17, 1, 3189, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Sunday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Sunday 00:30:00\n\n"; +print "wanted=Sunday 00:30:00\n\n"; print "TZ=Pacific/Port_Moresby - Is it OK for this to be 10 AM? No DST or timezone transition.\n"; date_default_timezone_set('Pacific/Port_Moresby'); -$tStamp = mktime (17, 17, 17, 1, 1, 1970); +$tStamp = mktime (17, 17, 17, 1, 1, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; -$strtotime_tstamp = strtotime("next Thursday", $tStamp); +$strtotime_tstamp = strtotime("next Thursday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; -print "wanted=Thursday 00:00:00\n\n"; +print "wanted=Thursday 00:00:00\n\n"; print "TZ=America/Miquelon - Is it OK for this to be 1 AM ? yes\n"; date_default_timezone_set('America/Miquelon'); @@ -166,7 +166,7 @@ print "wanted=Thursday 01:00:00\n\n"; print "TZ=Pacific/Palau - Is it OK for this to be 9 AM? No DST or timezone transition.\n"; date_default_timezone_set('Pacific/Palau'); -$tStamp = mktime (17, 17, 17, 1, 1, 1970); +$tStamp = mktime (17, 17, 17, 1, 1, 1970); print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; $strtotime_tstamp = strtotime("next Saturday", $tStamp); print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; diff --git a/ext/date/tests/bug42910.phpt b/ext/date/tests/bug42910.phpt index 1bd0790812..e741db2ebc 100644 --- a/ext/date/tests/bug42910.phpt +++ b/ext/date/tests/bug42910.phpt @@ -18,7 +18,7 @@ Bug #42910 (Constructing DateTime with TimeZone Indicator invalidates DateTimeZo // -------------- date_default_timezone_set('Australia/Sydney'); - + $date= date_create('2007-11-04 12:00:00+0200'); var_dump(date_format($date, 'O e')); ?> diff --git a/ext/date/tests/bug44562.phpt b/ext/date/tests/bug44562.phpt index 89ca7402c4..5610474108 100644 --- a/ext/date/tests/bug44562.phpt +++ b/ext/date/tests/bug44562.phpt @@ -19,7 +19,7 @@ $interval = DateInterval::createFromDateString( "1 day" ); $dp = new DatePeriod( $begin, $interval, 10 ); foreach ( $dp as $d ) { - var_dump ($d->format( DATE_ISO8601 ) ); + var_dump ($d->format( DATE_ISO8601 ) ); } ?> diff --git a/ext/date/tests/bug45529.phpt b/ext/date/tests/bug45529.phpt index b5d1d6a8ef..25c6f131b5 100644 --- a/ext/date/tests/bug45529.phpt +++ b/ext/date/tests/bug45529.phpt @@ -12,7 +12,7 @@ $d->setTimeZone($tz1); echo $d->format(DATE_ISO8601), PHP_EOL; $d = new DateTime('2008-01-01 12:00:00+0200'); $d->setTimeZone($tz2); -echo $d->format(DATE_ISO8601), PHP_EOL; +echo $d->format(DATE_ISO8601), PHP_EOL; ?> --EXPECT-- UTC diff --git a/ext/date/tests/bug46111.phpt b/ext/date/tests/bug46111.phpt index 806424ebc6..4fcdfb6fdf 100644 --- a/ext/date/tests/bug46111.phpt +++ b/ext/date/tests/bug46111.phpt @@ -9,7 +9,7 @@ $timezones = timezone_identifiers_list(); print "[strtotime(timezone) == false - Begin List]\n"; foreach ($timezones as $zone) { $date_string = "2008-01-01 13:00:00 " . $zone; - + if (!strtotime($date_string)) { echo $zone . "\n"; } diff --git a/ext/date/tests/bug51096.phpt b/ext/date/tests/bug51096.phpt index df31313a76..2b479a94a6 100644 --- a/ext/date/tests/bug51096.phpt +++ b/ext/date/tests/bug51096.phpt @@ -17,7 +17,7 @@ foreach ( $tests as $test ) $result = date_parse( $test ); $rel = $result['relative']; echo $test, "\n- month: ", $rel['month'], '; day: ', $rel['day'], - '; first-day-of: ', isset( $rel['first_day_of_month'] ) ? 'true' : 'false', + '; first-day-of: ', isset( $rel['first_day_of_month'] ) ? 'true' : 'false', '; last-day-of: ', isset( $rel['last_day_of_month'] ) ? 'true' : 'false', "\n"; $date = new DateTime( '2010-03-06 15:21 UTC' ); echo '- ', $date->format( DateTime::ISO8601 ); diff --git a/ext/date/tests/bug52342.phpt b/ext/date/tests/bug52342.phpt index 45534a23da..fa1936e379 100644 --- a/ext/date/tests/bug52342.phpt +++ b/ext/date/tests/bug52342.phpt @@ -6,7 +6,7 @@ date_default_timezone_set('Europe/Berlin'); $from = new DateTime(); $from->setTime(0, 0, 0); $from->setISODate(2010, 28, 1); //Montag der 28ten Woche 2010 - + echo $from->format('d.m.Y H:i'), "\n"; //A echo $from->getTimestamp(), "\n"; //B echo date('d.m.Y H:i', $from->getTimestamp()), "\n"; //C diff --git a/ext/date/tests/bug60236.phpt b/ext/date/tests/bug60236.phpt index a71bb5a17d..a5c7810629 100644 --- a/ext/date/tests/bug60236.phpt +++ b/ext/date/tests/bug60236.phpt @@ -4,7 +4,7 @@ Bug #60236 (TLA timezone dates are not converted properly from timestamp) date.timezone=America/New_York --FILE-- <?php -$t = new DateTime('2010-07-06 18:38:28 EDT'); +$t = new DateTime('2010-07-06 18:38:28 EDT'); $ts = $t->format('U'); var_dump($ts); $t->setTimestamp($ts); diff --git a/ext/date/tests/bug73091.phpt b/ext/date/tests/bug73091.phpt index c051573297..14f161afe7 100644 --- a/ext/date/tests/bug73091.phpt +++ b/ext/date/tests/bug73091.phpt @@ -8,7 +8,7 @@ class foo { return 'may be a bug'; } } - + var_dump(unserialize('O:12:"DateInterval":1:{s:4:"days";O:3:"foo":0:{}}')); ?> --EXPECTF-- diff --git a/ext/date/tests/bug75002.phpt b/ext/date/tests/bug75002.phpt index 6a6cd21d03..b10e0ebe00 100644 --- a/ext/date/tests/bug75002.phpt +++ b/ext/date/tests/bug75002.phpt @@ -15,7 +15,7 @@ foreach (new aaa($start) as $y) { ?> ==DONE== ---EXPECTF-- +--EXPECTF-- Fatal error: Uncaught Error: DatePeriod has not been initialized correctly in %sbug75002.php:%d Stack trace: #0 {main} diff --git a/ext/date/tests/checkdate_error.phpt b/ext/date/tests/checkdate_error.phpt index 4546408304..02772b9b5b 100644 --- a/ext/date/tests/checkdate_error.phpt +++ b/ext/date/tests/checkdate_error.phpt @@ -5,7 +5,7 @@ Test checkdate() function : error conditions /* Prototype : bool checkdate ( int $month , int $day , int $year ) * Description: Validate a Gregorian date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing checkdate() : error conditions ***\n"; diff --git a/ext/date/tests/checkdate_variation1.phpt b/ext/date/tests/checkdate_variation1.phpt index 5892e1d37d..166a8a3508 100644 --- a/ext/date/tests/checkdate_variation1.phpt +++ b/ext/date/tests/checkdate_variation1.phpt @@ -80,7 +80,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/checkdate_variation2.phpt b/ext/date/tests/checkdate_variation2.phpt index d084931e5b..c9d9782e0f 100644 --- a/ext/date/tests/checkdate_variation2.phpt +++ b/ext/date/tests/checkdate_variation2.phpt @@ -80,7 +80,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/checkdate_variation3.phpt b/ext/date/tests/checkdate_variation3.phpt index 1fda22b35b..66fd143dd0 100644 --- a/ext/date/tests/checkdate_variation3.phpt +++ b/ext/date/tests/checkdate_variation3.phpt @@ -80,7 +80,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date-parse-by-format001.phpt b/ext/date/tests/date-parse-by-format001.phpt index 66975e9da7..4431d2d30f 100644 --- a/ext/date/tests/date-parse-by-format001.phpt +++ b/ext/date/tests/date-parse-by-format001.phpt @@ -5,7 +5,7 @@ Test for date_parse_by_format() $date = "06/08/04"; print_r( date_parse_from_format( '!m/d/y', $date ) ); print_r( date_parse_from_format( '!m*d*y', $date ) ); -?> +?> --EXPECT-- Array ( diff --git a/ext/date/tests/date_add_basic.phpt b/ext/date/tests/date_add_basic.phpt index adddc1340f..a37dd67412 100644 --- a/ext/date/tests/date_add_basic.phpt +++ b/ext/date/tests/date_add_basic.phpt @@ -8,7 +8,7 @@ date_default_timezone_set('UTC'); /* Prototype : void date_add(DateTime object, DateInterval interval) * Description: Adds an interval to the current date in object. * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_add() : basic functionality ***\n"; diff --git a/ext/date/tests/date_basic1.phpt b/ext/date/tests/date_basic1.phpt index f4d922b78f..ce79f62e62 100644 --- a/ext/date/tests/date_basic1.phpt +++ b/ext/date/tests/date_basic1.phpt @@ -14,14 +14,14 @@ echo "*** Testing date() : basic functionality ***\n"; $timestamp = mktime(10, 44, 30, 2, 27, 2009); -var_dump( date("F j, Y, g:i a", $timestamp) ); -var_dump( date("m.d.y", $timestamp) ); -var_dump( date("j, n, Y", $timestamp) ); -var_dump( date("Ymd", $timestamp) ); -var_dump( date('h-i-s, j-m-y, it is w Day', $timestamp) ); +var_dump( date("F j, Y, g:i a", $timestamp) ); +var_dump( date("m.d.y", $timestamp) ); +var_dump( date("j, n, Y", $timestamp) ); +var_dump( date("Ymd", $timestamp) ); +var_dump( date('h-i-s, j-m-y, it is w Day', $timestamp) ); var_dump( date('\i\t \i\s \t\h\e jS \d\a\y.', $timestamp) ); var_dump( date("D M j G:i:s T Y", $timestamp) ); -var_dump( date('H:m:s \m \i\s\ \m\o\n\t\h', $timestamp) ); +var_dump( date('H:m:s \m \i\s\ \m\o\n\t\h', $timestamp) ); var_dump( date("H:i:s", $timestamp) ); ?> diff --git a/ext/date/tests/date_constants.phpt b/ext/date/tests/date_constants.phpt index b9fce8c78b..043b6b45cd 100644 --- a/ext/date/tests/date_constants.phpt +++ b/ext/date/tests/date_constants.phpt @@ -16,7 +16,7 @@ Date constants DATE_RSS, DATE_W3C ); - + foreach($constants as $const) { var_dump(date($const, strtotime("1 Jul 06 14:27:30 +0200"))); var_dump(date($const, strtotime("2006-05-30T14:32:13+02:00"))); diff --git a/ext/date/tests/date_create-relative.phpt b/ext/date/tests/date_create-relative.phpt index 8a90931586..5d2a4196e9 100644 --- a/ext/date/tests/date_create-relative.phpt +++ b/ext/date/tests/date_create-relative.phpt @@ -9,7 +9,7 @@ if (!defined('PHP_INT_MIN')) { define('PHP_INT_MIN', intval(-PHP_INT_MAX - 1)); } -$base_time = '28 Feb 2008 12:00:00'; +$base_time = '28 Feb 2008 12:00:00'; // Most offsets tested in strtotime-relative.phpt. These are tests for dates outside the 32-bit range. $offsets = array( @@ -19,20 +19,20 @@ $offsets = array( '1460970 days', '1460971 days', '1462970 days', - + // around 1 leap year period in years '398 years', '399 years', '400 years', '401 years', - + // around 40000 years '39755 years', '39999 years', '40000 years', '40001 years', '41010 years', - + // bigger than int (32-bit) '10000000000 seconds', '10000000000 minutes', diff --git a/ext/date/tests/date_create_variation1.phpt b/ext/date/tests/date_create_variation1.phpt index a476473a10..3bfa5a4870 100644 --- a/ext/date/tests/date_create_variation1.phpt +++ b/ext/date/tests/date_create_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_create_variation2.phpt b/ext/date/tests/date_create_variation2.phpt index 12b5f53568..08e4ca7356 100644 --- a/ext/date/tests/date_create_variation2.phpt +++ b/ext/date/tests/date_create_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_date_set_basic1.phpt b/ext/date/tests/date_date_set_basic1.phpt index 831a862d0c..9783d4d880 100644 --- a/ext/date/tests/date_date_set_basic1.phpt +++ b/ext/date/tests/date_date_set_basic1.phpt @@ -7,7 +7,7 @@ Test date_date_set() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: DateTime::setDate */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/date_date_set_error.phpt b/ext/date/tests/date_date_set_error.phpt index a44d36e34c..e637b364d0 100644 --- a/ext/date/tests/date_date_set_error.phpt +++ b/ext/date/tests/date_date_set_error.phpt @@ -7,7 +7,7 @@ Test date_date_set() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::setDate */ - + date_default_timezone_set("Europe/London"); echo "*** Testing date_date_set() : error conditions ***\n"; diff --git a/ext/date/tests/date_date_set_variation1.phpt b/ext/date/tests/date_date_set_variation1.phpt index c6068779d6..8bb8093bc2 100644 --- a/ext/date/tests/date_date_set_variation1.phpt +++ b/ext/date/tests/date_date_set_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_date_set_variation2.phpt b/ext/date/tests/date_date_set_variation2.phpt index a41ffe94b7..d11582de62 100644 --- a/ext/date/tests/date_date_set_variation2.phpt +++ b/ext/date/tests/date_date_set_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_date_set_variation3.phpt b/ext/date/tests/date_date_set_variation3.phpt index a5510fb50f..9af0a10934 100644 --- a/ext/date/tests/date_date_set_variation3.phpt +++ b/ext/date/tests/date_date_set_variation3.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_default_timezone_get_error.phpt b/ext/date/tests/date_default_timezone_get_error.phpt index e45722a06c..bb9c2c4d95 100644 --- a/ext/date/tests/date_default_timezone_get_error.phpt +++ b/ext/date/tests/date_default_timezone_get_error.phpt @@ -6,7 +6,7 @@ Test date_default_timezone_get() function : error conditions * Description: Gets the default timezone used by all date/time functions in a script. * Source code: ext/standard/data/php_date.c */ - + date_default_timezone_set("UTC"); echo "*** Testing date_default_timezone_get() : error conditions ***\n"; diff --git a/ext/date/tests/date_default_timezone_set_variation1.phpt b/ext/date/tests/date_default_timezone_set_variation1.phpt index 22f4c22de7..ea6057b6ce 100644 --- a/ext/date/tests/date_default_timezone_set_variation1.phpt +++ b/ext/date/tests/date_default_timezone_set_variation1.phpt @@ -44,7 +44,7 @@ $inputs = array( false, TRUE, FALSE, - + // empty data /*16*/ "", '', @@ -54,7 +54,7 @@ $inputs = array( /*19*/ "abcxyz", 'abcxyz', $heredoc, - + // undefined data /*22*/ @$undefined_var, diff --git a/ext/date/tests/date_format_basic1.phpt b/ext/date/tests/date_format_basic1.phpt index dc2a84a9b1..cb92362ed5 100644 --- a/ext/date/tests/date_format_basic1.phpt +++ b/ext/date/tests/date_format_basic1.phpt @@ -7,22 +7,22 @@ Test date_format() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: DateTime::format */ - + //Set the default time zone date_default_timezone_set("Europe/London"); echo "*** Testing date_format() : basic functionality ***\n"; $date = date_create("2005-07-14 22:30:41"); -var_dump( date_format($date, "F j, Y, g:i a") ); -var_dump( date_format($date, "m.d.y") ); -var_dump( date_format($date, "j, n, Y") ); -var_dump( date_format($date, "Ymd") ); -var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); -var_dump( date_format($date, '\i\t \i\s \t\h\e jS \d\a\y.') ); -var_dump( date_format($date, "D M j G:i:s T Y") ); -var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); -var_dump( date_format($date, "H:i:s") ); +var_dump( date_format($date, "F j, Y, g:i a") ); +var_dump( date_format($date, "m.d.y") ); +var_dump( date_format($date, "j, n, Y") ); +var_dump( date_format($date, "Ymd") ); +var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); +var_dump( date_format($date, '\i\t \i\s \t\h\e jS \d\a\y.') ); +var_dump( date_format($date, "D M j G:i:s T Y") ); +var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); +var_dump( date_format($date, "H:i:s") ); ?> ===DONE=== diff --git a/ext/date/tests/date_format_error.phpt b/ext/date/tests/date_format_error.phpt index 8a170b098f..75e8898b82 100644 --- a/ext/date/tests/date_format_error.phpt +++ b/ext/date/tests/date_format_error.phpt @@ -7,7 +7,7 @@ Test date_format() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::format */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -28,11 +28,11 @@ var_dump( date_format($date, $format, $extra_arg) ); echo "\n-- Testing date_create() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_format($invalid_obj, $format) ); +var_dump( date_format($invalid_obj, $format) ); $invalid_obj = 10; var_dump( date_format($invalid_obj, $format) ); $invalid_obj = null; -var_dump( date_format($invalid_obj, $format) ); +var_dump( date_format($invalid_obj, $format) ); ?> ===DONE=== diff --git a/ext/date/tests/date_format_variation1.phpt b/ext/date/tests/date_format_variation1.phpt index e82932e7ed..8c93c889a2 100644 --- a/ext/date/tests/date_format_variation1.phpt +++ b/ext/date/tests/date_format_variation1.phpt @@ -7,7 +7,7 @@ Test date_format() function : usage variation - Passing unexpected values to fir * Source code: ext/date/php_date.c * Alias to functions: DateTimeInterface::format */ - + echo "*** Testing date_format() : usage variation - unexpected values to first argument \$object***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_format_variation2.phpt b/ext/date/tests/date_format_variation2.phpt index 1a90951bd8..ce14f3499b 100644 --- a/ext/date/tests/date_format_variation2.phpt +++ b/ext/date/tests/date_format_variation2.phpt @@ -7,7 +7,7 @@ Test date_format() function : usage variation - Passing unexpected values to sec * Source code: ext/date/php_date.c * Alias to functions: DateTime::format */ - + echo "*** Testing date_format() : usage variation - unexpected values to second argument \$format***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_isodate_set_error.phpt b/ext/date/tests/date_isodate_set_error.phpt index 43651ef6a0..89de5fea3b 100644 --- a/ext/date/tests/date_isodate_set_error.phpt +++ b/ext/date/tests/date_isodate_set_error.phpt @@ -8,7 +8,7 @@ Test date_isodate_set() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::setISODate */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -23,18 +23,18 @@ var_dump( date_isodate_set($datetime) ); echo "\n-- Testing date_isodate_set() function with more than expected no. of arguments --\n"; $year = 2009; -$week = 30; +$week = 30; $day = 7; $extra_arg = 30; var_dump( date_isodate_set($datetime, $year, $week, $day, $extra_arg) ); echo "\n-- Testing date_isodate_set() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_isodate_set($invalid_obj, $year, $week, $day) ); +var_dump( date_isodate_set($invalid_obj, $year, $week, $day) ); $invalid_obj = 10; var_dump( date_isodate_set($invalid_obj, $year, $week, $day) ); $invalid_obj = null; -var_dump( date_isodate_set($invalid_obj, $year, $week, $day) ); +var_dump( date_isodate_set($invalid_obj, $year, $week, $day) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/date_isodate_set_variation1.phpt b/ext/date/tests/date_isodate_set_variation1.phpt index c5fb46342d..fbea1e2eaa 100644 --- a/ext/date/tests/date_isodate_set_variation1.phpt +++ b/ext/date/tests/date_isodate_set_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_isodate_set_variation2.phpt b/ext/date/tests/date_isodate_set_variation2.phpt index 078abf0191..8512fbe1ca 100644 --- a/ext/date/tests/date_isodate_set_variation2.phpt +++ b/ext/date/tests/date_isodate_set_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_isodate_set_variation3.phpt b/ext/date/tests/date_isodate_set_variation3.phpt index a9906dc97d..829741ad66 100644 --- a/ext/date/tests/date_isodate_set_variation3.phpt +++ b/ext/date/tests/date_isodate_set_variation3.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_isodate_set_variation4.phpt b/ext/date/tests/date_isodate_set_variation4.phpt index 0c94d515b0..ff11405126 100644 --- a/ext/date/tests/date_isodate_set_variation4.phpt +++ b/ext/date/tests/date_isodate_set_variation4.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_modify_basic1.phpt b/ext/date/tests/date_modify_basic1.phpt index 42e0ebf60d..b841f28519 100644 --- a/ext/date/tests/date_modify_basic1.phpt +++ b/ext/date/tests/date_modify_basic1.phpt @@ -16,16 +16,16 @@ echo "*** Testing date_modify() : basic functionality ***\n"; // Create a date object to modify $datetime = date_create("2009-01-31 14:28:41"); -date_modify($datetime, "+1 day"); -echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n"; +date_modify($datetime, "+1 day"); +echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n"; -date_modify($datetime, "+1 week 2 days 4 hours 2 seconds"); +date_modify($datetime, "+1 week 2 days 4 hours 2 seconds"); echo "After modification 2: " . date_format($datetime, "D, d M Y H:i:s") . "\n"; -date_modify($datetime, "next Thursday"); -echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n"; +date_modify($datetime, "next Thursday"); +echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n"; -date_modify($datetime, "last Sunday"); +date_modify($datetime, "last Sunday"); echo "After modification 4: " . date_format($datetime, "D, d M Y") . "\n"; ?> diff --git a/ext/date/tests/date_modify_error.phpt b/ext/date/tests/date_modify_error.phpt index 2bfd38bbe6..6102874c5c 100644 --- a/ext/date/tests/date_modify_error.phpt +++ b/ext/date/tests/date_modify_error.phpt @@ -29,11 +29,11 @@ var_dump( date_modify($datetime, $modify, $extra_arg) ); echo "\n-- Testing date_modify() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_modify($invalid_obj, $modify) ); +var_dump( date_modify($invalid_obj, $modify) ); $invalid_obj = 10; var_dump( date_modify($invalid_obj, $modify) ); $invalid_obj = null; -var_dump( date_modify($invalid_obj, $modify) ); +var_dump( date_modify($invalid_obj, $modify) ); ?> ===DONE=== diff --git a/ext/date/tests/date_modify_variation1.phpt b/ext/date/tests/date_modify_variation1.phpt index 8a63cb960a..210cc60b01 100644 --- a/ext/date/tests/date_modify_variation1.phpt +++ b/ext/date/tests/date_modify_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_modify_variation2.phpt b/ext/date/tests/date_modify_variation2.phpt index a28261be44..21ea733c69 100644 --- a/ext/date/tests/date_modify_variation2.phpt +++ b/ext/date/tests/date_modify_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_offset_get_basic1.phpt b/ext/date/tests/date_offset_get_basic1.phpt index ec6fb16350..e11728423b 100644 --- a/ext/date/tests/date_offset_get_basic1.phpt +++ b/ext/date/tests/date_offset_get_basic1.phpt @@ -7,7 +7,7 @@ Test date_offset_get() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: DateTime::getOffset */ - + //Set the default time zone date_default_timezone_set('Europe/London'); @@ -16,8 +16,8 @@ echo "*** Testing date_offset_get() : basic functionality ***\n"; $winter = date_create('2008-12-25 14:25:41'); $summer = date_create('2008-07-02 14:25:41'); -echo "Winter offset: " . date_offset_get($winter) / 3600 . " hours\n"; -echo "Summer offset: " . date_offset_get($summer) / 3600 . " hours\n"; +echo "Winter offset: " . date_offset_get($winter) / 3600 . " hours\n"; +echo "Summer offset: " . date_offset_get($summer) / 3600 . " hours\n"; ?> ===DONE=== diff --git a/ext/date/tests/date_offset_get_error.phpt b/ext/date/tests/date_offset_get_error.phpt index 7c1fa2a691..9553dce990 100644 --- a/ext/date/tests/date_offset_get_error.phpt +++ b/ext/date/tests/date_offset_get_error.phpt @@ -8,7 +8,7 @@ Test date_offset_get() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTimeInterface::getOffset */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -24,11 +24,11 @@ var_dump( date_offset_get($datetime, $extra_arg) ); echo "\n-- Testing date_offset_get() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_offset_get($invalid_obj) ); +var_dump( date_offset_get($invalid_obj) ); $invalid_obj = 10; var_dump( date_offset_get($invalid_obj) ); $invalid_obj = null; -var_dump( date_offset_get($invalid_obj) ); +var_dump( date_offset_get($invalid_obj) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/date_offset_get_variation1.phpt b/ext/date/tests/date_offset_get_variation1.phpt index 1c9381d3fe..1ec6d347cf 100644 --- a/ext/date/tests/date_offset_get_variation1.phpt +++ b/ext/date/tests/date_offset_get_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_parse_001.phpt b/ext/date/tests/date_parse_001.phpt index 73fe825723..b5c5ac0f48 100644 --- a/ext/date/tests/date_parse_001.phpt +++ b/ext/date/tests/date_parse_001.phpt @@ -15,7 +15,7 @@ Test basic date_parse() var_dump(date_parse(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- array(12) { ["year"]=> int(2006) diff --git a/ext/date/tests/date_parse_basic1.phpt b/ext/date/tests/date_parse_basic1.phpt index 04710d1adb..b1d1701537 100644 --- a/ext/date/tests/date_parse_basic1.phpt +++ b/ext/date/tests/date_parse_basic1.phpt @@ -2,11 +2,11 @@ Test date_parse() function : basic functionality --FILE-- <?php -/* Prototype : array date_parse ( string $date ) +/* Prototype : array date_parse ( string $date ) * Description: Returns associative array with detailed info about given date. * Source code: ext/date/php_date.c */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/date_parse_error.phpt b/ext/date/tests/date_parse_error.phpt index 389f519ef9..a1de04776b 100644 --- a/ext/date/tests/date_parse_error.phpt +++ b/ext/date/tests/date_parse_error.phpt @@ -2,11 +2,11 @@ Test date_parse() function : error conditions --FILE-- <?php -/* Prototype : array date_parse ( string $date ) +/* Prototype : array date_parse ( string $date ) * Description: Returns associative array with detailed info about given date. * Source code: ext/date/php_date.c */ - + //Set the default time zone date_default_timezone_set("Europe/London"); @@ -22,7 +22,7 @@ var_dump( date_parse($date, $extra_arg) ); echo "\n-- Testing date_parse() function with unexpected characters in \$date argument --\n"; $invalid_date = "2OO9-02--27 10:00?00.5"; -var_dump( date_parse($invalid_date) ); +var_dump( date_parse($invalid_date) ); ?> ===DONE=== diff --git a/ext/date/tests/date_parse_variation1.phpt b/ext/date/tests/date_parse_variation1.phpt index 300bd5eac7..20157c74a0 100644 --- a/ext/date/tests/date_parse_variation1.phpt +++ b/ext/date/tests/date_parse_variation1.phpt @@ -2,7 +2,7 @@ Test date_parse() function : usage variation - Passing unexpected values to first argument $date. --FILE-- <?php -/* Prototype : array date_parse ( string $date ) +/* Prototype : array date_parse ( string $date ) * Description: Returns associative array with detailed info about given date. * Source code: ext/date/php_date.c */ @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -100,8 +100,8 @@ foreach($inputs as $variation =>$date) { if (is_array($result)) { var_dump($result["errors"]); } else { - var_dump($result); - } + var_dump($result); + } }; // closing the resource diff --git a/ext/date/tests/date_sub_basic.phpt b/ext/date/tests/date_sub_basic.phpt index b6aed7881b..19b4a20eac 100644 --- a/ext/date/tests/date_sub_basic.phpt +++ b/ext/date/tests/date_sub_basic.phpt @@ -8,7 +8,7 @@ date_default_timezone_set('UTC'); /* Prototype : void date_sub(DateTime object, DateInterval interval) * Description: Subtracts an interval from the current date in object. * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sub() : basic functionality ***\n"; diff --git a/ext/date/tests/date_sun_info_001.phpt b/ext/date/tests/date_sun_info_001.phpt index 35ca37ae98..c9096af46d 100644 --- a/ext/date/tests/date_sun_info_001.phpt +++ b/ext/date/tests/date_sun_info_001.phpt @@ -7,7 +7,7 @@ $sun_info = date_sun_info(strtotime("2006-12-12"), 31.7667, 35.2333); var_dump($sun_info); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- array(9) { ["sunrise"]=> int(1165897761) diff --git a/ext/date/tests/date_sun_info_variation1.phpt b/ext/date/tests/date_sun_info_variation1.phpt index caf939efc0..76ae077f73 100644 --- a/ext/date/tests/date_sun_info_variation1.phpt +++ b/ext/date/tests/date_sun_info_variation1.phpt @@ -6,7 +6,7 @@ Test date_sun_info() function : error variations - Pass unexpected values for ti * Description: Returns an array with information about sunset/sunrise and twilight begin/end. * Source code: ext/standard/data/php_date.c */ - + date_default_timezone_set("UTC"); echo "*** Testing date_sun_info() : usage variations ***\n"; @@ -47,7 +47,7 @@ $inputs = array( false, TRUE, FALSE, - + // empty data /*16*/ "", '', @@ -57,7 +57,7 @@ $inputs = array( /*19*/ "abcxyz", 'abcxyz', $heredoc, - + // undefined data /*22*/ @$undefined_var, diff --git a/ext/date/tests/date_sun_info_variation2.phpt b/ext/date/tests/date_sun_info_variation2.phpt index 8c8267a234..42254d5586 100644 --- a/ext/date/tests/date_sun_info_variation2.phpt +++ b/ext/date/tests/date_sun_info_variation2.phpt @@ -6,7 +6,7 @@ Test date_sun_info() function : error variations - Pass unexpected values for la * Description: Returns an array with information about sunset/sunrise and twilight begin/end. * Source code: ext/standard/data/php_date.c */ - + date_default_timezone_set("UTC"); echo "*** Testing date_sun_info() : usage variations ***\n"; @@ -47,7 +47,7 @@ $inputs = array( false, TRUE, FALSE, - + // empty data /*16*/ "", '', @@ -57,7 +57,7 @@ $inputs = array( /*19*/ "abcxyz", 'abcxyz', $heredoc, - + // undefined data /*22*/ @$undefined_var, diff --git a/ext/date/tests/date_sun_info_variation3.phpt b/ext/date/tests/date_sun_info_variation3.phpt index 28af426623..69396e4ee2 100644 --- a/ext/date/tests/date_sun_info_variation3.phpt +++ b/ext/date/tests/date_sun_info_variation3.phpt @@ -6,7 +6,7 @@ Test date_sun_info() function : usage variations - Pass unexpected values for lo * Description: Returns an array with information about sunset/sunrise and twilight begin/end. * Source code: ext/standard/data/php_date.c */ - + date_default_timezone_set("UTC"); echo "*** Testing date_sun_info() : usage variations ***\n"; @@ -47,7 +47,7 @@ $inputs = array( false, TRUE, FALSE, - + // empty data /*16*/ "", '', @@ -57,7 +57,7 @@ $inputs = array( /*19*/ "abcxyz", 'abcxyz', $heredoc, - + // undefined data /*22*/ @$undefined_var, diff --git a/ext/date/tests/date_sunrise_variation2.phpt b/ext/date/tests/date_sunrise_variation2.phpt index 0a63d42793..d648a65c98 100644 --- a/ext/date/tests/date_sunrise_variation2.phpt +++ b/ext/date/tests/date_sunrise_variation2.phpt @@ -7,7 +7,7 @@ Test date_sunrise() function : usage variation - Passing unexpected values to se /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunrise_variation4.phpt b/ext/date/tests/date_sunrise_variation4.phpt index 7909ca1100..8e42a8a0e2 100644 --- a/ext/date/tests/date_sunrise_variation4.phpt +++ b/ext/date/tests/date_sunrise_variation4.phpt @@ -5,7 +5,7 @@ Test date_sunrise() function : usage variation - Passing unexpected values to fo /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunrise_variation5.phpt b/ext/date/tests/date_sunrise_variation5.phpt index 9858c890ba..a83cddd761 100644 --- a/ext/date/tests/date_sunrise_variation5.phpt +++ b/ext/date/tests/date_sunrise_variation5.phpt @@ -5,7 +5,7 @@ Test date_sunrise() function : usage variation - Passing unexpected values to fi /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunrise_variation6.phpt b/ext/date/tests/date_sunrise_variation6.phpt index 4c7a8e762c..d7e30da867 100644 --- a/ext/date/tests/date_sunrise_variation6.phpt +++ b/ext/date/tests/date_sunrise_variation6.phpt @@ -5,7 +5,7 @@ Test date_sunrise() function : usage variation - Passing unexpected values to si /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunrise_variation7.phpt b/ext/date/tests/date_sunrise_variation7.phpt index 3993ca6a8b..7320c00ce9 100644 --- a/ext/date/tests/date_sunrise_variation7.phpt +++ b/ext/date/tests/date_sunrise_variation7.phpt @@ -5,7 +5,7 @@ Test date_sunrise() function : usage variation - Checking sunrise for consecuti /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; @@ -28,7 +28,7 @@ foreach($inputs as $timezone => $value) { date_default_timezone_set($timezone); $time = mktime(8, 8, 8, 8, 11, 2008); var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $value["GMT"] )); - $time = mktime(8, 8, 8, 8, 12, 2008); + $time = mktime(8, 8, 8, 8, 12, 2008); var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $value["GMT"]) ); } diff --git a/ext/date/tests/date_sunrise_variation8.phpt b/ext/date/tests/date_sunrise_variation8.phpt index fe8aefeb9f..f267ade340 100644 --- a/ext/date/tests/date_sunrise_variation8.phpt +++ b/ext/date/tests/date_sunrise_variation8.phpt @@ -5,7 +5,7 @@ Test date_sunrise() function : usage variation - Checking with North and South /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; @@ -28,10 +28,10 @@ foreach( $time_date as $date => $time ){ echo "\n--$date--\n"; var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, 90, 0 ) ); var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) ); - var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); + var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, -90, 0 ) ); var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) ); - var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) ); + var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) ); } ?> diff --git a/ext/date/tests/date_sunrise_variation9.phpt b/ext/date/tests/date_sunrise_variation9.phpt index 17558a7e42..f5d479a71d 100644 --- a/ext/date/tests/date_sunrise_variation9.phpt +++ b/ext/date/tests/date_sunrise_variation9.phpt @@ -7,7 +7,7 @@ Test date_sunrise() function : usage variation - Passing high positive and nega /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunrise() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_error.phpt b/ext/date/tests/date_sunset_error.phpt index a5e75b649e..dacc0383c7 100644 --- a/ext/date/tests/date_sunset_error.phpt +++ b/ext/date/tests/date_sunset_error.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : error conditions /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : error conditions ***\n"; diff --git a/ext/date/tests/date_sunset_variation1.phpt b/ext/date/tests/date_sunset_variation1.phpt index 58e885b314..9544db24da 100644 --- a/ext/date/tests/date_sunset_variation1.phpt +++ b/ext/date/tests/date_sunset_variation1.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to fir /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_variation2.phpt b/ext/date/tests/date_sunset_variation2.phpt index 6c9eca364f..305cee8b2a 100644 --- a/ext/date/tests/date_sunset_variation2.phpt +++ b/ext/date/tests/date_sunset_variation2.phpt @@ -7,7 +7,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to sec /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_variation3.phpt b/ext/date/tests/date_sunset_variation3.phpt index 0a51ac6b17..8579052f46 100644 --- a/ext/date/tests/date_sunset_variation3.phpt +++ b/ext/date/tests/date_sunset_variation3.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to thi /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; @@ -95,7 +95,7 @@ foreach($inputs as $key =>$value) { var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $value, $longitude, $zenith, $gmt_offset) ); var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $value, $longitude, $zenith, $gmt_offset) ); - + }; ?> diff --git a/ext/date/tests/date_sunset_variation4.phpt b/ext/date/tests/date_sunset_variation4.phpt index c892f87c09..acff9c7778 100644 --- a/ext/date/tests/date_sunset_variation4.phpt +++ b/ext/date/tests/date_sunset_variation4.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to fou /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_variation5.phpt b/ext/date/tests/date_sunset_variation5.phpt index 579e1c8eb0..0a8732b84d 100644 --- a/ext/date/tests/date_sunset_variation5.phpt +++ b/ext/date/tests/date_sunset_variation5.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to fif /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_variation6.phpt b/ext/date/tests/date_sunset_variation6.phpt index 29b31f6e95..0abb858846 100644 --- a/ext/date/tests/date_sunset_variation6.phpt +++ b/ext/date/tests/date_sunset_variation6.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Passing unexpected values to six /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_sunset_variation7.phpt b/ext/date/tests/date_sunset_variation7.phpt index 00d836dcbe..cb084ae6e7 100644 --- a/ext/date/tests/date_sunset_variation7.phpt +++ b/ext/date/tests/date_sunset_variation7.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Checking sunrise for consecutiv /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; @@ -29,7 +29,7 @@ foreach($inputs as $timezone => $value) { date_default_timezone_set($timezone); $time = mktime(8, 8, 8, 8, 11, 2008); var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $value["GMT"] )); - $time = mktime(8, 8, 8, 8, 12, 2008); + $time = mktime(8, 8, 8, 8, 12, 2008); var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $value["GMT"]) ); } ?> diff --git a/ext/date/tests/date_sunset_variation8.phpt b/ext/date/tests/date_sunset_variation8.phpt index dcccfaccb6..fe72aff1b1 100644 --- a/ext/date/tests/date_sunset_variation8.phpt +++ b/ext/date/tests/date_sunset_variation8.phpt @@ -5,7 +5,7 @@ Test date_sunset() function : usage variation - Checking with North and South p /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) * Description: Returns time of sunrise for a given day and location * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; @@ -28,10 +28,10 @@ foreach( $time_date as $date => $time ){ echo "\n--$date--\n"; var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) ); var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) ); - var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); + var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) ); var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) ); - var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) ); + var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) ); } ?> diff --git a/ext/date/tests/date_sunset_variation9.phpt b/ext/date/tests/date_sunset_variation9.phpt index 56949b7e8f..5814a31c99 100644 --- a/ext/date/tests/date_sunset_variation9.phpt +++ b/ext/date/tests/date_sunset_variation9.phpt @@ -7,7 +7,7 @@ Test date_sunset() function : usage variation - Passing high positive and negati /* 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: + * Alias to functions: */ echo "*** Testing date_sunset() : usage variation ***\n"; diff --git a/ext/date/tests/date_time_set_basic1.phpt b/ext/date/tests/date_time_set_basic1.phpt index 9c1a025d47..f9d06f080a 100644 --- a/ext/date/tests/date_time_set_basic1.phpt +++ b/ext/date/tests/date_time_set_basic1.phpt @@ -7,7 +7,7 @@ Test date_time_set() function : basic functionality * Source code: ext/date/php_date.c * Alias to functions: DateTime::setTime */ - + //Set the default time zone date_default_timezone_set("Europe/London"); diff --git a/ext/date/tests/date_time_set_error.phpt b/ext/date/tests/date_time_set_error.phpt index e722cc7151..7c5fd9131d 100644 --- a/ext/date/tests/date_time_set_error.phpt +++ b/ext/date/tests/date_time_set_error.phpt @@ -7,7 +7,7 @@ Test date_time_set() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::setTime */ - + date_default_timezone_set("Europe/London"); echo "*** Testing date_time_set() : error conditions ***\n"; @@ -30,11 +30,11 @@ var_dump( date_time_set($datetime, $hour, $min, $sec, $microseconds, $extra_arg) echo "\n-- Testing date_time_set() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_time_set($invalid_obj, $hour, $min, $sec) ); +var_dump( date_time_set($invalid_obj, $hour, $min, $sec) ); $invalid_obj = 10; var_dump( date_time_set($invalid_obj, $hour, $min, $sec) ); $invalid_obj = null; -var_dump( date_time_set($invalid_obj, $hour, $min, $sec) ); +var_dump( date_time_set($invalid_obj, $hour, $min, $sec) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/date_time_set_variation1.phpt b/ext/date/tests/date_time_set_variation1.phpt index 85e6c783cb..ec5e8b11f5 100644 --- a/ext/date/tests/date_time_set_variation1.phpt +++ b/ext/date/tests/date_time_set_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_time_set_variation2.phpt b/ext/date/tests/date_time_set_variation2.phpt index 6ab19f24ee..c79b67f48c 100644 --- a/ext/date/tests/date_time_set_variation2.phpt +++ b/ext/date/tests/date_time_set_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_time_set_variation3.phpt b/ext/date/tests/date_time_set_variation3.phpt index 7293580553..6c7e5924c3 100644 --- a/ext/date/tests/date_time_set_variation3.phpt +++ b/ext/date/tests/date_time_set_variation3.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_time_set_variation4.phpt b/ext/date/tests/date_time_set_variation4.phpt index 8a0d5c8caa..c0485146cd 100644 --- a/ext/date/tests/date_time_set_variation4.phpt +++ b/ext/date/tests/date_time_set_variation4.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_timestamp_get.phpt b/ext/date/tests/date_timestamp_get.phpt index acdf1e567e..d42b1a5385 100644 --- a/ext/date/tests/date_timestamp_get.phpt +++ b/ext/date/tests/date_timestamp_get.phpt @@ -7,7 +7,7 @@ Havard Eide <nucleuz@gmail.com> date.timezone=UTC --FILE-- <?php -$tz = date_timestamp_get(new DateTime()); +$tz = date_timestamp_get(new DateTime()); var_dump(is_int($tz)); echo "\n\n"; $tz = date_timestamp_get(time()); diff --git a/ext/date/tests/date_timestamp_set.phpt b/ext/date/tests/date_timestamp_set.phpt index 24546ee2ad..d17ffcd985 100644 --- a/ext/date/tests/date_timestamp_set.phpt +++ b/ext/date/tests/date_timestamp_set.phpt @@ -4,14 +4,14 @@ Test the basics to function date_timestamp_set(). Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = date_create(); +$dtms021 = date_create(); -date_timestamp_set($dtms021, 1234567890); +date_timestamp_set($dtms021, 1234567890); var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s')); ?> diff --git a/ext/date/tests/date_timestamp_set_nullparam.phpt b/ext/date/tests/date_timestamp_set_nullparam.phpt index 1bcb800242..04cde83346 100644 --- a/ext/date/tests/date_timestamp_set_nullparam.phpt +++ b/ext/date/tests/date_timestamp_set_nullparam.phpt @@ -4,14 +4,14 @@ Test the function date_timestamp_set() with first null parameter. Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = date_create(); +$dtms021 = date_create(); -date_timestamp_set(null, 1234567890); +date_timestamp_set(null, 1234567890); ?> --EXPECTF-- Warning: date_timestamp_set() expects parameter 1 to be DateTime, null given in %s on line %d
\ No newline at end of file diff --git a/ext/date/tests/date_timestamp_set_nullparam2.phpt b/ext/date/tests/date_timestamp_set_nullparam2.phpt index 8983cc4e2d..ee4477e907 100644 --- a/ext/date/tests/date_timestamp_set_nullparam2.phpt +++ b/ext/date/tests/date_timestamp_set_nullparam2.phpt @@ -4,12 +4,12 @@ Test the function date_timestamp_set() with second null parameter. Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = date_create(); +$dtms021 = date_create(); var_dump(date_timestamp_set($dtms021, null)); ?> diff --git a/ext/date/tests/date_timestamp_set_wrongparam_001.phpt b/ext/date/tests/date_timestamp_set_wrongparam_001.phpt index 9a0fca99c1..43fec3796a 100644 --- a/ext/date/tests/date_timestamp_set_wrongparam_001.phpt +++ b/ext/date/tests/date_timestamp_set_wrongparam_001.phpt @@ -4,12 +4,12 @@ Check the function date_timestamp_set() with first parameter wrong (array). Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = array(); +$dtms021 = array(); date_timestamp_set($dtms021, 123456789); ?> diff --git a/ext/date/tests/date_timestamp_set_wrongparam_002.phpt b/ext/date/tests/date_timestamp_set_wrongparam_002.phpt index 1b3a94bffd..1f436d6c2f 100644 --- a/ext/date/tests/date_timestamp_set_wrongparam_002.phpt +++ b/ext/date/tests/date_timestamp_set_wrongparam_002.phpt @@ -4,7 +4,7 @@ Check the function date_timestamp_set() with first parameter wrong (integer). Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC diff --git a/ext/date/tests/date_timestamp_set_wrongparam_003.phpt b/ext/date/tests/date_timestamp_set_wrongparam_003.phpt index 1243240c2d..149033660d 100644 --- a/ext/date/tests/date_timestamp_set_wrongparam_003.phpt +++ b/ext/date/tests/date_timestamp_set_wrongparam_003.phpt @@ -4,12 +4,12 @@ Check the function date_timestamp_set() with second parameter wrong (array). Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = new DateTime(); +$dtms021 = new DateTime(); $wrong_parameter = array(); diff --git a/ext/date/tests/date_timestamp_set_wrongparam_004.phpt b/ext/date/tests/date_timestamp_set_wrongparam_004.phpt index b171e98bd4..a9aab110e2 100644 --- a/ext/date/tests/date_timestamp_set_wrongparam_004.phpt +++ b/ext/date/tests/date_timestamp_set_wrongparam_004.phpt @@ -4,12 +4,12 @@ Check the function date_timestamp_set() with 3 parameters. Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php $dftz021 = date_default_timezone_get(); //UTC -$dtms021 = new DateTime(); +$dtms021 = new DateTime(); date_timestamp_set($dtms021, 123456789, 'error'); ?> diff --git a/ext/date/tests/date_timezone_get_basic1.phpt b/ext/date/tests/date_timezone_get_basic1.phpt index 7e86036ada..34fc273d2b 100644 --- a/ext/date/tests/date_timezone_get_basic1.phpt +++ b/ext/date/tests/date_timezone_get_basic1.phpt @@ -12,17 +12,17 @@ echo "*** Testing date_timezone_get() : basic functionality ***\n"; date_default_timezone_set("Europe/London"); $object = date_create("2009-01-30 17:57:32"); -$tz = date_timezone_get($object); +$tz = date_timezone_get($object); var_dump( timezone_name_get($tz) ); date_default_timezone_set("America/New_York"); $object = date_create("2009-01-30 17:57:32"); -$tz = date_timezone_get($object); +$tz = date_timezone_get($object); var_dump( timezone_name_get($tz) ); $la_time = timezone_open("America/Los_Angeles"); date_timezone_set($object, $la_time); -$tz = date_timezone_get($object); +$tz = date_timezone_get($object); var_dump( timezone_name_get($tz) ); ?> diff --git a/ext/date/tests/date_timezone_get_error.phpt b/ext/date/tests/date_timezone_get_error.phpt index 4d8318431c..5dc2b6fc70 100644 --- a/ext/date/tests/date_timezone_get_error.phpt +++ b/ext/date/tests/date_timezone_get_error.phpt @@ -7,14 +7,14 @@ Test date_timezone_get() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTimeInterface::getTimezone */ - + // Set timezone date_default_timezone_set("Europe/London"); echo "*** Testing date_timezone_get() : error conditions ***\n"; echo "\n-- Testing date_timezone_get() function with zero arguments --\n"; -var_dump( date_timezone_get() ); +var_dump( date_timezone_get() ); echo "\n-- Testing date_timezone_get() function with more than expected no. of arguments --\n"; $datetime = date_create("2009-01-30 17:57:32"); @@ -23,11 +23,11 @@ var_dump( date_timezone_get($datetime, $extra_arg) ); echo "\n-- Testing date_timezone_get() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_timezone_get($invalid_obj) ); +var_dump( date_timezone_get($invalid_obj) ); $invalid_obj = 10; var_dump( date_timezone_get($invalid_obj) ); $invalid_obj = null; -var_dump( date_timezone_get($invalid_obj) ); +var_dump( date_timezone_get($invalid_obj) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/date_timezone_get_variation1.phpt b/ext/date/tests/date_timezone_get_variation1.phpt index a5d6ed01ef..8dcc21b6f9 100644 --- a/ext/date/tests/date_timezone_get_variation1.phpt +++ b/ext/date/tests/date_timezone_get_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_timezone_set_error.phpt b/ext/date/tests/date_timezone_set_error.phpt index 3ceebf7382..a4ebdf0aad 100644 --- a/ext/date/tests/date_timezone_set_error.phpt +++ b/ext/date/tests/date_timezone_set_error.phpt @@ -7,17 +7,17 @@ Test date_timezone_set() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::setTimezone */ - + date_default_timezone_set("UTC"); echo "*** Testing date_timezone_set() : error conditions ***\n"; echo "\n-- Testing date_timezone_set() function with zero arguments --\n"; -var_dump( date_timezone_set() ); +var_dump( date_timezone_set() ); echo "\n-- Testing date_timezone_set() function with less than expected no. of arguments --\n"; $datetime = date_create("2009-01-30 17:57:32"); -var_dump( date_timezone_set($datetime) ); +var_dump( date_timezone_set($datetime) ); echo "\n-- Testing date_timezone_set() function with more than expected no. of arguments --\n"; $timezone = timezone_open("GMT"); @@ -26,11 +26,11 @@ var_dump( date_timezone_set($datetime, $timezone, $extra_arg) ); echo "\n-- Testing date_timezone_set() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( date_timezone_set($invalid_obj, $timezone) ); +var_dump( date_timezone_set($invalid_obj, $timezone) ); $invalid_obj = 10; var_dump( date_timezone_set($invalid_obj, $timezone) ); $invalid_obj = null; -var_dump( date_timezone_set($invalid_obj, $timezone) ); +var_dump( date_timezone_set($invalid_obj, $timezone) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/date_timezone_set_variation1.phpt b/ext/date/tests/date_timezone_set_variation1.phpt index f0071328d3..7b2407f830 100644 --- a/ext/date/tests/date_timezone_set_variation1.phpt +++ b/ext/date/tests/date_timezone_set_variation1.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_timezone_set_variation2.phpt b/ext/date/tests/date_timezone_set_variation2.phpt index f32ffa3b46..d96f8dd6b7 100644 --- a/ext/date/tests/date_timezone_set_variation2.phpt +++ b/ext/date/tests/date_timezone_set_variation2.phpt @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_variation1.phpt b/ext/date/tests/date_variation1.phpt index a7193591d0..cdbb1b1793 100644 --- a/ext/date/tests/date_variation1.phpt +++ b/ext/date/tests/date_variation1.phpt @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/date_variation2.phpt b/ext/date/tests/date_variation2.phpt index 5d2535c833..a9652b4b59 100644 --- a/ext/date/tests/date_variation2.phpt +++ b/ext/date/tests/date_variation2.phpt @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/getdate_error.phpt b/ext/date/tests/getdate_error.phpt index 149d06695b..5b6cb369e0 100644 --- a/ext/date/tests/getdate_error.phpt +++ b/ext/date/tests/getdate_error.phpt @@ -5,7 +5,7 @@ Test getdate() function : error conditions /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : error conditions ***\n"; diff --git a/ext/date/tests/getdate_variation1.phpt b/ext/date/tests/getdate_variation1.phpt index c74eb4c715..ac3bfef2ea 100644 --- a/ext/date/tests/getdate_variation1.phpt +++ b/ext/date/tests/getdate_variation1.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Passing unexpected values to first a /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation2.phpt b/ext/date/tests/getdate_variation2.phpt index bd3b6d5779..cb900e260f 100644 --- a/ext/date/tests/getdate_variation2.phpt +++ b/ext/date/tests/getdate_variation2.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Passing octal timestamp values /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation3.phpt b/ext/date/tests/getdate_variation3.phpt index 7001237d0a..f1b9f858b1 100644 --- a/ext/date/tests/getdate_variation3.phpt +++ b/ext/date/tests/getdate_variation3.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Passing hexadcimal timestamp values /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation4.phpt b/ext/date/tests/getdate_variation4.phpt index 59c1681cd7..9e4f43da62 100644 --- a/ext/date/tests/getdate_variation4.phpt +++ b/ext/date/tests/getdate_variation4.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Verifyig by supplying year-wise samp /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation5.phpt b/ext/date/tests/getdate_variation5.phpt index 9cf29a2fc8..b34b5772c2 100644 --- a/ext/date/tests/getdate_variation5.phpt +++ b/ext/date/tests/getdate_variation5.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Verifyig with different timezones on /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation6.phpt b/ext/date/tests/getdate_variation6.phpt index 64943ce864..e5b3e91730 100644 --- a/ext/date/tests/getdate_variation6.phpt +++ b/ext/date/tests/getdate_variation6.phpt @@ -5,7 +5,7 @@ Test getdate() function : usage variation - Passing strings containing numbers /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/getdate_variation7.phpt b/ext/date/tests/getdate_variation7.phpt index dcff205f68..7563292d3f 100644 --- a/ext/date/tests/getdate_variation7.phpt +++ b/ext/date/tests/getdate_variation7.phpt @@ -7,7 +7,7 @@ Test getdate() function : usage variation - Passing high positive and negative f /* Prototype : array getdate([int timestamp]) * Description: Get date/time information * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing getdate() : usage variation ***\n"; diff --git a/ext/date/tests/gettimeofday_basic.phpt b/ext/date/tests/gettimeofday_basic.phpt index fe04f015e5..5863450361 100644 --- a/ext/date/tests/gettimeofday_basic.phpt +++ b/ext/date/tests/gettimeofday_basic.phpt @@ -5,7 +5,7 @@ Test gettimeofday() function : basic functionality /* Prototype : array gettimeofday([bool get_as_float]) * Description: Returns the current time as array * Source code: ext/standard/microtime.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gettimeofday() : basic functionality ***\n"; diff --git a/ext/date/tests/gettimeofday_error.phpt b/ext/date/tests/gettimeofday_error.phpt index 558a381fe3..374ceed044 100644 --- a/ext/date/tests/gettimeofday_error.phpt +++ b/ext/date/tests/gettimeofday_error.phpt @@ -5,7 +5,7 @@ Test gettimeofday() function : error conditions /* Prototype : array gettimeofday([bool get_as_float]) * Description: Returns the current time as array * Source code: ext/standard/microtime.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gettimeofday() : error conditions ***\n"; diff --git a/ext/date/tests/gmdate_basic.phpt b/ext/date/tests/gmdate_basic.phpt index ae036cacba..731a2da21f 100644 --- a/ext/date/tests/gmdate_basic.phpt +++ b/ext/date/tests/gmdate_basic.phpt @@ -5,7 +5,7 @@ Test gmdate() function : basic functionality /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : basic functionality ***\n"; diff --git a/ext/date/tests/gmdate_error.phpt b/ext/date/tests/gmdate_error.phpt index fbee071269..35c66306db 100644 --- a/ext/date/tests/gmdate_error.phpt +++ b/ext/date/tests/gmdate_error.phpt @@ -5,7 +5,7 @@ Test gmdate() function : error conditions /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : error conditions ***\n"; diff --git a/ext/date/tests/gmdate_variation1.phpt b/ext/date/tests/gmdate_variation1.phpt index e2e2331958..e507dd01d7 100644 --- a/ext/date/tests/gmdate_variation1.phpt +++ b/ext/date/tests/gmdate_variation1.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing unexpected values to format a /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation10.phpt b/ext/date/tests/gmdate_variation10.phpt index d5298368d3..34075ed85c 100644 --- a/ext/date/tests/gmdate_variation10.phpt +++ b/ext/date/tests/gmdate_variation10.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Timezone format options to fo /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation11.phpt b/ext/date/tests/gmdate_variation11.phpt index a9520907cb..167116be52 100644 --- a/ext/date/tests/gmdate_variation11.phpt +++ b/ext/date/tests/gmdate_variation11.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Full Date/Time format options /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation12.phpt b/ext/date/tests/gmdate_variation12.phpt index 8f0146f384..5ef244ccd5 100644 --- a/ext/date/tests/gmdate_variation12.phpt +++ b/ext/date/tests/gmdate_variation12.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Valid and invalid range of timestamp. /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation2.phpt b/ext/date/tests/gmdate_variation2.phpt index f22c52fcd0..4c4ade7aea 100644 --- a/ext/date/tests/gmdate_variation2.phpt +++ b/ext/date/tests/gmdate_variation2.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing unexpected values to timestam /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation3.phpt b/ext/date/tests/gmdate_variation3.phpt index a93d6e9239..4c6c0471a2 100644 --- a/ext/date/tests/gmdate_variation3.phpt +++ b/ext/date/tests/gmdate_variation3.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing numeric representation of day /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation4.phpt b/ext/date/tests/gmdate_variation4.phpt index bb97b567c6..6704588924 100644 --- a/ext/date/tests/gmdate_variation4.phpt +++ b/ext/date/tests/gmdate_variation4.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing textual representation of day /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation5.phpt b/ext/date/tests/gmdate_variation5.phpt index d40488a692..4dd78b535a 100644 --- a/ext/date/tests/gmdate_variation5.phpt +++ b/ext/date/tests/gmdate_variation5.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Week representation to format /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation6.phpt b/ext/date/tests/gmdate_variation6.phpt index f5b63a5b3f..3785cd16dc 100644 --- a/ext/date/tests/gmdate_variation6.phpt +++ b/ext/date/tests/gmdate_variation6.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Month format options to forma /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation7.phpt b/ext/date/tests/gmdate_variation7.phpt index 8d9c1b0b97..1e6b32c484 100644 --- a/ext/date/tests/gmdate_variation7.phpt +++ b/ext/date/tests/gmdate_variation7.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Year format options to format /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; diff --git a/ext/date/tests/gmdate_variation9.phpt b/ext/date/tests/gmdate_variation9.phpt index e210557ace..74fa312419 100644 --- a/ext/date/tests/gmdate_variation9.phpt +++ b/ext/date/tests/gmdate_variation9.phpt @@ -5,7 +5,7 @@ Test gmdate() function : usage variation - Passing Time format options to format /* Prototype : string gmdate(string format [, long timestamp]) * Description: Format a GMT date/time * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmdate() : usage variation ***\n"; @@ -32,7 +32,7 @@ foreach($time_formats as $key =>$value) { echo "\n--$key--\n"; var_dump( gmdate($value) ); var_dump( gmdate($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/gmmktime_basic.phpt b/ext/date/tests/gmmktime_basic.phpt index 58777ef771..1212fe2589 100644 --- a/ext/date/tests/gmmktime_basic.phpt +++ b/ext/date/tests/gmmktime_basic.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : basic functionality /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : basic functionality ***\n"; diff --git a/ext/date/tests/gmmktime_error.phpt b/ext/date/tests/gmmktime_error.phpt index 62e62057ea..88698e3543 100644 --- a/ext/date/tests/gmmktime_error.phpt +++ b/ext/date/tests/gmmktime_error.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : error conditions /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : error conditions ***\n"; diff --git a/ext/date/tests/gmmktime_variation1.phpt b/ext/date/tests/gmmktime_variation1.phpt index d0e4da8fce..33e03cfb81 100644 --- a/ext/date/tests/gmmktime_variation1.phpt +++ b/ext/date/tests/gmmktime_variation1.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing unexpected values to first /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation2.phpt b/ext/date/tests/gmmktime_variation2.phpt index 5f77347a7e..0d1df0d62e 100644 --- a/ext/date/tests/gmmktime_variation2.phpt +++ b/ext/date/tests/gmmktime_variation2.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing unexpected values to second /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation3.phpt b/ext/date/tests/gmmktime_variation3.phpt index a3878ccd01..a5cb38867e 100644 --- a/ext/date/tests/gmmktime_variation3.phpt +++ b/ext/date/tests/gmmktime_variation3.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing unexpected values to third /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation4.phpt b/ext/date/tests/gmmktime_variation4.phpt index 41ae07afa1..114fca9da4 100644 --- a/ext/date/tests/gmmktime_variation4.phpt +++ b/ext/date/tests/gmmktime_variation4.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing unexpected values to fourth /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation7.phpt b/ext/date/tests/gmmktime_variation7.phpt index 3d0d25a003..a7fc305923 100644 --- a/ext/date/tests/gmmktime_variation7.phpt +++ b/ext/date/tests/gmmktime_variation7.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Checking with few optional argument /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation8.phpt b/ext/date/tests/gmmktime_variation8.phpt index dac3ecfe99..79e331fd2a 100644 --- a/ext/date/tests/gmmktime_variation8.phpt +++ b/ext/date/tests/gmmktime_variation8.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing octal and hexadecimal value /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; diff --git a/ext/date/tests/gmmktime_variation9.phpt b/ext/date/tests/gmmktime_variation9.phpt index fa463e0d69..592c788574 100644 --- a/ext/date/tests/gmmktime_variation9.phpt +++ b/ext/date/tests/gmmktime_variation9.phpt @@ -5,7 +5,7 @@ Test gmmktime() function : usage variation - Passing positive and negative float /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) * Description: Get UNIX timestamp for a GMT date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmmktime() : usage variation ***\n"; @@ -33,7 +33,7 @@ foreach($inputs as $key =>$value) { var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) ); var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) ); var_dump( gmmktime($hour, $min, $sec, $mon, $value, $value) ); -} +} ?> ===DONE=== --EXPECTREGEX-- diff --git a/ext/date/tests/gmstrftime_basic.phpt b/ext/date/tests/gmstrftime_basic.phpt index 17bad69d06..e6e3a57d90 100644 --- a/ext/date/tests/gmstrftime_basic.phpt +++ b/ext/date/tests/gmstrftime_basic.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : basic functionality /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : basic functionality ***\n"; diff --git a/ext/date/tests/gmstrftime_error.phpt b/ext/date/tests/gmstrftime_error.phpt index d28780fe03..78456f7d52 100644 --- a/ext/date/tests/gmstrftime_error.phpt +++ b/ext/date/tests/gmstrftime_error.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : error conditions /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : error conditions ***\n"; diff --git a/ext/date/tests/gmstrftime_variation1.phpt b/ext/date/tests/gmstrftime_variation1.phpt index d123fb2542..5c64035fca 100644 --- a/ext/date/tests/gmstrftime_variation1.phpt +++ b/ext/date/tests/gmstrftime_variation1.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing unexpected values to firs /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation10.phpt b/ext/date/tests/gmstrftime_variation10.phpt index 0e54d846ea..55c8af88b6 100644 --- a/ext/date/tests/gmstrftime_variation10.phpt +++ b/ext/date/tests/gmstrftime_variation10.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation11.phpt b/ext/date/tests/gmstrftime_variation11.phpt index d760a6d951..80a4572544 100644 --- a/ext/date/tests/gmstrftime_variation11.phpt +++ b/ext/date/tests/gmstrftime_variation11.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking month related formats wh /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation12.phpt b/ext/date/tests/gmstrftime_variation12.phpt index 2c25af6e2a..7ef090a5ba 100644 --- a/ext/date/tests/gmstrftime_variation12.phpt +++ b/ext/date/tests/gmstrftime_variation12.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation13.phpt b/ext/date/tests/gmstrftime_variation13.phpt index 6bc0b034c7..638ba8ee9f 100644 --- a/ext/date/tests/gmstrftime_variation13.phpt +++ b/ext/date/tests/gmstrftime_variation13.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking date related formats whi /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation14.phpt b/ext/date/tests/gmstrftime_variation14.phpt index 880b4330c5..15f6f27726 100644 --- a/ext/date/tests/gmstrftime_variation14.phpt +++ b/ext/date/tests/gmstrftime_variation14.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation15.phpt b/ext/date/tests/gmstrftime_variation15.phpt index d430e9fe48..d7391d544a 100644 --- a/ext/date/tests/gmstrftime_variation15.phpt +++ b/ext/date/tests/gmstrftime_variation15.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking time related formats whi /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation16.phpt b/ext/date/tests/gmstrftime_variation16.phpt index fd9f809ea7..0bafab89f8 100644 --- a/ext/date/tests/gmstrftime_variation16.phpt +++ b/ext/date/tests/gmstrftime_variation16.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation17.phpt b/ext/date/tests/gmstrftime_variation17.phpt index 63c331b8aa..a3c920bff6 100644 --- a/ext/date/tests/gmstrftime_variation17.phpt +++ b/ext/date/tests/gmstrftime_variation17.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking day related formats whic /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation18.phpt b/ext/date/tests/gmstrftime_variation18.phpt index 7cd5948c6a..aa7182c559 100644 --- a/ext/date/tests/gmstrftime_variation18.phpt +++ b/ext/date/tests/gmstrftime_variation18.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation19.phpt b/ext/date/tests/gmstrftime_variation19.phpt index 1202e2c107..1445861621 100644 --- a/ext/date/tests/gmstrftime_variation19.phpt +++ b/ext/date/tests/gmstrftime_variation19.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking newline and tab formats /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation2.phpt b/ext/date/tests/gmstrftime_variation2.phpt index c29241b793..2026412ad1 100644 --- a/ext/date/tests/gmstrftime_variation2.phpt +++ b/ext/date/tests/gmstrftime_variation2.phpt @@ -11,7 +11,7 @@ if(PHP_INT_SIZE != 4 ) { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation20.phpt b/ext/date/tests/gmstrftime_variation20.phpt index a8898d8ec8..6ae77bec9f 100644 --- a/ext/date/tests/gmstrftime_variation20.phpt +++ b/ext/date/tests/gmstrftime_variation20.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation21.phpt b/ext/date/tests/gmstrftime_variation21.phpt index 2bdb34999d..c787f6d700 100644 --- a/ext/date/tests/gmstrftime_variation21.phpt +++ b/ext/date/tests/gmstrftime_variation21.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Checking Preferred date and time /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation22.phpt b/ext/date/tests/gmstrftime_variation22.phpt index d9abdce17a..158500a3c8 100644 --- a/ext/date/tests/gmstrftime_variation22.phpt +++ b/ext/date/tests/gmstrftime_variation22.phpt @@ -14,7 +14,7 @@ if (!setlocale(LC_TIME, "POSIX")) { /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation3.phpt b/ext/date/tests/gmstrftime_variation3.phpt index bc05c7b4c0..f0abcd3a05 100644 --- a/ext/date/tests/gmstrftime_variation3.phpt +++ b/ext/date/tests/gmstrftime_variation3.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing week related format strin /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation4.phpt b/ext/date/tests/gmstrftime_variation4.phpt index 619e633a9c..beb553a316 100644 --- a/ext/date/tests/gmstrftime_variation4.phpt +++ b/ext/date/tests/gmstrftime_variation4.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing month related format stri /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation5.phpt b/ext/date/tests/gmstrftime_variation5.phpt index 95e3bd2396..e86a10db56 100644 --- a/ext/date/tests/gmstrftime_variation5.phpt +++ b/ext/date/tests/gmstrftime_variation5.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing date related format strin /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation6.phpt b/ext/date/tests/gmstrftime_variation6.phpt index 92dd1ede30..beb6e26bde 100644 --- a/ext/date/tests/gmstrftime_variation6.phpt +++ b/ext/date/tests/gmstrftime_variation6.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing time related format strin /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation7.phpt b/ext/date/tests/gmstrftime_variation7.phpt index dd0584b702..93882b3b5b 100644 --- a/ext/date/tests/gmstrftime_variation7.phpt +++ b/ext/date/tests/gmstrftime_variation7.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing day related format string /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/gmstrftime_variation8.phpt b/ext/date/tests/gmstrftime_variation8.phpt index 0d3f6b0632..941fff871a 100644 --- a/ext/date/tests/gmstrftime_variation8.phpt +++ b/ext/date/tests/gmstrftime_variation8.phpt @@ -5,7 +5,7 @@ Test gmstrftime() function : usage variation - Passing literal related strings t /* Prototype : string gmstrftime(string format [, int timestamp]) * Description: Format a GMT/UCT time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gmstrftime() : usage variation ***\n"; diff --git a/ext/date/tests/idate_basic.phpt b/ext/date/tests/idate_basic.phpt index 944f29f5b1..1e6186203c 100644 --- a/ext/date/tests/idate_basic.phpt +++ b/ext/date/tests/idate_basic.phpt @@ -5,7 +5,7 @@ Test idate() function : basic functionality /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : basic functionality ***\n"; diff --git a/ext/date/tests/idate_error.phpt b/ext/date/tests/idate_error.phpt index 7dad4606d7..4bd11fd263 100644 --- a/ext/date/tests/idate_error.phpt +++ b/ext/date/tests/idate_error.phpt @@ -5,7 +5,7 @@ Test idate() function : error conditions /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : error conditions ***\n"; diff --git a/ext/date/tests/idate_variation1.phpt b/ext/date/tests/idate_variation1.phpt index c0231a6c0c..1b8f7cf029 100644 --- a/ext/date/tests/idate_variation1.phpt +++ b/ext/date/tests/idate_variation1.phpt @@ -5,7 +5,7 @@ Test idate() function : usage variation - Passing unexpected values to first arg /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; diff --git a/ext/date/tests/idate_variation2.phpt b/ext/date/tests/idate_variation2.phpt index 16730bbc4b..b574996a17 100644 --- a/ext/date/tests/idate_variation2.phpt +++ b/ext/date/tests/idate_variation2.phpt @@ -5,7 +5,7 @@ Test idate() function : usage variation - Passing unexpected values to second op /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; diff --git a/ext/date/tests/idate_variation3.phpt b/ext/date/tests/idate_variation3.phpt index a2fa0c1a62..f90003d4a0 100644 --- a/ext/date/tests/idate_variation3.phpt +++ b/ext/date/tests/idate_variation3.phpt @@ -7,7 +7,7 @@ Test idate() function : usage variation - Passing higher positive and negetive f /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; @@ -23,7 +23,7 @@ var_dump( idate($format, $timestamp) ); echo "\n-- Testing idate() function with float -12.3456789000e10 to timestamp --\n"; $timestamp = -12.3456789000e10; var_dump( idate($format, $timestamp) ); - + ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/idate_variation4.phpt b/ext/date/tests/idate_variation4.phpt index 6aa1735dfb..83377315b2 100644 --- a/ext/date/tests/idate_variation4.phpt +++ b/ext/date/tests/idate_variation4.phpt @@ -5,7 +5,7 @@ Test idate() function : usage variation - Passing supported Date format characte /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; diff --git a/ext/date/tests/idate_variation5.phpt b/ext/date/tests/idate_variation5.phpt index e70509c596..7a5dc53b7e 100644 --- a/ext/date/tests/idate_variation5.phpt +++ b/ext/date/tests/idate_variation5.phpt @@ -5,7 +5,7 @@ Test idate() function : usage variation - Passing supported Time format characte /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; diff --git a/ext/date/tests/idate_variation6.phpt b/ext/date/tests/idate_variation6.phpt index bc02e275af..0db41293c0 100644 --- a/ext/date/tests/idate_variation6.phpt +++ b/ext/date/tests/idate_variation6.phpt @@ -5,7 +5,7 @@ Test idate() function : usage variation - Checking return of year(1 or 2 digits) /* Prototype : int idate(string format [, int timestamp]) * Description: Format a local time/date as integer * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing idate() : usage variation ***\n"; diff --git a/ext/date/tests/localtime_basic.phpt b/ext/date/tests/localtime_basic.phpt index fcfd636fb3..e36ab76ec9 100644 --- a/ext/date/tests/localtime_basic.phpt +++ b/ext/date/tests/localtime_basic.phpt @@ -6,7 +6,7 @@ Test localtime() function : basic functionality * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : basic functionality ***\n"; diff --git a/ext/date/tests/localtime_error.phpt b/ext/date/tests/localtime_error.phpt index b231ed0749..9e0ebfc707 100644 --- a/ext/date/tests/localtime_error.phpt +++ b/ext/date/tests/localtime_error.phpt @@ -6,7 +6,7 @@ Test localtime() function : error conditions * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/localtime_variation1.phpt b/ext/date/tests/localtime_variation1.phpt index cc0b3a1138..4191692c65 100644 --- a/ext/date/tests/localtime_variation1.phpt +++ b/ext/date/tests/localtime_variation1.phpt @@ -6,7 +6,7 @@ Test localtime() function : usage variation - Passing unexpected values to first * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : usage variation ***\n"; diff --git a/ext/date/tests/localtime_variation2.phpt b/ext/date/tests/localtime_variation2.phpt index 7e2f4a5eee..ec796e27f2 100644 --- a/ext/date/tests/localtime_variation2.phpt +++ b/ext/date/tests/localtime_variation2.phpt @@ -6,7 +6,7 @@ Test localtime() function : usage variation - Passing unexpected values to secon * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : usage variation ***\n"; diff --git a/ext/date/tests/localtime_variation3.phpt b/ext/date/tests/localtime_variation3.phpt index c49cfbb949..eac15ca8e4 100644 --- a/ext/date/tests/localtime_variation3.phpt +++ b/ext/date/tests/localtime_variation3.phpt @@ -8,7 +8,7 @@ Test localtime() function : usage variation - Passing higher positive and negeti * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : usage variation ***\n"; diff --git a/ext/date/tests/localtime_variation4.phpt b/ext/date/tests/localtime_variation4.phpt index 5eedb7a3f6..37afeedc48 100644 --- a/ext/date/tests/localtime_variation4.phpt +++ b/ext/date/tests/localtime_variation4.phpt @@ -6,7 +6,7 @@ Test localtime() function : usage variation - Passing octal values to timestamp. * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : usage variation ***\n"; @@ -21,14 +21,14 @@ $inputs = array( 'Octal 0' => 00, 'Octal 10' => 012, 'Octal -10' => -012 -); +); foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( localtime($value) ); var_dump( localtime($value, $is_associative) ); } - + ?> ===DONE=== --EXPECT-- diff --git a/ext/date/tests/localtime_variation5.phpt b/ext/date/tests/localtime_variation5.phpt index cd48a162af..7b09da4763 100644 --- a/ext/date/tests/localtime_variation5.phpt +++ b/ext/date/tests/localtime_variation5.phpt @@ -6,7 +6,7 @@ Test localtime() function : usage variation - Passing hexa decimal values to tim * Description: Returns the results of the C system call localtime as an associative array * if the associative_array argument is set to 1 other wise it is a regular array * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing localtime() : usage variation ***\n"; @@ -21,14 +21,14 @@ $inputs = array( 'Hexa-decimal 0' => 0x0, 'Hexa-decimal 10' => 0xA, 'Hexa-decimal -10' => -0XA -); +); foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( localtime($value) ); var_dump( localtime($value, $is_associative) ); } - + ?> ===DONE=== --EXPECT-- diff --git a/ext/date/tests/microtime_basic.phpt b/ext/date/tests/microtime_basic.phpt index 88c4952295..a9045947cb 100644 --- a/ext/date/tests/microtime_basic.phpt +++ b/ext/date/tests/microtime_basic.phpt @@ -2,10 +2,10 @@ Test return type and value for expected input microtime() --FILE-- <?php -/* +/* * proto mixed microtime([bool get_as_float]) * Function is implemented in ext/standard/microtime.c -*/ +*/ var_dump(microtime()); var_dump(microtime(true)); diff --git a/ext/date/tests/microtime_error.phpt b/ext/date/tests/microtime_error.phpt index c5a45e9abd..201456b8c0 100644 --- a/ext/date/tests/microtime_error.phpt +++ b/ext/date/tests/microtime_error.phpt @@ -2,10 +2,10 @@ Test wrong number of arguments for microtime() --FILE-- <?php -/* +/* * proto mixed microtime([bool get_as_float]) * Function is implemented in ext/standard/microtime.c -*/ +*/ $opt_arg_0 = true; $extra_arg = 1; diff --git a/ext/date/tests/mktime-1.phpt b/ext/date/tests/mktime-1.phpt index 86723e01ac..0b98de492e 100644 --- a/ext/date/tests/mktime-1.phpt +++ b/ext/date/tests/mktime-1.phpt @@ -3,7 +3,7 @@ Check for mktime with out-of-range parameters --INI-- error_reporting=E_ALL --FILE-- -<?php +<?php date_default_timezone_set("Europe/Amsterdam"); # MacOS/X libc implementation doesn't treat out-of-range values diff --git a/ext/date/tests/mktime_basic1.phpt b/ext/date/tests/mktime_basic1.phpt index ad95f138fc..c7ac013c6e 100644 --- a/ext/date/tests/mktime_basic1.phpt +++ b/ext/date/tests/mktime_basic1.phpt @@ -5,7 +5,7 @@ Test mktime() function : basic functionality /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/mktime_error.phpt b/ext/date/tests/mktime_error.phpt index c08eefe9d7..f914f823d0 100644 --- a/ext/date/tests/mktime_error.phpt +++ b/ext/date/tests/mktime_error.phpt @@ -5,7 +5,7 @@ Test mktime() function : error conditions /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/mktime_variation1.phpt b/ext/date/tests/mktime_variation1.phpt index 0ccc31da40..3523155bf3 100644 --- a/ext/date/tests/mktime_variation1.phpt +++ b/ext/date/tests/mktime_variation1.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to first ar /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to first argument \$hour***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -100,7 +100,7 @@ $sec = 45; $month = 7; $day = 2; $year = 1963; -$is_dst = 0; +$is_dst = 0; foreach($inputs as $variation =>$hour) { echo "\n-- $variation --\n"; diff --git a/ext/date/tests/mktime_variation2.phpt b/ext/date/tests/mktime_variation2.phpt index b6957ce6dc..2c0ab35864 100644 --- a/ext/date/tests/mktime_variation2.phpt +++ b/ext/date/tests/mktime_variation2.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to second a /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to second argument \$minute***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/mktime_variation3.phpt b/ext/date/tests/mktime_variation3.phpt index 5ea479e801..4f1cbcc3e5 100644 --- a/ext/date/tests/mktime_variation3.phpt +++ b/ext/date/tests/mktime_variation3.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to third ar /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to third argument \$second***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/mktime_variation4.phpt b/ext/date/tests/mktime_variation4.phpt index af6bc1f29c..1a398d090e 100644 --- a/ext/date/tests/mktime_variation4.phpt +++ b/ext/date/tests/mktime_variation4.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to forth ar /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to forth argument \$month***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/mktime_variation5.phpt b/ext/date/tests/mktime_variation5.phpt index 9fbf70b907..81fcb2c44a 100644 --- a/ext/date/tests/mktime_variation5.phpt +++ b/ext/date/tests/mktime_variation5.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to fifth ar /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to fifth argument \$day***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/mktime_variation6.phpt b/ext/date/tests/mktime_variation6.phpt index 6328699b68..28c097ad8c 100644 --- a/ext/date/tests/mktime_variation6.phpt +++ b/ext/date/tests/mktime_variation6.phpt @@ -5,7 +5,7 @@ Test mktime() function : usage variation - Passing unexpected values to sixth ar /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] ) * Description: Get Unix timestamp for a date * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing mktime() : usage variation - unexpected values to sixth argument \$year***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/strftime_basic.phpt b/ext/date/tests/strftime_basic.phpt index 07f22af823..ddc02dc612 100644 --- a/ext/date/tests/strftime_basic.phpt +++ b/ext/date/tests/strftime_basic.phpt @@ -5,7 +5,7 @@ Test strftime() function : basic functionality /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : basic functionality ***\n"; diff --git a/ext/date/tests/strftime_error.phpt b/ext/date/tests/strftime_error.phpt index 19663798e3..427fdd339f 100644 --- a/ext/date/tests/strftime_error.phpt +++ b/ext/date/tests/strftime_error.phpt @@ -5,7 +5,7 @@ Test strftime() function : error conditions /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : error conditions ***\n"; diff --git a/ext/date/tests/strftime_variation1.phpt b/ext/date/tests/strftime_variation1.phpt index 04b4819fe5..f76b06f8d7 100644 --- a/ext/date/tests/strftime_variation1.phpt +++ b/ext/date/tests/strftime_variation1.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing unexpected values to first /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation10.phpt b/ext/date/tests/strftime_variation10.phpt index 7d2a1b8fcd..d37f68e3fe 100644 --- a/ext/date/tests/strftime_variation10.phpt +++ b/ext/date/tests/strftime_variation10.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -33,7 +33,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation11.phpt b/ext/date/tests/strftime_variation11.phpt index 95d2d6aaa9..bec1603cc9 100644 --- a/ext/date/tests/strftime_variation11.phpt +++ b/ext/date/tests/strftime_variation11.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking month related formats whic /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation12.phpt b/ext/date/tests/strftime_variation12.phpt index b798f428f6..8bd12f442f 100644 --- a/ext/date/tests/strftime_variation12.phpt +++ b/ext/date/tests/strftime_variation12.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation13.phpt b/ext/date/tests/strftime_variation13.phpt index 4e0385fd71..4e39c4c7b9 100644 --- a/ext/date/tests/strftime_variation13.phpt +++ b/ext/date/tests/strftime_variation13.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking date related formats which /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -29,7 +29,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation14.phpt b/ext/date/tests/strftime_variation14.phpt index 7ccb7d283d..b7cbf18db3 100644 --- a/ext/date/tests/strftime_variation14.phpt +++ b/ext/date/tests/strftime_variation14.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -35,7 +35,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation15.phpt b/ext/date/tests/strftime_variation15.phpt index 8bfc07ddff..fe2b981f23 100644 --- a/ext/date/tests/strftime_variation15.phpt +++ b/ext/date/tests/strftime_variation15.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking time related formats which /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -28,7 +28,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation16.phpt b/ext/date/tests/strftime_variation16.phpt index 5103b3add8..a3c4858ed4 100644 --- a/ext/date/tests/strftime_variation16.phpt +++ b/ext/date/tests/strftime_variation16.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -34,7 +34,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation17.phpt b/ext/date/tests/strftime_variation17.phpt index 99acdacbb4..fb42aeaab8 100644 --- a/ext/date/tests/strftime_variation17.phpt +++ b/ext/date/tests/strftime_variation17.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking day related formats which /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation18.phpt b/ext/date/tests/strftime_variation18.phpt index 4340325dfa..f181492a18 100644 --- a/ext/date/tests/strftime_variation18.phpt +++ b/ext/date/tests/strftime_variation18.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation19.phpt b/ext/date/tests/strftime_variation19.phpt index 7989e01c7d..ae54251f8f 100644 --- a/ext/date/tests/strftime_variation19.phpt +++ b/ext/date/tests/strftime_variation19.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking newline and tab formats wh /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -27,7 +27,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation2.phpt b/ext/date/tests/strftime_variation2.phpt index ac76225eb3..cb5ecd605a 100644 --- a/ext/date/tests/strftime_variation2.phpt +++ b/ext/date/tests/strftime_variation2.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing unexpected values to second /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation20.phpt b/ext/date/tests/strftime_variation20.phpt index 336c6d2afb..0f452d7bce 100644 --- a/ext/date/tests/strftime_variation20.phpt +++ b/ext/date/tests/strftime_variation20.phpt @@ -11,7 +11,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -33,7 +33,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation21.phpt b/ext/date/tests/strftime_variation21.phpt index 3cdc3b6995..e6bff7ce17 100644 --- a/ext/date/tests/strftime_variation21.phpt +++ b/ext/date/tests/strftime_variation21.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking Preferred date and time re /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -28,7 +28,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation22.phpt b/ext/date/tests/strftime_variation22.phpt index 7b72ca51e1..5438d1ed5b 100644 --- a/ext/date/tests/strftime_variation22.phpt +++ b/ext/date/tests/strftime_variation22.phpt @@ -14,7 +14,7 @@ if(!setlocale(LC_ALL, "POSIX")) { /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -38,7 +38,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( $value ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strftime_variation23.phpt b/ext/date/tests/strftime_variation23.phpt index 58b266c20f..2cb7ec6727 100644 --- a/ext/date/tests/strftime_variation23.phpt +++ b/ext/date/tests/strftime_variation23.phpt @@ -7,7 +7,7 @@ Test strftime() function : usage variation - Checking large positive and negativ /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation3.phpt b/ext/date/tests/strftime_variation3.phpt index 342cb76925..1e6938a360 100644 --- a/ext/date/tests/strftime_variation3.phpt +++ b/ext/date/tests/strftime_variation3.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing week related format strings /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation4.phpt b/ext/date/tests/strftime_variation4.phpt index 6236dd9e7f..366853ee41 100644 --- a/ext/date/tests/strftime_variation4.phpt +++ b/ext/date/tests/strftime_variation4.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing month related format string /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation5.phpt b/ext/date/tests/strftime_variation5.phpt index 90f4e37ba3..2f9180202d 100644 --- a/ext/date/tests/strftime_variation5.phpt +++ b/ext/date/tests/strftime_variation5.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing date related format strings /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation6.phpt b/ext/date/tests/strftime_variation6.phpt index 6713a198e9..28acdeb933 100644 --- a/ext/date/tests/strftime_variation6.phpt +++ b/ext/date/tests/strftime_variation6.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing time related format strings /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation7.phpt b/ext/date/tests/strftime_variation7.phpt index 67fd416ac0..3a6fcc980d 100644 --- a/ext/date/tests/strftime_variation7.phpt +++ b/ext/date/tests/strftime_variation7.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing day related format strings /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation8.phpt b/ext/date/tests/strftime_variation8.phpt index 2dd50931e6..8d6b69ca67 100644 --- a/ext/date/tests/strftime_variation8.phpt +++ b/ext/date/tests/strftime_variation8.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Passing literal related strings to /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; diff --git a/ext/date/tests/strftime_variation9.phpt b/ext/date/tests/strftime_variation9.phpt index 6318282253..c8506b17db 100644 --- a/ext/date/tests/strftime_variation9.phpt +++ b/ext/date/tests/strftime_variation9.phpt @@ -5,7 +5,7 @@ Test strftime() function : usage variation - Checking week related formats which /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; @@ -27,7 +27,7 @@ foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( strftime($value) ); var_dump( strftime($value, $timestamp) ); -} +} ?> ===DONE=== diff --git a/ext/date/tests/strtotime-relative.phpt b/ext/date/tests/strtotime-relative.phpt index 769cd2ec2e..293223bb2d 100644 --- a/ext/date/tests/strtotime-relative.phpt +++ b/ext/date/tests/strtotime-relative.phpt @@ -14,28 +14,28 @@ $offsets = array( '86400 seconds', '86401 seconds', '112913 seconds', - + // offset around 7 days '134 hours', '167 hours', '168 hours', '169 hours', '183 hours', - + // offset around 6 months '178 days', '179 days', '180 days', '183 days', '184 days', - + // offset around 10 years '115 months', '119 months', '120 months', '121 months', '128 months', - + // offset around 25 years (can't do much more reliably with strtotime) '24 years', '25 years', @@ -46,7 +46,7 @@ foreach ($offsets AS $offset) { foreach (array('+', '-') AS $direction) { echo "$direction$offset: " . date(DATE_ISO8601, strtotime("$direction$offset", $base_time)) . "\n"; } -} +} ?> --EXPECT-- diff --git a/ext/date/tests/strtotime_basic.phpt b/ext/date/tests/strtotime_basic.phpt index b2d971c785..a476611f29 100644 --- a/ext/date/tests/strtotime_basic.phpt +++ b/ext/date/tests/strtotime_basic.phpt @@ -10,7 +10,7 @@ date_default_timezone_set('UTC'); /* * This is parsed as the "first following Monday OR the current day if it is a Monday" - */ + */ var_dump(date('Y-m-d', strtotime('1 Monday December 2008'))); /* * This is parsed as the "second following Monday OR the first following @@ -24,15 +24,15 @@ var_dump(date('Y-m-d', strtotime('2 Monday December 2008'))); var_dump(date('Y-m-d', strtotime('3 Monday December 2008'))); /* * This is parsed as the "first following Monday after the first Monday in December" - */ + */ var_dump(date('Y-m-d', strtotime('first Monday December 2008'))); /* * This is parsed as the "second following Monday after the first Monday in December" - */ + */ var_dump(date('Y-m-d', strtotime('second Monday December 2008'))); /* * This is parsed as the "third following Monday after the first Monday in December" - */ + */ var_dump(date('Y-m-d', strtotime('third Monday December 2008'))); ?> --EXPECT-- diff --git a/ext/date/tests/sunfuncts.phpt b/ext/date/tests/sunfuncts.phpt index 8309b69c51..672b3affe2 100644 --- a/ext/date/tests/sunfuncts.phpt +++ b/ext/date/tests/sunfuncts.phpt @@ -9,7 +9,7 @@ for($a=1;$a<=12;$a++){ echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." "; echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." "; echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n"; - + echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." "; echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." "; echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n"; diff --git a/ext/date/tests/time_basic.phpt b/ext/date/tests/time_basic.phpt index 116c0a4175..7b93e9dac2 100644 --- a/ext/date/tests/time_basic.phpt +++ b/ext/date/tests/time_basic.phpt @@ -2,10 +2,10 @@ Test return type and value for expected input time() --FILE-- <?php -/* +/* * proto int time(void) * Function is implemented in ext/date/php_date.c -*/ +*/ var_dump(time()); diff --git a/ext/date/tests/time_error.phpt b/ext/date/tests/time_error.phpt index b1d136feb2..30ba99d12c 100644 --- a/ext/date/tests/time_error.phpt +++ b/ext/date/tests/time_error.phpt @@ -2,10 +2,10 @@ Test wrong number of arguments for time() --FILE-- <?php -/* +/* * proto int time(void) * Function is implemented in ext/date/php_date.c -*/ +*/ // Extra arguments are ignored $extra_arg = 1; diff --git a/ext/date/tests/timezone-configuration.phpt b/ext/date/tests/timezone-configuration.phpt index c70d6456d0..b395853033 100644 --- a/ext/date/tests/timezone-configuration.phpt +++ b/ext/date/tests/timezone-configuration.phpt @@ -1,6 +1,6 @@ --TEST-- timezone configuration [1] ---INI-- +--INI-- date.timezone=GMT --FILE-- <?php diff --git a/ext/date/tests/timezone_abbreviations_list_basic1.phpt b/ext/date/tests/timezone_abbreviations_list_basic1.phpt index 3c9ea1204c..0fbbc95bc6 100644 --- a/ext/date/tests/timezone_abbreviations_list_basic1.phpt +++ b/ext/date/tests/timezone_abbreviations_list_basic1.phpt @@ -19,7 +19,7 @@ var_dump( gettype($abbr) ); var_dump( count($abbr) ); echo "\n-- Format a sample entry --\n"; -var_dump( $abbr["acst"] ); +var_dump( $abbr["acst"] ); ?> ===DONE=== diff --git a/ext/date/tests/timezone_name_from_abbr_basic1.phpt b/ext/date/tests/timezone_name_from_abbr_basic1.phpt index 1a7ea5e4cf..f7745cb73f 100644 --- a/ext/date/tests/timezone_name_from_abbr_basic1.phpt +++ b/ext/date/tests/timezone_name_from_abbr_basic1.phpt @@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : basic functionality /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] ) * Description: Returns the timezone name from abbrevation * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing timezone_name_from_abbr() : basic functionality ***\n"; @@ -13,7 +13,7 @@ echo "*** Testing timezone_name_from_abbr() : basic functionality ***\n"; //Set the default time zone date_default_timezone_set("Europe/London"); -echo "-- Tests with special cases first - no lookup needed --\n"; +echo "-- Tests with special cases first - no lookup needed --\n"; var_dump( timezone_name_from_abbr("GMT") ); var_dump( timezone_name_from_abbr("UTC") ); @@ -21,17 +21,17 @@ echo "-- Lookup with just name --\n"; var_dump( timezone_name_from_abbr("CET") ); var_dump( timezone_name_from_abbr("EDT") ); -echo "-- Lookup with name and offset--\n"; +echo "-- Lookup with name and offset--\n"; var_dump( timezone_name_from_abbr("ADT", -10800) ); var_dump( timezone_name_from_abbr("ADT", 14400) ); -echo "-- Tests without valid name - uses gmtOffset and isdst to find match --\n"; +echo "-- Tests without valid name - uses gmtOffset and isdst to find match --\n"; var_dump( timezone_name_from_abbr("", 3600, 1) ); var_dump( timezone_name_from_abbr("FOO", -7200, 1) ); var_dump( timezone_name_from_abbr("", -14400, 1) ); var_dump( timezone_name_from_abbr("", -14400, 0) ); -echo "-- Tests with invalid offsets --\n"; +echo "-- Tests with invalid offsets --\n"; var_dump( timezone_name_from_abbr("", 5400) ); // offset = 1.5 hrs var_dump( timezone_name_from_abbr("", 62400) ); // offset = 24 hrs ?> diff --git a/ext/date/tests/timezone_name_from_abbr_error.phpt b/ext/date/tests/timezone_name_from_abbr_error.phpt index 866cef5996..2bb16e5cb6 100644 --- a/ext/date/tests/timezone_name_from_abbr_error.phpt +++ b/ext/date/tests/timezone_name_from_abbr_error.phpt @@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : error conditions /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] ) * Description: Returns the timezone name from abbrevation * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/date/tests/timezone_name_from_abbr_variation1.phpt b/ext/date/tests/timezone_name_from_abbr_variation1.phpt index 4825d09f5b..63653a9606 100644 --- a/ext/date/tests/timezone_name_from_abbr_variation1.phpt +++ b/ext/date/tests/timezone_name_from_abbr_variation1.phpt @@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : usage variation - Passing unexpected v /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] ) * Description: Returns the timezone name from abbrevation * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing timezone_name_from_abbr() : usage variation - unexpected values to first argument \$abbr***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_name_from_abbr_variation2.phpt b/ext/date/tests/timezone_name_from_abbr_variation2.phpt index a3c9a1e1e0..8c68f05a95 100644 --- a/ext/date/tests/timezone_name_from_abbr_variation2.phpt +++ b/ext/date/tests/timezone_name_from_abbr_variation2.phpt @@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : usage variation - Passing unexpected v /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] ) * Description: Returns the timezone name from abbrevation * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing timezone_name_from_abbr() : usage variation - unexpected values to second argument \$gmtOffset***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_name_from_abbr_variation3.phpt b/ext/date/tests/timezone_name_from_abbr_variation3.phpt index 94c38a9e82..f5b46dd10e 100644 --- a/ext/date/tests/timezone_name_from_abbr_variation3.phpt +++ b/ext/date/tests/timezone_name_from_abbr_variation3.phpt @@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : usage variation - Passing unexpected v /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] ) * Description: Returns the timezone name from abbrevation * Source code: ext/date/php_date.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing timezone_name_from_abbr() : usage variation - unexpected values to third argument \$isdst***\n"; @@ -89,7 +89,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_name_get_error.phpt b/ext/date/tests/timezone_name_get_error.phpt index 185b564052..fd9763480c 100644 --- a/ext/date/tests/timezone_name_get_error.phpt +++ b/ext/date/tests/timezone_name_get_error.phpt @@ -5,16 +5,16 @@ Test timezone_name_get() function : error conditions /* Prototype : string timezone_name_get ( DateTime $object ) * Description: Returns the name of the timezone * Source code: ext/date/php_date.c - * Alias to functions: DateTimeZone::getName() + * Alias to functions: DateTimeZone::getName() */ - + // Set timezone date_default_timezone_set("Europe/London"); echo "*** Testing timezone_name_get() : error conditions ***\n"; echo "\n-- Testing timezone_name_get() function with zero arguments --\n"; -var_dump( timezone_name_get() ); +var_dump( timezone_name_get() ); echo "\n-- Testing date_timezone_set() function with more than expected no. of arguments --\n"; $datetime = date_create("2009-01-30 17:57:32"); @@ -23,11 +23,11 @@ var_dump( timezone_name_get($datetime, $extra_arg) ); echo "\n-- Testing timezone_name_get() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( timezone_name_get($invalid_obj) ); +var_dump( timezone_name_get($invalid_obj) ); $invalid_obj = 10; var_dump( timezone_name_get($invalid_obj) ); $invalid_obj = null; -var_dump( timezone_name_get($invalid_obj) ); +var_dump( timezone_name_get($invalid_obj) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/timezone_offset_get_variation1.phpt b/ext/date/tests/timezone_offset_get_variation1.phpt index 1aeab06c5c..d0230f8273 100644 --- a/ext/date/tests/timezone_offset_get_variation1.phpt +++ b/ext/date/tests/timezone_offset_get_variation1.phpt @@ -7,7 +7,7 @@ Test timezone_offset_get() function : usage variation - Passing unexpected value * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getOffset() */ - + echo "*** Testing timezone_offset_get() : usage variation - unexpected values to first argument \$object***\n"; //Set the default time zone @@ -98,7 +98,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_offset_get_variation2.phpt b/ext/date/tests/timezone_offset_get_variation2.phpt index 3bb8e69823..88bb2ceb01 100644 --- a/ext/date/tests/timezone_offset_get_variation2.phpt +++ b/ext/date/tests/timezone_offset_get_variation2.phpt @@ -7,7 +7,7 @@ Test timezone_offset_get() function : usage variation - Passing unexpected value * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getOffset() */ - + echo "*** Testing timezone_offset_get() : usage variation - unexpected values to second argument \$datetime***\n"; //Set the default time zone @@ -98,7 +98,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_open_error.phpt b/ext/date/tests/timezone_open_error.phpt index 16c5f0b09f..69c5fb7110 100644 --- a/ext/date/tests/timezone_open_error.phpt +++ b/ext/date/tests/timezone_open_error.phpt @@ -7,7 +7,7 @@ Test timezone_open() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTime::__construct() */ - + echo "*** Testing timezone_open() : error conditions ***\n"; echo "\n-- Testing timezone_open() function with zero arguments --\n"; diff --git a/ext/date/tests/timezone_open_variation1.phpt b/ext/date/tests/timezone_open_variation1.phpt index eb4d4b782e..acb1ada305 100644 --- a/ext/date/tests/timezone_open_variation1.phpt +++ b/ext/date/tests/timezone_open_variation1.phpt @@ -88,7 +88,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); @@ -96,7 +96,7 @@ $inputs = array( foreach($inputs as $variation =>$timezone) { echo "\n-- $variation --\n"; var_dump( timezone_open($timezone) ); - + }; // closing the resource diff --git a/ext/date/tests/timezone_transitions_get_basic1.phpt b/ext/date/tests/timezone_transitions_get_basic1.phpt index 97c5f0ccc1..a7a191df31 100644 --- a/ext/date/tests/timezone_transitions_get_basic1.phpt +++ b/ext/date/tests/timezone_transitions_get_basic1.phpt @@ -22,7 +22,7 @@ echo "\n-- Get all 60s transitions --\n"; $tran = timezone_transitions_get($tz, -306972000, -37241999); var_dump( gettype($tran) ); -echo "\n-- Total number of transitions: " . count($tran). " --\n"; +echo "\n-- Total number of transitions: " . count($tran). " --\n"; echo "\n-- Format a sample entry pfor Spring 1963 --\n"; var_dump( $tran[6] ); diff --git a/ext/date/tests/timezone_transitions_get_error.phpt b/ext/date/tests/timezone_transitions_get_error.phpt index 159c883efb..c38ba1f0d1 100644 --- a/ext/date/tests/timezone_transitions_get_error.phpt +++ b/ext/date/tests/timezone_transitions_get_error.phpt @@ -7,11 +7,11 @@ Test timezone_transitions_get() function : error conditions * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getTransitions() */ - + //Set the default time zone date_default_timezone_set("GMT"); $tz = timezone_open("Europe/London"); - + echo "*** Testing timezone_transitions_get() : error conditions ***\n"; echo "\n-- Testing timezone_transitions_get() function with zero arguments --\n"; @@ -25,11 +25,11 @@ var_dump( timezone_transitions_get($tz, $timestamp_begin, $timestamp_end, $extra echo "\n-- Testing timezone_transitions_get() function with an invalid values for \$object argument --\n"; $invalid_obj = new stdClass(); -var_dump( timezone_transitions_get($invalid_obj) ); +var_dump( timezone_transitions_get($invalid_obj) ); $invalid_obj = 10; var_dump( timezone_transitions_get($invalid_obj) ); $invalid_obj = null; -var_dump( timezone_transitions_get($invalid_obj) ); +var_dump( timezone_transitions_get($invalid_obj) ); ?> ===DONE=== --EXPECTF-- diff --git a/ext/date/tests/timezone_transitions_get_variation1.phpt b/ext/date/tests/timezone_transitions_get_variation1.phpt index f0f8552e61..214e980e2c 100644 --- a/ext/date/tests/timezone_transitions_get_variation1.phpt +++ b/ext/date/tests/timezone_transitions_get_variation1.phpt @@ -7,7 +7,7 @@ Test timezone_transitions_get() function : usage variation - Passing unexpected * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getTransitions() */ - + echo "*** Testing timezone_transitions_get() : usage variation - unexpected values to first argument \$object***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_transitions_get_variation2.phpt b/ext/date/tests/timezone_transitions_get_variation2.phpt index 5c7951d502..02f9ab8483 100644 --- a/ext/date/tests/timezone_transitions_get_variation2.phpt +++ b/ext/date/tests/timezone_transitions_get_variation2.phpt @@ -7,7 +7,7 @@ Test timezone_transitions_get() function : usage variation - Passing unexpected * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getTransitions() */ - + echo "*** Testing timezone_transitions_get() : usage variation - unexpected values to first argument \$timestamp_begin ***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_transitions_get_variation3.phpt b/ext/date/tests/timezone_transitions_get_variation3.phpt index 975e77ff34..1e136251e3 100644 --- a/ext/date/tests/timezone_transitions_get_variation3.phpt +++ b/ext/date/tests/timezone_transitions_get_variation3.phpt @@ -7,7 +7,7 @@ Test timezone_transitions_get() function : usage variation - Passing unexpected * Source code: ext/date/php_date.c * Alias to functions: DateTimeZone::getTransitions() */ - + echo "*** Testing timezone_transitions_get() : usage variation - unexpected values to first argument \$timestamp_end ***\n"; //Set the default time zone @@ -90,7 +90,7 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource 'resource' => $file_handle ); diff --git a/ext/date/tests/timezone_version_get.phpt b/ext/date/tests/timezone_version_get.phpt index e076004289..2c75de7ebc 100644 --- a/ext/date/tests/timezone_version_get.phpt +++ b/ext/date/tests/timezone_version_get.phpt @@ -4,7 +4,7 @@ Test the basics to function timezone_version_get(). Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --INI-- date.timezone = UTC; -date_default_timezone_set("America/Sao_Paulo"); +date_default_timezone_set("America/Sao_Paulo"); --FILE-- <?php var_dump(timezone_version_get()); diff --git a/ext/date/tests/timezone_version_get_basic1.phpt b/ext/date/tests/timezone_version_get_basic1.phpt index 27224e3d44..ae7af9af86 100644 --- a/ext/date/tests/timezone_version_get_basic1.phpt +++ b/ext/date/tests/timezone_version_get_basic1.phpt @@ -6,7 +6,7 @@ Rodrigo Wanderley de Melo Cardoso <rodrigogepem@gmail.com> --INI-- date.timezone=UTC --FILE-- -<?php $versionTimezone = timezone_version_get(); +<?php $versionTimezone = timezone_version_get(); echo $versionTimezone; ?> --EXPECTREGEX-- ^[12][0-9]{3}.[0-9]+$
\ No newline at end of file |
