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