Doc #53674 [Opn->Bgs]: Example 1 does not work, contradicts Description

From: Date: Thu, 06 Jan 2011 16:32:10 +0000
Subject: Doc #53674 [Opn->Bgs]: Example 1 does not work, contradicts Description
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5759@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53674&edit=1 ID: 53674 Updated by: danbrown@php.net Reported by: thomas dot edwards at gmail dot com Summary: Example 1 does not work, contradicts Description -Status: Open +Status: Bogus Type: Documentation Problem Package: Calendar related Operating System: Mac OS X PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Since when is 31 not an integer? Previous Comments: ------------------------------------------------------------------------ [2011-01-06 17:27:22] thomas dot edwards at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.cal-days-in-month#Examples --- Description: int cal_days_in_month ( int $calendar , int $month , int $year ) Example 1: <?php $num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31 echo "There was $num days in August 2003"; ?> Clearly not a integer! Does not work! Test script: --------------- $num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31 echo "There was $num days in August 2003"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53674&edit=1

« previous php.doc.bugs (#5759) next »