php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64423 For loop terminates after 5 iterations
Submitted: 2013-03-14 00:41 UTC Modified: 2013-03-14 00:53 UTC
From: mikael at lyngvig dot org Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.22 OS: All
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikael at lyngvig dot org
New email:
PHP Version: OS:

 

 [2013-03-14 00:41 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-14 00:53 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-03-14 00:53 UTC] aharvey@php.net
Removed the note.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 07:00:01 2026 UTC