php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46627 Turkish locale problem
Submitted: 2008-11-20 07:33 UTC Modified: 2008-11-20 19:20 UTC
From: nilgun at belgeler dot org Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.3.0alpha2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nilgun at belgeler dot org
New email:
PHP Version: OS:

 

 [2008-11-20 07:33 UTC] nilgun at belgeler dot org
Description:
------------
The following sample code gives an error 
when run with the tr_TR.UTF-8 locale:
"Fatal error: Couldn't find implementation for method 
myData::getiterator in Unknown on line 0"

And it works OK with the command:
$ LANG=C php ./sample.php

The code sample.php (from iteratoraggregate.xml):

<?php
class myData implements IteratorAggregate {
    public $property1 = "Public property one";
    public $property2 = "Public property two";
    public $property3 = "Public property three";

    public function __construct() {
        $this->property4 = "last property";
    }

    public function getIterator() {
        return new ArrayIterator($this);
    }
}

$obj = new myData;

foreach($obj as $key => $value) {
    var_dump($key, $value);
    echo "\n";
}
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-20 19:20 UTC] jani@php.net
Thank you for not using search first: see bug #35050


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 29 17:00:02 2025 UTC