/php-src/ext/standard/tests/strings/ |
H A D | strncasecmp_variation1.phpt | 10 …var_dump( strncasecmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing uppercase letter with corresp… 11 …var_dump( strncasecmp( chr($ASCII), chr($ASCII + 32), 1 ) ); //comparing uppercase letter with co… 16 …var_dump( strncasecmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing lowercase letter with corresp… 17 …var_dump( strncasecmp( chr($ASCII), chr($ASCII - 32), 1 ) ); //comparing lowercase letter with co…
|
H A D | strncmp_variation1.phpt | 10 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing uppercase letters with uppercase … 11 …var_dump( strncmp( chr($ASCII), chr($ASCII + 32), 1 ) ); //comparing uppercase letters with lower… 16 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing lowercase letters with lowercase … 17 …var_dump( strncmp( chr($ASCII), chr($ASCII - 32), 1 ) ); //comparing lowercase letters with upper…
|
H A D | chop_variation4.phpt | 19 chr(0), 20 chr(0).chr(0), 21 chr(0).'hello'.chr(0), 22 'hello'.chr(0).'world'
|
H A D | strspn_variation9.phpt | 32 chr(0).chr(0), 33 chr(0)."hello\0world".chr(0), 34 chr(0).'hello\0world'.chr(0), 35 "hello".chr(0)."world", 36 'hello'.chr(0).'world',
|
H A D | strcspn_variation9.phpt | 32 chr(0).chr(0), 33 chr(0)."hello\0world".chr(0), 34 chr(0).'hello\0world'.chr(0), 35 "hello".chr(0)."world", 36 'hello'.chr(0).'world',
|
H A D | chr_variation1.phpt | 2 Test chr() function : usage variations - test values for $ascii argument 6 echo "*** Testing chr() function: with unexpected inputs for 'ascii' argument ***\n"; 39 // loop through with each element of the $inputs array to test chr() function 43 var_dump( bin2hex(chr($input)) ); 51 *** Testing chr() function: with unexpected inputs for 'ascii' argument ***
|
H A D | str_pad_variation2.phpt | 9 $string = chr(0).chr(255).chr(128).chr(234).chr(143);
|
H A D | strcspn_variation10.phpt | 23 chr(0).chr(0), 24 chr(0)."hello\0world".chr(0), 25 chr(0).'hello\0world'.chr(0), 26 "hello".chr(0)."world", 27 'hello'.chr(0).'world',
|
H A D | strspn_variation10.phpt | 24 chr(0).chr(0), 25 chr(0)."hello\0world".chr(0), 26 chr(0).'hello\0world'.chr(0), 27 "hello".chr(0)."world", 28 'hello'.chr(0).'world',
|
H A D | basename_basic.phpt | 44 array("foo".chr(0)."bar"), 45 array("/foo".chr(0)."bar"), 46 array("/foo".chr(0)."bar/"), 47 array("foo".chr(0)."bar/"), 48 array("foo".chr(0)."bar/test"), 49 array("/foo".chr(0)."bar/bar.gz", ".gz"), 50 array("/foo".chr(0)."bar/bar.gz")
|
H A D | dirname_basic.phpt | 37 "foo".chr(0)."bar", 38 "/foo".chr(0)."bar/", 39 "/foo".chr(0)."bar", 40 "foo".chr(0)."bar/", 41 "/foo".chr(0)."bar/t.gz"
|
H A D | bug62443.phpt | 5 crypt("foo", '$5$'.chr(0).'abc'); 6 crypt("foo", '$6$'.chr(0).'abc');
|
/php-src/ext/standard/tests/file/ |
H A D | fnmatch_variation.phpt | 47 25 => chr(109).chr(97)."tch.tmp", 48 26 => chr(109).chr(97).chr(116).chr(99).chr(104).".tmp", 49 27 => chr(109).chr(97).chr(116).chr(99).chr(104).chr(46).chr(116).chr(120).chr(116), 50 28 => chr(109).chr(97).chr(116).chr(99).chr(104).".".chr(116).chr(120).chr(116),
|
H A D | bug72330.phpt | 13 $utf_1 = chr(0xD1) . chr(0x81); // U+0440; 14 $utf_2 = chr(0xD8) . chr(0x80); // U+0600
|
/php-src/Zend/tests/ |
H A D | bug70089.phpt | 9 chr(0)[0][] = 1; 14 unset(chr(0)[0][0]); 20 runtimetest(chr(0)[0]); 26 ++chr(0)[0];
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_real_escape_string_nobackslash.phpt | 31 assert("foo" . chr(0) . "bar" === "foo" . chr(0) . "bar"); 32 … if ("foo" . chr(0) . "bar" !== ($tmp = mysqli_real_escape_string($link, "foo" . chr(0) . "bar"))) 33 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp); 52 if ("foo\\0bar" !== ($tmp = mysqli_real_escape_string($link, "foo" . chr(0) . "bar"))) 53 printf("[013] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp);
|
/php-src/ext/mbstring/tests/ |
H A D | iso2022jp_encoding.phpt | 64 testValid(chr($i), "\x00" . chr($i), 'JIS'); 65 …convertValidString("\x0F" . chr($i), "\x00" . chr($i), 'JIS', 'UTF-16BE', false); /* 0xF is 'Shift… 66 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'JIS'); 67 testValid(chr($i), "\x00" . chr($i), 'ISO-2022-JP'); 68 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'ISO-2022-JP'); 74 testInvalid(chr($i), "\x00%", 'JIS'); 89 $kana = chr(ord($jisx0201) - 128); 116 $testString = chr($i) . chr($j); 146 $testString = chr($i) . chr($j); 169 $escapeSequence = "\x1B" . chr($i) . chr($j); [all …]
|
H A D | cp5022x_encoding.phpt | 77 $jisx0201Chars[chr($byte)] = pack('n', $codepoint); 131 testValid(chr($i), "\x00" . chr($i), 'CP50220'); 132 testValid(chr($i), "\x00" . chr($i), 'CP50221'); 133 testValid(chr($i), "\x00" . chr($i), 'CP50222'); 134 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50220'); 135 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50221'); 136 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50222'); 137 testValid("\x0F" . chr($i), "\x00" . chr($i), 'CP50222', false); /* 0xF is 'Shift Out' code */ 164 $kana = chr(ord($jisx0201) - 128); 221 $testString = chr($i) . chr($j); [all …]
|
H A D | iso2022kr_encoding.phpt | 46 testValid(chr($i), "\x00" . chr($i)); 47 testValid("\x0F" . chr($i), "\x00" . chr($i)); /* 0xF is 'Shift In' code */ 51 testInvalid(chr($i), "\x00%"); 52 testInvalid("\x0F" . chr($i), "\x00%"); 88 if (chr($i) != '$') 89 testInvalid("\x1B" . chr($i), "\x00%"); 90 if (chr($i) != ')') 91 testInvalid("\x1B$" . chr($i), "\x00%"); 92 if (chr($i) != 'C') 93 testInvalid("\x1B$)" . chr($i), "\x00%");
|
H A D | iso2022jp_ms_encoding.phpt | 70 $jisx0201Chars[chr($byte)] = pack('N', $codepoint); 97 testValid(chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS'); 98 testValid("\x1B(B" . chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS', false); 99 testValid("\x1B(J" . chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS', false); 105 testInvalid(chr($i), "\x00\x00\x00%", 'ISO-2022-JP-MS'); 106 testInvalid("\x1B(B" . chr($i), "\x00\x00\x00%", 'ISO-2022-JP-MS'); 116 $kana = chr(ord($jisx0201) - 128); 149 $validChars[chr($i)] = chr($i); 151 $validChars[chr($i)] = $jisx0201Chars[chr($i)]; 179 $validChars[chr($i)] = chr($i); [all …]
|
/php-src/ext/hash/tests/ |
H A D | hmac-md5.phpt | 6 $ctx = hash_init('md5',HASH_HMAC,str_repeat(chr(0x0b), 16)); 14 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
|
/php-src/ext/phar/tests/ |
H A D | 015.phpt | 15 $files['a'] = array('cont'=>'a','comp'=>chr(75) . chr(4) . chr(0) /* 'a' gzdeflated */, 'flags'=>0x…
|
/php-src/ext/standard/tests/image/ |
H A D | iptcembed_002.phpt | 29 $retval = chr(0x1C) . chr($rec) . chr($data); 30 if($length < 0x8000) { $retval .= chr($length >> 8) . chr($length & 0xFF); } 31 …se { $retval .= chr(0x80) . chr(0x04) . chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xF…
|
/php-src/ext/iconv/tests/ |
H A D | bug51250.phpt | 11 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?B?".chr(0xA1)."?= .", $m)); 12 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?Q?".chr(0xA1)."?= .", $m)); 16 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?B?".chr(0xA1)."?= .")); 17 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?Q?".chr(0xA1)."?= ."));
|
/php-src/ext/mbstring/ucgendat/ |
H A D | uctest.php | 89 $chr = mb_chr($code); 90 $upper = mb_strtoupper($chr); 91 $uppers[$upper][] = $chr; 92 $fold = mb_convert_case($chr, 3); 93 $folds[$fold][] = $chr;
|