1--TEST-- 2cal_info() 3--INI-- 4date.timezone=UTC 5--SKIPIF-- 6<?php include 'skipif.inc'; ?> 7--FILE-- 8<?php 9 print_r(cal_info()); 10 print_r(cal_info(1)); 11 try { 12 cal_info(99999); 13 } catch (ValueError $ex) { 14 echo "{$ex->getMessage()}\n"; 15 } 16?> 17--EXPECT-- 18Array 19( 20 [0] => Array 21 ( 22 [months] => Array 23 ( 24 [1] => January 25 [2] => February 26 [3] => March 27 [4] => April 28 [5] => May 29 [6] => June 30 [7] => July 31 [8] => August 32 [9] => September 33 [10] => October 34 [11] => November 35 [12] => December 36 ) 37 38 [abbrevmonths] => Array 39 ( 40 [1] => Jan 41 [2] => Feb 42 [3] => Mar 43 [4] => Apr 44 [5] => May 45 [6] => Jun 46 [7] => Jul 47 [8] => Aug 48 [9] => Sep 49 [10] => Oct 50 [11] => Nov 51 [12] => Dec 52 ) 53 54 [maxdaysinmonth] => 31 55 [calname] => Gregorian 56 [calsymbol] => CAL_GREGORIAN 57 ) 58 59 [1] => Array 60 ( 61 [months] => Array 62 ( 63 [1] => January 64 [2] => February 65 [3] => March 66 [4] => April 67 [5] => May 68 [6] => June 69 [7] => July 70 [8] => August 71 [9] => September 72 [10] => October 73 [11] => November 74 [12] => December 75 ) 76 77 [abbrevmonths] => Array 78 ( 79 [1] => Jan 80 [2] => Feb 81 [3] => Mar 82 [4] => Apr 83 [5] => May 84 [6] => Jun 85 [7] => Jul 86 [8] => Aug 87 [9] => Sep 88 [10] => Oct 89 [11] => Nov 90 [12] => Dec 91 ) 92 93 [maxdaysinmonth] => 31 94 [calname] => Julian 95 [calsymbol] => CAL_JULIAN 96 ) 97 98 [2] => Array 99 ( 100 [months] => Array 101 ( 102 [1] => Tishri 103 [2] => Heshvan 104 [3] => Kislev 105 [4] => Tevet 106 [5] => Shevat 107 [6] => Adar I 108 [7] => Adar II 109 [8] => Nisan 110 [9] => Iyyar 111 [10] => Sivan 112 [11] => Tammuz 113 [12] => Av 114 [13] => Elul 115 ) 116 117 [abbrevmonths] => Array 118 ( 119 [1] => Tishri 120 [2] => Heshvan 121 [3] => Kislev 122 [4] => Tevet 123 [5] => Shevat 124 [6] => Adar I 125 [7] => Adar II 126 [8] => Nisan 127 [9] => Iyyar 128 [10] => Sivan 129 [11] => Tammuz 130 [12] => Av 131 [13] => Elul 132 ) 133 134 [maxdaysinmonth] => 30 135 [calname] => Jewish 136 [calsymbol] => CAL_JEWISH 137 ) 138 139 [3] => Array 140 ( 141 [months] => Array 142 ( 143 [1] => Vendemiaire 144 [2] => Brumaire 145 [3] => Frimaire 146 [4] => Nivose 147 [5] => Pluviose 148 [6] => Ventose 149 [7] => Germinal 150 [8] => Floreal 151 [9] => Prairial 152 [10] => Messidor 153 [11] => Thermidor 154 [12] => Fructidor 155 [13] => Extra 156 ) 157 158 [abbrevmonths] => Array 159 ( 160 [1] => Vendemiaire 161 [2] => Brumaire 162 [3] => Frimaire 163 [4] => Nivose 164 [5] => Pluviose 165 [6] => Ventose 166 [7] => Germinal 167 [8] => Floreal 168 [9] => Prairial 169 [10] => Messidor 170 [11] => Thermidor 171 [12] => Fructidor 172 [13] => Extra 173 ) 174 175 [maxdaysinmonth] => 30 176 [calname] => French 177 [calsymbol] => CAL_FRENCH 178 ) 179 180) 181Array 182( 183 [months] => Array 184 ( 185 [1] => January 186 [2] => February 187 [3] => March 188 [4] => April 189 [5] => May 190 [6] => June 191 [7] => July 192 [8] => August 193 [9] => September 194 [10] => October 195 [11] => November 196 [12] => December 197 ) 198 199 [abbrevmonths] => Array 200 ( 201 [1] => Jan 202 [2] => Feb 203 [3] => Mar 204 [4] => Apr 205 [5] => May 206 [6] => Jun 207 [7] => Jul 208 [8] => Aug 209 [9] => Sep 210 [10] => Oct 211 [11] => Nov 212 [12] => Dec 213 ) 214 215 [maxdaysinmonth] => 31 216 [calname] => Julian 217 [calsymbol] => CAL_JULIAN 218) 219cal_info(): Argument #1 ($calendar) must be a valid calendar ID 220