/PHP-5.6/ext/standard/tests/strings/ |
H A D | strlen_error.phpt | 2 Test strlen() function : error conditions 6 /* Prototype : int strlen ( string $string ) 11 echo "*** Testing strlen() : unexpected number of arguments ***"; 14 echo "\n-- Testing strlen() function with no arguments --\n"; 15 var_dump( strlen() ); 19 var_dump( strlen("abc def", $extra_arg) ); 23 *** Testing strlen() : unexpected number of arguments *** 24 -- Testing strlen() function with no arguments -- 26 Warning: strlen() expects exactly 1 parameter, 0 given in %s on line %d 29 -- Testing strlen() function with more than expected no. of arguments -- [all …]
|
H A D | strlen_basic.phpt | 2 Test strlen() function : basic functionality 6 /* Prototype : int strlen ( string $string ) 11 echo "*** Testing strlen() : basic functionality ***\n"; 12 var_dump(strlen("abcdef")); 13 var_dump(strlen(" ab de ")); 14 var_dump(strlen("")); 15 var_dump(strlen("\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f")); 19 *** Testing strlen() : basic functionality ***
|
H A D | strlen.phpt | 2 strlen() function 78 var_dump(strlen($str_arr)); 112 var_dump(strlen($string)); 117 var_dump(strlen($str)); 124 var_dump(strlen("$str")); 125 var_dump(strlen("$str'S")); 126 var_dump(strlen("$strS")); 139 var_dump(strlen(strlen("Hello"))); // len=1 144 strlen(); 147 strlen("", ""); [all …]
|
H A D | strlen_variation1.phpt | 2 Test strlen() function : usage variations - unexpected input for '$string' argument 6 /* Prototype : int strlen ( string $string ) 11 echo "*** Testing strlen() : with unexpected input for 'string' argument ***\n"; 73 // loop through with each element of the $inputs array to test strlen() function 77 var_dump( strlen($input) ); 86 *** Testing strlen() : with unexpected input for 'string' argument *** 105 Warning: strlen() expects parameter 1 to be string, array given in %s on line %d 109 Warning: strlen() expects parameter 1 to be string, array given in %s on line %d 113 Warning: strlen() expects parameter 1 to be string, array given in %s on line %d 131 Warning: strlen() expects parameter 1 to be string, resource given in %s on line %d
|
/PHP-5.6/ext/phar/ |
H A D | makestub.php | 13 $token[1] = strlen($n) ? $n : ' '; 21 $slen = strlen($s) - strlen('index.php') - strlen("000"); 27 $s = substr($s, strlen($webs) + strlen("000")); 29 $s2 = substr($s, strlen($s1) + strlen('index.php')); 31 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php')); 64 if ($chunk[strlen($chunk) - 1] == '\\') { 74 if ($chunk[strlen($chunk) - 1] == '\\') {
|
H A D | shortarc.php | 67 …$pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basenam… 75 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 122 if ($L[1] - strlen($m) < 8192) { 123 $read = $L[1] - strlen($m); 127 } while (strlen($last) && strlen($m) < $L[1]); 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 180 if ($path[strlen($path) - 1] == '/') { 266 if (strlen($data) != $entry[0]) { 267 die("Invalid internal .phar file (size error " . strlen($data) . " != " .
|
/PHP-5.6/ext/phar/tests/zip/files/ |
H A D | corrupt_zipmaker.php.inc | 174 $offset = strlen($central); 182 $offset = strlen($central); 190 $offset = strlen($central); 198 $offset = strlen($central); 206 $offset = strlen($central); 214 $offset = strlen($central); 222 $offset = strlen($central); 238 $offset = strlen($central); 244 …pack("VVVvvvvvVV", $crc32, $complength, $uncomplength, strlen($filename), strlen($extra),strlen($c… 247 $offset = strlen($central); [all …]
|
/PHP-5.6/ext/oci8/tests/ |
H A D | bind_char_1.phpt | 219 Test 1.4: Type: AFC: Length: strlen 224 Test 1.5: Type: AFC. Length: strlen-1 229 Test 1.6: Type: AFC. Length: strlen+1 243 Test 2.4: Type: AFC: Length: strlen 245 Test 2.5: Type: AFC. Length: strlen-1 247 Test 2.6: Type: AFC. Length: strlen+1 267 Test 3.4: Type: AFC: Length: strlen 272 Test 3.5: Type: AFC. Length: strlen-1 277 Test 3.6: Type: AFC. Length: strlen+1 291 Test 4.4: Type: AFC: Length: strlen [all …]
|
H A D | bind_char_1_11gR1.phpt | 219 Test 1.4: Type: AFC: Length: strlen 224 Test 1.5: Type: AFC. Length: strlen-1 227 Test 1.6: Type: AFC. Length: strlen+1 241 Test 2.4: Type: AFC: Length: strlen 243 Test 2.5: Type: AFC. Length: strlen-1 245 Test 2.6: Type: AFC. Length: strlen+1 263 Test 3.4: Type: AFC: Length: strlen 268 Test 3.5: Type: AFC. Length: strlen-1 271 Test 3.6: Type: AFC. Length: strlen+1 285 Test 4.4: Type: AFC: Length: strlen [all …]
|
H A D | bind_char_2.phpt | 51 echo "Test 1.4: Type: AFC: Length: strlen\n"; 52 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1), SQLT_AFC); 56 echo "Test 1.5: Type: AFC. Length: strlen-1\n"; 57 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)-1, SQLT_AFC); 61 echo "Test 1.6: Type: AFC. Length: strlen+1\n"; 62 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)+1, SQLT_AFC); 106 Test 1.4: Type: AFC: Length: strlen 110 Test 1.5: Type: AFC. Length: strlen-1 114 Test 1.6: Type: AFC. Length: strlen+1
|
/PHP-5.6/Zend/tests/ |
H A D | nowdoc_016.phpt | 9 var_dump(strlen($test)); 15 var_dump(strlen($test)); 21 var_dump(strlen($test)); 27 var_dump(strlen($test)); 33 var_dump(strlen($test));
|
H A D | heredoc_015.phpt | 9 var_dump(strlen($test) == 0); 15 var_dump(strlen($test) == 1); 21 var_dump(strlen($test) == 1); 27 var_dump(strlen($test) == 1); 33 var_dump(strlen($test) == 2);
|
H A D | heredoc_016.phpt | 9 var_dump(strlen($test) == 0); 15 var_dump(strlen($test) == 1); 21 var_dump(strlen($test) == 1); 27 var_dump(strlen($test) == 1); 33 var_dump(strlen($test) == 2);
|
H A D | ns_013.phpt | 7 function strlen($x) { 11 echo strlen("Hello"),"\n"; 13 test\ns1\strlen
|
H A D | ns_016.phpt | 7 function strlen($x) { 11 $x = "test\\ns1\\strlen"; 14 test\ns1\strlen
|
/PHP-5.6/ext/mbstring/tests/ |
H A D | mb_strlen.phpt | 25 print strlen($ascii) . "\n"; 31 print strlen($euc_jp) . "\n"; 38 print strlen($sjis) . "\n"; 41 // Note: either convert_encoding or strlen has problem 46 print strlen($jis) . "\n"; 49 // Note: either convert_encoding or strlen has problem 54 print strlen($utf8) . "\n"; 60 // Note: PHP Warning, strlen() expects parameter 1 to be string, array given 61 $r = strlen($t_ary); 64 // Note: PHP Warning, strlen() expects parameter 1 to be string, object given [all …]
|
/PHP-5.6/ext/zlib/tests/ |
H A D | 001.phpt | 9 echo strlen($packed)." ".strlen($original)."\n"; 16 echo strlen($packed)." ".strlen($original)."\n"; 22 echo strlen($packed)." ".strlen($original)."\n";
|
H A D | 002.phpt | 9 echo strlen($packed)." ".strlen($original)."\n"; 16 echo strlen($packed)." ".strlen($original)."\n";
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | bug44607.phpt | 12 var_dump(strlen(stream_get_line($fd, 15000, $eol))); 13 var_dump(strlen(stream_get_line($fd, 15000, $eol))); 15 var_dump(strlen(stream_get_line($fd, 15000, $eol))); 16 var_dump(strlen(stream_get_line($fd, 15000, $eol)));
|
H A D | bug38450.phpt | 26 $this->position += strlen($ret); 33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 35 $this->position += strlen($data); 36 return strlen($data); 46 return $this->position >= strlen($GLOBALS[$this->varname]); 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_1.phpt | 26 $this->position += strlen($ret); 33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 35 $this->position += strlen($data); 36 return strlen($data); 46 return $this->position >= strlen($GLOBALS[$this->varname]); 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_3.phpt | 26 $this->position += strlen($ret); 33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 35 $this->position += strlen($data); 36 return strlen($data); 46 return $this->position >= strlen($GLOBALS[$this->varname]); 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
/PHP-5.6/ext/phar/tests/cache_list/files/ |
H A D | phar_test.inc | 37 if (empty($ulen)) $ulen = strlen($cont); 38 if (empty($clen)) $clen = strlen($comp); 43 $manifest .= pack('V', strlen($name)) . (binary)$name; 44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m… 55 …files), isset($hasdir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', st… 57 $file .= pack('V', strlen($manifest)) . $manifest;
|
/PHP-5.6/ext/phar/tests/files/ |
H A D | phar_test.inc | 37 if (empty($ulen)) $ulen = strlen($cont); 38 if (empty($clen)) $clen = strlen($comp); 43 $manifest .= pack('V', strlen($name)) . (binary)$name; 44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m… 55 …files), isset($hasdir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', st… 57 $file .= pack('V', strlen($manifest)) . $manifest;
|
/PHP-5.6/ext/ereg/tests/ |
H A D | 007.phpt | 7 echo "strlen(\$b)=".strlen($b); 11 strlen($b)=0
|