Doc #53674 [NEW]: Example 1 does not work, contradicts Description

From: Date: Thu, 06 Jan 2011 16:27:22 +0000
Subject: Doc #53674 [NEW]: Example 1 does not work, contradicts Description
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5758@lists.php.net to get a copy of this message
From: Operating system: Mac OS X PHP version: 5.3.5 Package: Calendar related Bug Type: Documentation Problem Bug description:Example 1 does not work, contradicts Description 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 bug report at http://bugs.php.net/bug.php?id=53674&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53674&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53674&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53674&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53674&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53674&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53674&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53674&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53674&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53674&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53674&r=support Expected behavior: http://bugs.php.net/fix.php?id=53674&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53674&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53674&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53674&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53674&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53674&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53674&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53674&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53674&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53674&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53674&r=mysqlcfg

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