#46627 [Opn->Bgs]: Turkish locale problem

From: Date: Thu, 20 Nov 2008 19:21:00 +0000
Subject: #46627 [Opn->Bgs]: Turkish locale problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131148@lists.php.net to get a copy of this message
 ID:               46627
 Updated by:       jani@php.net
 Reported By:      nilgun at belgeler dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Linux
 PHP Version:      5.3.0alpha2
 New Comment:

Thank you for not using search first: see bug #35050




Previous Comments:
------------------------------------------------------------------------

[2008-11-20 07:33:30] 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";
}
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46627&edit=1



Thread (2 messages)

« previous php.bugs (#131148) next »