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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC