Annotation of embedaddon/php/ext/ctype/tests/ctype_alnum_variation2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test 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:
17: echo "*** Testing ctype_alnum() : usage variations ***\n";
18:
19: $orig = setlocale(LC_CTYPE, "C");
20:
21: for ($i = 0; $i < 256; $i++) {
22: if (ctype_alnum($i)) {
23: echo "character code $i is alpha numeric\n";
24: }
25: }
26:
27: setlocale(LC_CTYPE, $orig);
28: ?>
29: ===DONE===
30: --EXPECTF--
31: *** Testing ctype_alnum() : usage variations ***
32: character code 48 is alpha numeric
33: character code 49 is alpha numeric
34: character code 50 is alpha numeric
35: character code 51 is alpha numeric
36: character code 52 is alpha numeric
37: character code 53 is alpha numeric
38: character code 54 is alpha numeric
39: character code 55 is alpha numeric
40: character code 56 is alpha numeric
41: character code 57 is alpha numeric
42: character code 65 is alpha numeric
43: character code 66 is alpha numeric
44: character code 67 is alpha numeric
45: character code 68 is alpha numeric
46: character code 69 is alpha numeric
47: character code 70 is alpha numeric
48: character code 71 is alpha numeric
49: character code 72 is alpha numeric
50: character code 73 is alpha numeric
51: character code 74 is alpha numeric
52: character code 75 is alpha numeric
53: character code 76 is alpha numeric
54: character code 77 is alpha numeric
55: character code 78 is alpha numeric
56: character code 79 is alpha numeric
57: character code 80 is alpha numeric
58: character code 81 is alpha numeric
59: character code 82 is alpha numeric
60: character code 83 is alpha numeric
61: character code 84 is alpha numeric
62: character code 85 is alpha numeric
63: character code 86 is alpha numeric
64: character code 87 is alpha numeric
65: character code 88 is alpha numeric
66: character code 89 is alpha numeric
67: character code 90 is alpha numeric
68: character code 97 is alpha numeric
69: character code 98 is alpha numeric
70: character code 99 is alpha numeric
71: character code 100 is alpha numeric
72: character code 101 is alpha numeric
73: character code 102 is alpha numeric
74: character code 103 is alpha numeric
75: character code 104 is alpha numeric
76: character code 105 is alpha numeric
77: character code 106 is alpha numeric
78: character code 107 is alpha numeric
79: character code 108 is alpha numeric
80: character code 109 is alpha numeric
81: character code 110 is alpha numeric
82: character code 111 is alpha numeric
83: character code 112 is alpha numeric
84: character code 113 is alpha numeric
85: character code 114 is alpha numeric
86: character code 115 is alpha numeric
87: character code 116 is alpha numeric
88: character code 117 is alpha numeric
89: character code 118 is alpha numeric
90: character code 119 is alpha numeric
91: character code 120 is alpha numeric
92: character code 121 is alpha numeric
93: character code 122 is alpha numeric
94: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>