Doc #64423 [Opn->Csd]: For loop terminates after 5 iterations

From: Date: Thu, 14 Mar 2013 00:53:32 +0000
Subject: Doc #64423 [Opn->Csd]: For loop terminates after 5 iterations
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9659@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64423&edit=1 ID: 64423 Updated by: aharvey@php.net Reported by: mikael at lyngvig dot org Summary: For loop terminates after 5 iterations -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: All PHP Version: 5.3.22 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: Removed the note. Previous Comments: ------------------------------------------------------------------------ [2013-03-14 00:41:35] mikael at lyngvig dot org Description: ------------ --- From manual page: http://www.php.net/timezones --- Test script: --------------- The sample by Mike Robinson terminates after only five iterations. It needs to use: for ($i=0; $i < count($timezone_identifiers); $i++) instead of: for ($i=0; $i < 5; $i++) Expected result: ---------------- I expect to get a complete list of ALL time zone names. Actual result: -------------- The five first timezone names. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64423&edit=1

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