1--TEST--
2Test ctype_alpha() function : usage variations - different integers
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7/* Prototype  : bool ctype_alpha(mixed $c)
8 * Description: Checks for alphabetic character(s)
9 * Source code: ext/ctype/ctype.c
10 */
11
12/*
13 * Pass different integers to ctype_alpha() to test which character codes are considered
14 * valid alphabetic characters
15 */
16
17echo "*** Testing ctype_alpha() : usage variations ***\n";
18
19$orig = setlocale(LC_CTYPE, "C");
20
21for ($i = 0; $i < 256; $i++) {
22	if (ctype_alpha($i)) {
23		echo "character code $i is alphabetic\n";
24	}
25}
26
27setlocale(LC_CTYPE, $orig);
28?>
29===DONE===
30--EXPECT--
31*** Testing ctype_alpha() : usage variations ***
32character code 65 is alphabetic
33character code 66 is alphabetic
34character code 67 is alphabetic
35character code 68 is alphabetic
36character code 69 is alphabetic
37character code 70 is alphabetic
38character code 71 is alphabetic
39character code 72 is alphabetic
40character code 73 is alphabetic
41character code 74 is alphabetic
42character code 75 is alphabetic
43character code 76 is alphabetic
44character code 77 is alphabetic
45character code 78 is alphabetic
46character code 79 is alphabetic
47character code 80 is alphabetic
48character code 81 is alphabetic
49character code 82 is alphabetic
50character code 83 is alphabetic
51character code 84 is alphabetic
52character code 85 is alphabetic
53character code 86 is alphabetic
54character code 87 is alphabetic
55character code 88 is alphabetic
56character code 89 is alphabetic
57character code 90 is alphabetic
58character code 97 is alphabetic
59character code 98 is alphabetic
60character code 99 is alphabetic
61character code 100 is alphabetic
62character code 101 is alphabetic
63character code 102 is alphabetic
64character code 103 is alphabetic
65character code 104 is alphabetic
66character code 105 is alphabetic
67character code 106 is alphabetic
68character code 107 is alphabetic
69character code 108 is alphabetic
70character code 109 is alphabetic
71character code 110 is alphabetic
72character code 111 is alphabetic
73character code 112 is alphabetic
74character code 113 is alphabetic
75character code 114 is alphabetic
76character code 115 is alphabetic
77character code 116 is alphabetic
78character code 117 is alphabetic
79character code 118 is alphabetic
80character code 119 is alphabetic
81character code 120 is alphabetic
82character code 121 is alphabetic
83character code 122 is alphabetic
84===DONE===
85