Home
last modified time | relevance | path

Searched refs:n (Results 226 – 250 of 8203) sorted by relevance

12345678910>>...329

/PHP-5.3/ext/standard/tests/array/
H A Dkey_basic.phpt14 echo "*** Testing key() : basic functionality ***\n";
17 echo "\n-- Initial Position: --\n";
20 echo "\n-- Next Position: --\n";
24 echo "\n-- End Position: --\n";
28 echo "\n-- Past end of the array --\n";
/PHP-5.3/ext/mbstring/tests/
H A Dmb_strimwidth.phpt17 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n";
18 print "2: ". mb_strimwidth($euc_jp, 0, 100,'...','EUC-JP') . "\n";
19 print "3: ". mb_strimwidth($euc_jp, 15, 100,'...','EUC-JP') . "\n";
22 ($str === FALSE) ? print "4 OK\n" : print "NG: $str\n";
25 ($str === FALSE) ? print "5 OK\n" : print "NG: $str\n";
28 ($str === FALSE) ? print "6 OK\n" : print "NG: $str\n";
H A Dmb_convert_encoding_basic.phpt27 echo "\n-- Convert to JIS --\n";
28 echo "JIS encoded string in base64:\n";
30 echo "Converted Strings:\n";
35 echo "\n-- Convert to EUC-JP --\n";
36 echo "EUC-JP encoded string in base64:\n";
38 echo "Converted Strings:\n";
43 echo "\n-- Convert to SJIS --\n";
44 echo "SJIS encoded string in base64:\n";
46 echo "Converted Strings:\n";
51 echo "\n-- Convert to UTF-8 --\n";
[all …]
/PHP-5.3/ext/standard/tests/strings/
H A Dsubstr_count_variation_002.phpt6 echo "\n*** Testing possible variations ***\n";
7 echo "\n-- complex strings containing other than 7-bit chars --\n";
13 echo "\n-- heredoc string --\n";
27 echo "\n-- heredoc null string --\n";
34 echo "Done\n";
H A Dtrim.phpt10 'ABC' === trim(" \\0\\t\\nABC \\0\\t\\n")
11 "ABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n")
12 " \\0\\t\\nABC" === rtrim(" \\0\\t\\nABC \\0\\t\\n")
13 " \\0\\t\\nABC \\0\\t\\n" === trim(" \\0\\t\\nABC \\0\\t\\n",'')
14 " \\0\\t\\nABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n",'')
15 " \\0\\t\\nABC \\0\\t\\n" === rtrim(" \\0\\t\\nABC \\0\\t\\n",'')
H A Dstrip_tags.phpt6 echo "\n";
8 echo "\n";
10 echo "\n";
12 echo "\n";
14 echo "\n";
16 echo "\n";
18 echo "\n";
/PHP-5.3/tests/classes/
H A Diterators_004.phpt8 echo "1st try\n";
15 echo "object:$w\n";
18 echo "2nd try\n";
26 echo __METHOD__ . "\n";
30 echo __METHOD__ . "\n";
34 echo __METHOD__ . "\n";
38 echo __METHOD__ . "\n";
51 echo "object:$v=>$w\n";
54 print "Done\n";
/PHP-5.3/Zend/tests/
H A Dlsb_001.phpt38 echo TestClass::testStaticVar() . "\n";
39 echo TestClass::testClassConst() . "\n";
40 echo TestClass::testStaticFunction() . "\n";
42 echo ChildClass1::testStaticVar() . "\n";
43 echo ChildClass1::testClassConst() . "\n";
44 echo ChildClass1::testStaticFunction() . "\n";
46 echo ChildClass2::testStaticVar() . "\n";
47 echo ChildClass2::testClassConst() . "\n";
48 echo ChildClass2::testStaticFunction() . "\n";
H A Dbug29210.phpt7 echo "test_func1\n";
10 echo "test_func2\n";
13 echo "test_func3\n";
16 echo "test_func4\n";
22 echo "test_func1 isn't callable from inside\n";
27 echo "test_func2 isn't callable from inside\n";
32 echo "test_func3 isn't callable from inside\n";
72 echo "test_func1 isn't callable from outside\n";
77 echo "test_func2 isn't callable from outside\n";
82 echo "test_func3 isn't callable from outside\n";
[all …]
H A Djump04.phpt6 echo "1: ok\n";
8 echo "4: ok\n";
10 echo "2: ok\n";
12 echo "3: ok\n";
15 echo "bug\n";
17 echo "bug\n";
/PHP-5.3/ext/mbstring/libmbfl/filters/
H A Dmbfilter_byte2.c93 int n; in mbfl_filt_conv_byte2be_wchar() local
97 n = (c & 0xff) << 8; in mbfl_filt_conv_byte2be_wchar()
98 filter->cache = n; in mbfl_filt_conv_byte2be_wchar()
101 n = (c & 0xff) | filter->cache; in mbfl_filt_conv_byte2be_wchar()
102 CK((*filter->output_function)(n, filter->data)); in mbfl_filt_conv_byte2be_wchar()
116 int n; in mbfl_filt_conv_byte2le_wchar() local
120 n = c & 0xff; in mbfl_filt_conv_byte2le_wchar()
121 filter->cache = n; in mbfl_filt_conv_byte2le_wchar()
124 n = ((c & 0xff) << 8) | filter->cache; in mbfl_filt_conv_byte2le_wchar()
125 CK((*filter->output_function)(n, filter->data)); in mbfl_filt_conv_byte2le_wchar()
/PHP-5.3/tests/lang/
H A D020.phpt11 echo "In branch 1\n";
14 echo "This doesn't work... :(\n";
17 echo "This works!\n";
20 echo "Hmmm, no worki\n";
23 echo "Inner default...\n";
27 echo "blah=$blah\n";
32 echo "In branch 2\n";
35 echo "In branch \$i\n";
38 echo "In branch 4\n";
41 echo "Hi, I'm default\n";
/PHP-5.3/ext/dom/tests/
H A DDOMDocument_strictErrorChecking_variation.phpt12 echo "Load document\n";
16 echo "See if strictErrorChecking is on\n";
19 echo "Should throw DOMException when strictErrorChecking is on\n";
23 echo "GOOD. DOMException thrown\n";
24 echo $e->getMessage() ."\n";
26 echo "OOPS. Other exception thrown\n";
30 echo "Turn strictErrorChecking off\n";
33 echo "See if strictErrorChecking is off\n";
40 echo "OOPS. DOMException thrown\n";
41 echo $e->getMessage() ."\n";
[all …]
/PHP-5.3/ext/mysqli/tests/
H A Dmysqli_get_client_stats_ps.phpt21 …printf("BEGINNING: rows_fetched_from_client_ps_unbuffered = %d\n", $stats['rows_fetched_from_clien…
22 …printf("BEGINNING: rows_fetched_from_client_ps_buffered = %d\n", $stats['rows_fetched_from_client_…
23 …printf("BEGINNING: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps…
26 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 printf("[003] Unbuffered rows got increased after buffered PS, expecting %d got %d.\n",
50 printf("[005] Buffered rows should be %d got %d.\n",
57 …printf("BUFFERED: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps_…
63 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[007] Unbuffered rows should be %d got %d.\n",
[all …]
H A Dmysqli_stmt_execute_stored_proc_next_result.phpt25 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
42 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 printf("[009] Results seem wrong, got %s, [%d] %s\n",
52 printf("[011] Next result: %s\n", (mysqli_next_result($link)) ? "yes" : "no");
58 printf("[013] [%d] %s\n", $link->errno, $link->error);
65 printf("[014] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
85 printf("[019] Results seem wrong, got %s, [%d] %s\n",
90 printf("[020] [%d] %s\n", $link->errno, $link->error);
98 printf("[022] Results seem wrong, got %s, [%d] %s\n",
107 printf("[024] [%d] %s\n", $link->errno, $link->error);
[all …]
H A Dmysqli_stmt_reset.phpt23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
31 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
37 printf("[005] Expecting boolean/true, got %s/%s, [%d] %s\n",
56 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
59 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
84 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
87 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_info.phpt14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
43 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
69 if (!fwrite($fp, b"100;'a';\n") ||
70 !fwrite($fp, b"101;'b';\n") ||
[all …]
H A Dmysqli_stmt_field_count.phpt17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
26 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
29 printf("[004] Prepare should fail for an empty statement\n");
31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
46 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
52 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
56 printf("[014] expected error - got ok\n");
[all …]
H A Dmysqli_stmt_close.phpt17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
32 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
35 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[007] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
57 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
63 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_data_seek.phpt17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
31 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
34 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
45 printf("[009] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
53 printf("[011] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
69 printf("[015] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_store_result.phpt17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
39 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
46 printf("[009] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
49 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
68 printf("[015] unbuffered '%s'/%s, buffered '%s'/%s\n",
71 printf("[016] unbuffered '%s'/%s, buffered '%s'/%s\n",
[all …]
/PHP-5.3/ext/gd/tests/
H A Dcolorexact.phpt5 if (!function_exists('imagecolorexact')) die("skip gd extension not available\n");
14 printf("%X\n", $c);
15 printf("%X\n", $c2);
24 echo imagecolorexact($im, 255,0,255) . "\n";
25 echo imagecolorexact($im, 255,200,0) . "\n";
26 echo imagecolorexactalpha($im, 255,200,0,100) . "\n";
30 echo imagecolorexact($im, 12,12,12) . "\n";
/PHP-5.3/ext/standard/tests/dir/
H A Dopendir_variation4.phpt14 echo "*** Testing opendir() : usage variation ***\n";
28 echo "\n-- \$path = './level_one': --\n";
33 echo "\n-- \$path = 'level_one/level_two': --\n";
38 echo "\n-- \$path = '..': --\n";
42 echo "\n-- \$path = 'level_two', '.': --\n";
47 echo "\n-- \$path = '../': --\n";
51 echo "\n-- \$path = './': --\n";
56 echo "\n-- \$path = '../../'level_one': --\n";
/PHP-5.3/ext/phar/tests/tar/
H A Dphar_setdefaultstub.phpt13 $phar['a.php'] = '<php echo "this is a\n"; ?>';
14 $phar['b.php'] = '<php echo "this is b\n"; ?>';
15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>');
19 echo "============================================================================\n";
20 echo "============================================================================\n";
26 echo $e->getMessage(). "\n";
31 echo "============================================================================\n";
32 echo "============================================================================\n";
38 echo $e->getMessage(). "\n";
50 echo $e->getMessage(). "\n";
[all …]
/PHP-5.3/ext/phar/tests/zip/
H A Dphar_setdefaultstub.phpt13 $phar['a.php'] = '<php echo "this is a\n"; ?>';
14 $phar['b.php'] = '<php echo "this is b\n"; ?>';
15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>');
19 echo "============================================================================\n";
20 echo "============================================================================\n";
26 echo $e->getMessage(). "\n";
31 echo "============================================================================\n";
32 echo "============================================================================\n";
38 echo $e->getMessage(). "\n";
50 echo $e->getMessage(). "\n";
[all …]

Completed in 33 milliseconds

12345678910>>...329