~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/iconv/tests/iconv_strlen.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
Import upstream version 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
iconv_strlen()
 
3
--SKIPIF--
 
4
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
 
5
--FILE--
 
6
<?php
 
7
function foo($str, $charset) {
 
8
        var_dump(strlen($str));
 
9
        var_dump(iconv_strlen($str, $charset));
 
10
}
 
11
 
 
12
foo("abc", "ASCII");
 
13
foo("���ܸ� EUC-JP", "EUC-JP");
 
14
?>
 
15
--EXPECT--
 
16
int(3)
 
17
int(3)
 
18
int(13)
 
19
int(10)