mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00

- Removed non-unicode tests (tests that uses SKIPIF like "die('skip unicode.semantics=on');")
33 lines
409 B
PHP
Executable file
33 lines
409 B
PHP
Executable file
--TEST--
|
|
Unicode: Iterator and key()
|
|
--FILE--
|
|
<?php
|
|
|
|
foreach(new TextIterator("123") as $pos => $char)
|
|
{
|
|
var_dump($pos);
|
|
var_dump($char);
|
|
}
|
|
|
|
foreach(new ReverseTextIterator("123") as $pos => $char)
|
|
{
|
|
var_dump($pos);
|
|
var_dump($char);
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
int(0)
|
|
unicode(1) "1"
|
|
int(1)
|
|
unicode(1) "2"
|
|
int(2)
|
|
unicode(1) "3"
|
|
int(0)
|
|
unicode(1) "3"
|
|
int(1)
|
|
unicode(1) "2"
|
|
int(2)
|
|
unicode(1) "1"
|
|
===DONE===
|