#30375 [Opn->Csd]: The function cal_info() does not work w/o a parameter

From: Date: Mon, 11 Oct 2004 06:58:45 +0000
Subject: #30375 [Opn->Csd]: The function cal_info() does not work w/o a parameter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67392@lists.php.net to get a copy of this message
ID: 30375 Updated by: iliaa@php.net Reported By: ragekab at yahoo dot com -Status: Open +Status: Closed Bug Type: Calendar related Operating System: Windows XP PHP Version: 5.0.2 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-10-09 18:43:45] ragekab at yahoo dot com Description: ------------ The manual says "If no calendar is specified information on all supported calendars is returned as an array. This functionality will be available beginning with PHP 5." I believe using cal_info() is suppose to work without a paramenter on PHP 5, however it returns an error saying its expecting a parameter. Reproduce code: --------------- <? print_r(cal_info()); // Warning: cal_info() expects exactly 1 parameter ?> Expected result: ---------------- An array of all supported calendars should return ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30375&edit=1

« previous php.bugs (#67392) next »