Home
last modified time | relevance | path

Searched refs:n (Results 176 – 200 of 8695) sorted by relevance

12345678910>>...348

/PHP-7.4/ext/standard/tests/strings/
H A Dprintf_basic8.phpt16 echo "*** Testing printf() : basic functionality - using octal format ***\n";
27 echo "\n-- Calling printf() with no arguments --\n";
29 echo "\n";
32 echo "\n-- Calling printf() with one arguments --\n";
34 echo "\n";
37 echo "\n-- Calling printf() with two arguments --\n";
39 echo "\n";
42 echo "\n-- Calling printf() with three arguments --\n";
44 echo "\n";
H A Dmd5raw.phpt5 echo bin2hex(md5("", TRUE))."\n";
6 echo bin2hex(md5("a", TRUE))."\n";
7 echo bin2hex(md5("abc", TRUE))."\n";
8 echo bin2hex(md5("message digest", TRUE))."\n";
9 echo bin2hex(md5("abcdefghijklmnopqrstuvwxyz", TRUE))."\n";
10 echo bin2hex(md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", TRUE))."\n";
11 …d5("12345678901234567890123456789012345678901234567890123456789012345678901234567890", TRUE))."\n";
/PHP-7.4/ext/standard/tests/math/
H A Dbase_convert_improvements.phpt5 echo base_convert('FF', 16, 10) . "\n";
6 echo base_convert('20', 8, 10) . "\n";
7 echo base_convert('0xFf', 16, 10) . "\n";
8 echo base_convert('0FF', 16, 10) . "\n";
9 echo base_convert(" 0xFF\t\n" , 16, 10) . "\n";
10 echo base_convert(" 0xFF\t\n" , 16, 10) . "\n";
11 echo base_convert("\r\nFF\t\n" , 16, 10) . "\n";
12 echo base_convert("0o7" , 8, 10) . "\n";
13 echo base_convert("0b1010" , 2, 10) . "\n";
23 echo base_convert("0 0" , 9, 10) . "\n";
/PHP-7.4/ext/standard/tests/file/
H A Dfile_variation9.phpt13 echo "*** Testing file() : variation ***\n";
18 "File ends on a new line\n",
19 "File ends on multiple newlines\n\n\n\n",
20 "File has\n\nmultiple lines and newlines\n\n",
21 "File has\r\nmultiple crlfs\n\r\n"
33 echo "\n*** Done ***\n";
H A Dbasename_bug66395_variation2-win32.phpt7 echo basename("y:") . "\n";
8 echo basename("y:/") . "\n";
9 echo basename("notdriveletter:file.txt") . "\n";
10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n";
11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n";
12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n";
15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n";
16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n";
18 echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n";
19 echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n";
[all …]
H A Dfiletype_variation.phpt28 echo "-- Checking with files --\n";
29 print( filetype($file1) )."\n";
30 print( filetype($file2) )."\n";
33 echo "-- Checking with links: hardlink --\n";
35 print( filetype($link1 ) )."\n";
37 echo "-- Checking with links: symlink --\n";
39 print( filetype($link2) )."\n";
46 echo "-- Checking with directory --\n";
51 echo "-- Checking with fifo --\n";
53 print( filetype( $file3) )."\n";
[all …]
/PHP-7.4/ext/standard/tests/general_functions/
H A Dget_defined_vars_basic.phpt11 echo "Simple testcase for get_defined_vars() function\n\n";
14 echo "\n-- Function f1() called --\n";
18 echo "TEST FAILED\n";
21 echo "\n-- ..define some local variables --\n";
32 echo "\n -- Function f2() called --\n";
36 echo "TEST FAILED\n";
39 echo "\n-- ...define some variables --\n";
47 echo "\n-- ...define some more variables --\n";
55 echo "\n-- Get variables at global scope --\n";
59 echo "TEST FAILED - Global variables missing at global scope\n";
/PHP-7.4/Zend/tests/
H A Dbug70012.phpt6 echo "Outer try\n";
8 echo " Middle try\n";
11 echo " Middle finally\n";
13 echo " Inner try\n";
15 echo " Inner finally\n";
18 echo "Outer shouldn't get here\n";
20 echo "Outer catch\n";
22 echo "Outer finally\n";
/PHP-7.4/ext/spl/tests/
H A Diterator_025.phpt10 echo __METHOD__ . "()\n";
15 echo __METHOD__ . "()\n";
23 foreach($it as $v) echo "$v\n";
25 echo "===MORE===\n";
27 foreach($it as $v) echo "$v\n";
29 echo "===MORE===\n";
32 foreach($it as $v) echo "$v\n";
35 echo "===MANUAL===\n";
40 echo $it->current() . "\n";
47 echo $it->current() . "\n";
H A Dfixedarray_002.phpt13 public function offsetGet($n) {
14 echo "A::offsetGet\n";
15 return parent::offsetGet($n);
17 public function offsetSet($n, $v) {
18 echo "A::offsetSet\n";
19 return parent::offsetSet($n, $v);
21 public function offsetUnset($n) {
22 echo "A::offsetUnset\n";
23 return parent::offsetUnset($n);
25 public function offsetExists($n) {
[all …]
H A Ddllist_013.phpt10 echo "Exception: ".$e->getMessage()."\n";
23 echo count($dll)."\n";
25 echo $dll->pop()."\n";
26 echo $dll->pop()."\n";
27 echo $dll->pop()."\n";
28 echo $dll->pop()."\n";
29 echo $dll->pop()."\n";
30 echo $dll->pop()."\n";
31 echo $dll->pop()."\n";
/PHP-7.4/ext/oci8/tests/
H A Dini_1.phpt24 echo "Test 1 - check initialization\n";
26 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
28 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
29 echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n";
30 echo 'oci8.events = ' . ini_get('oci8.events') . "\n";
32 echo 'oci8.default_prefetch = ' . ini_get('oci8.default_prefetch') . "\n";
35 echo "Test 2 - check what can be changed at runtime\n";
39 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
43 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
45 echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n";
[all …]
/PHP-7.4/ext/hash/tests/
H A Dhash_hmac_file_basic.phpt13 echo "*** Testing hash_hmac_file() : basic functionality ***\n";
37 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n";
39 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
40 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n";
41 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n";
46 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n";
47 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n";
48 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n";
49 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n";
50 echo "snefru: " . hash_hmac_file('snefru', $file, $key) . "\n";
[all …]
/PHP-7.4/ext/gmp/tests/
H A Dcast.phpt8 $n = gmp_init(42);
9 echo $n, "\n";
10 var_dump((string) $n);
11 var_dump((int) $n);
12 var_dump((float) $n);
13 var_dump((bool) $n);
/PHP-7.4/ext/mbstring/
H A Dmb_gpc.c222 n = 0; in _php_mb_encoding_handler_ex()
230 n++; in _php_mb_encoding_handler_ex()
238 n++; in _php_mb_encoding_handler_ex()
241 len_list[n] = 0; in _php_mb_encoding_handler_ex()
243 n++; in _php_mb_encoding_handler_ex()
264 n = 0; in _php_mb_encoding_handler_ex()
271 n++; in _php_mb_encoding_handler_ex()
301 n = 0; in _php_mb_encoding_handler_ex()
302 while (n < num) { in _php_mb_encoding_handler_ex()
310 n++; in _php_mb_encoding_handler_ex()
[all …]
/PHP-7.4/ext/imap/tests/
H A Dimap_createmailbox_basic.phpt14 echo "*** Testing imap_createmailbox() : basic functionality ***\n";
23 echo "Newname will be '$newname'\n";
28 echo "Add a couple of msgs to '$newname' mailbox\n";
34 echo "Messages: " . $status->messages . "\n";
35 echo "Recent: " . $status->recent . "\n";
36 echo "Unseen: " . $status->unseen . "\n";
37 echo "UIDnext: " . $status->uidnext . "\n";
38 echo "UIDvalidity: " . $status->uidvalidity . "\n";
45 echo "Mailbox '$newname' removed to restore initial state\n";
47 echo "imap_deletemailbox on new mailbox failed: " . implode("\n", imap_errors()) . "\n";
[all …]
/PHP-7.4/ext/standard/tests/dir/
H A Dchdir_variation2.phpt14 echo "*** Testing chdir() : usage variations ***\n";
28 echo "\n-- \$directory = './level2_one': --\n";
33 echo "\n-- \$directory = 'level2_one/level2_two': --\n";
38 echo "\n-- \$directory = '..': --\n";
42 echo "\n-- \$directory = 'level2_two', '.': --\n";
47 echo "\n-- \$directory = '../': --\n";
51 echo "\n-- \$directory = './': --\n";
56 echo "\n-- \$directory = '../../'level2_one': --\n";
/PHP-7.4/tests/classes/
H A Dtostring_001.phpt15 return "Converted\n";
27 echo "====test1====\n";
37 echo "====test2====\n";
42 echo "====test3====\n";
45 echo "====test4====\n";
48 echo "====test5====\n";
52 echo "====test6====\n";
56 echo "====test7====\n";
61 echo "====test8====\n";
65 echo "====test9====\n";
[all …]
H A D__call_007.phpt24 echo "---> Invoke __call via simple method call.\n";
28 echo "Exception caught OK; continuing.\n";
31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n";
35 echo "Exception caught OK; continuing.\n";
38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n";
43 echo "Exception caught OK; continuing.\n";
46 echo "\n\n---> Invoke __call via callback.\n";
50 echo "Exception caught OK; continuing.\n";
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_real_escape_string_nobackslash.phpt18 printf("[002] Expecting \\, got %s\n", $tmp);
21 printf("[003] Expecting \", got %s\n", $tmp);
24 printf("[004] Expecting '', got %s\n", $tmp);
26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n")))
27 printf("[005] Expecting \\n, got %s\n", $tmp);
30 printf("[006] Expecting \\r, got %s\n", $tmp);
34 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp);
38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 printf("[012] Expecting \\, got %s\n", $tmp);
[all …]
H A Dmysqli_autocommit.phpt26 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
43 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
46 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 printf("[008] Cannot turn off autocommit\n");
54 printf("[009] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
57 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
61 printf("[011] Cannot turn on autocommit\n");
96 printf("[021] Cannot turn on autocommit\n");
[all …]
/PHP-7.4/ext/pgsql/tests/
H A D02connection.phpt16 echo "pg_connection_status() error\n";
20 echo "pg_connection_reset() error\n";
24 echo "pg_connection_busy() error\n";
29 echo "pg_transaction_status() error\n";
34 echo "pg_host() error\n";
38 echo "pg_dbname() error\n";
42 echo "pg_port() error\n";
46 echo "pg_tty() error\n";
50 echo "pg_options() error\n";
/PHP-7.4/ext/simplexml/tests/
H A D011.phpt21 echo "===BAR===\n";
23 echo "\n";
25 echo "===BAZ===\n";
27 echo "\n";
29 echo "===BAZ0===\n";
31 echo "\n";
33 echo "===BAZ1===\n";
35 echo "\n";
/PHP-7.4/ext/mbstring/tests/
H A Dmb_convert_variables.phpt23 echo "== SCALER TEST ==\n";
26 print("$encoding\n"); // SJIS
31 print("$encoding\n"); // JIS
36 print("$encoding\n"); // EUC-JP
41 print("$encoding\n"); // EUC-JP
49 print("$encoding\n"); // EUC-JP
56 echo "== ARRAY TEST ==\n";
60 print("$encoding\n"); // EUC-JP
66 print("$encoding\n"); // EUC-JP
72 echo "== OBJECT TEST ==\n";
[all …]
/PHP-7.4/ext/pdo/tests/
H A Dbug_64172.phpt22 echo "===FAIL===\n";
24 echo "\n";
25 echo "===TEST===\n";
26 var_dump(is_string($db->errorInfo()[0])) . "\n";
27 var_dump(is_int($db->errorInfo()[1])) . "\n";
29 echo "===GOOD===\n";
35 echo "===FAIL===\n";
37 echo "\n";
38 echo "===TEST===\n";
40 var_dump(is_int($db->errorInfo()[1])) . "\n";
[all …]

Completed in 63 milliseconds

12345678910>>...348