From: nilgun at belgeler dot org
Operating system: Linux
PHP version: 5.3.0alpha2
PHP Bug Type: Class/Object related
Bug description: Turkish locale problem
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 bug report at http://bugs.php.net/?id=46627&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46627&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46627&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46627&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46627&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46627&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46627&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46627&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46627&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46627&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46627&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46627&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46627&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46627&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46627&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46627&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46627&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46627&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46627&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46627&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46627&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46627&r=mysqlcfg