Home
last modified time | relevance | path

Searched refs:n (Results 251 – 275 of 9833) sorted by relevance

1...<<11121314151617181920>>...394

/PHP-8.1/ext/mbstring/tests/
H A Dmb_strrpos_basic.phpt11 echo "*** Testing mb_strrpos() : basic ***\n";
19 echo "\n-- ASCII string 1 --\n";
22 echo "\n-- ASCII string 2 --\n";
25 echo "\n-- Multibyte string 1 --\n";
29 echo "\n-- Multibyte string 2 --\n";
H A Dmb_substr_basic.phpt13 echo "*** Testing mb_substr() : basic functionality ***\n";
19 echo "\n-- ASCII string 1 --\n";
22 echo "\n-- ASCII string 2 --\n";
25 echo "\n-- Multibyte string 1 --\n";
29 echo "\n-- Multibyte string 2 --\n";
/PHP-8.1/ext/standard/tests/array/
H A Dcount_recursive.phpt5 echo "*** Testing basic functionality of count() function ***\n";
7 print "-- Testing arrays --\n";
12 print "-- Testing hashes --\n";
17 print "-- Testing various types with no second argument --\n";
22 print "-- Testing really cool arrays --\n";
44 echo "\n-- Iteration $i --\n";
50 print "\n-- Testing count() on an empty sub-array --\n";
55 echo "\n-- Testing count() on objects with Countable interface --\n";
67 print "COUNT_NORMAL: should be 3, is ".count($obj)."\n";
70 echo "\n-- Testing count() on resource type --\n";
[all …]
H A Darray_fill_keys_variation4.phpt7 echo "*** Testing array_fill_keys() : parameter variations ***\n";
23 echo "\n-- Testing array_fill_keys() function with float --\n";
26 echo "\n-- Testing array_fill_keys() function with null --\n";
29 echo "\n-- Testing array_fill_keys() function with object --\n";
32 echo "\n-- Testing array_fill_keys() function with boolean --\n";
35 echo "\n-- Testing array_fill_keys() function with resource --\n";
38 echo "\n-- Testing array_fill_keys() function with unset var --\n";
/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_class_mysqli_result_interface.phpt22 printf("Parent class:\n");
25 printf("\nMethods:\n");
67 printf("ok\n");
70 printf("\nClass variables:\n");
74 printf("%s\n", $var);
76 printf("\nObject variables:\n");
79 printf("%s\n", $var);
81 printf("\nMagic, magic properties:\n");
106 printf("mysqli_result->type = '%s'/%s\n",
113 printf("\nConstructor:\n");
[all …]
H A Dmysqli_affected_rows_oo.phpt17 echo $exception->getMessage() . "\n";
26 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
29 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
32 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
46 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
52 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
58 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
103 printf("[025] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_class_mysqli_stmt_interface.phpt17 printf("Parent class:\n");
20 printf("\nMethods:\n");
69 printf("ok\n");
71 printf("\nClass variables:\n");
75 printf("%s\n", $var);
77 printf("\nObject variables:\n");
80 printf("%s\n", $var);
82 printf("\nMagic, magic properties:\n");
87 echo $exception->getMessage() . "\n";
93 echo $exception->getMessage() . "\n";
[all …]
H A Dmysqli_stmt_field_count.phpt20 echo $exception->getMessage() . "\n";
24 printf("[004] Prepare should fail for an empty statement\n");
29 echo $exception->getMessage() . "\n";
35 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
40 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
45 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
51 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
56 printf("[014] expected error - got ok\n");
67 printf("[017] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
81 echo $exception->getMessage() . "\n";
[all …]
H A Dmysqli_affected_rows.phpt18 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n",
22 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
42 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
48 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
55 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[019] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
87 printf("[026] Expecting boolean/true got %s/%s\n",
[all …]
/PHP-8.1/tests/lang/
H A Dsyntax_errors.phpt17 "if(1 > 2) {\n echo '1';", /* unclosed (, spans multiple lines */
19 "{\n echo '1';\n echo '2';", /* unclosed {, spans multiple lines */
20 "(1 +\n 2 +\n 3))", /* too many ), spans multiple lines */
22 "if (1)\n {\n }}", /* too many }, spans multiple lines */
23 "(1 +\n\n 2])", /* ] doesn't match (, spans multiple lines */
25 "if(1) {\n echo 'a';\n)}", /* ) doesn't match {, spans multiple lines */
32 echo $e->getMessage(), "\n";
36 echo "==DONE==\n";
/PHP-8.1/ext/pdo_oci/tests/
H A Dpdo_oci_attr_prefetch_1.phpt18 echo "Test connect\n";
22 echo $dbh->getAttribute(PDO::ATTR_PREFETCH), "\n";
28 echo $r[0] . "\n";
31 echo "Test set 102\n";
33 echo $dbh->getAttribute(PDO::ATTR_PREFETCH), "\n";
39 echo $r[0] . "\n";
42 echo "Test set -1: (Uses 0)\n";
50 echo $r[0] . "\n";
53 echo "Test set PHP_INT_MAX: (Uses default)\n";
61 echo $r[0] . "\n";
[all …]
/PHP-8.1/ext/phar/tests/
H A Dphar_oo_008.phpt18 echo "===1===\n";
21 echo "$k=>$v\n";
26 echo "===2===\n";
29 echo "$k=>$v\n";
44 echo "===3===\n";
50 echo "===4===\n";
58 echo "===5===\n";
61 echo "$k=>" . join('|', $d) . "\n";
68 echo __METHOD__ . "\n";
77 echo "===6===\n";
[all …]
/PHP-8.1/ext/intl/tests/
H A Dcalendar_isEquivalentTo_error.phpt14 echo "error: $errno, $errstr\n";
21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
31 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
37 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
42 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
47 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
/PHP-8.1/ext/standard/tests/class_object/
H A Dget_declared_traits_basic_001.phpt5 echo "*** Testing get_declared_traits() : basic functionality ***\n";
10 echo "\n-- Testing get_declared_traits() function with Zero arguments --\n";
15 echo "Error: $trait is not a valid trait.\n";
19 echo "\n-- Ensure trait is listed --\n";
22 echo "\n-- Ensure userspace interfaces are not listed --\n";
26 echo "\n-- Ensure userspace classes are not listed --\n";
/PHP-8.1/tests/classes/
H A Dinheritance.phpt12 echo "This is class foo\n";
13 echo "a = ".$this->a."\n";
14 echo "b = ".$this->b."\n";
24 echo "This is class bar\n";
25 echo "a = ".$this->a."\n";
26 echo "b = ".$this->b."\n";
27 echo "c = ".$this->c."\n";
36 echo $foo1->mul()."\n";
38 echo "-----\n";
45 echo $bar1->mul()."\n";
/PHP-8.1/ext/enchant/tests/
H A Dbroker_free_dict.phpt9 if(!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
10 …ker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");}
18 echo("OK\n");
22 echo("OK\n");
29 echo("OK\n");
32 echo("dict broker free has failed\n");
36 echo("dict add to personal failed\n");
40 echo("broker request dict failed\n");
44 echo("broker is not a resource; failed;\n");
46 echo "OK\n";
/PHP-8.1/ext/date/tests/
H A Ddate_period-immutable.phpt13 echo get_class( $dt ), "\n";
14 echo $dt->format( "l Y-m-d\n" );
15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
16 echo $dt->format( "l Y-m-d\n\n" );
21 echo get_class( $dt ), "\n";
22 echo $dt->format( "l Y-m-d\n" );
23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
24 echo $dt->format( "l Y-m-d\n\n" );
/PHP-8.1/ext/standard/tests/strings/
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";
H A Dtrim_basic.phpt6 echo "*** Testing trim() : basic functionality ***\n";
8 $text = " \t\r\n\0\x0B ---These are a few words--- \t\r\n\0\x0B ";
12 echo "\n-- Trim string with all white space characters --\n";
15 echo "\n-- Trim non-whitespace from a string --\n";
18 echo "\n-- Trim some non-white space characters from a string --\n";
21 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
/PHP-8.1/ext/spl/tests/
H A Dheap_004.phpt15 echo "inserted 1\n";
17 echo "inserted 2\n";
19 echo "inserted 3\n";
21 echo "Exception: ".$e->getMessage()."\n";
26 echo "inserted 4\n";
28 echo "Exception: ".$e->getMessage()."\n";
34 echo "Exception: ".$e->getMessage()."\n";
39 echo "Exception: ".$e->getMessage()."\n";
42 echo "Recovering..\n";
48 echo "Exception: ".$e->getMessage()."\n";
[all …]
H A Dpqueue_002.phpt15 echo "inserted 1\n";
17 echo "inserted 2\n";
19 echo "inserted 3\n";
21 echo "Exception: ".$e->getMessage()."\n";
26 echo "inserted 4\n";
28 echo "Exception: ".$e->getMessage()."\n";
34 echo "Exception: ".$e->getMessage()."\n";
39 echo "Exception: ".$e->getMessage()."\n";
42 echo "Recovering..\n";
48 echo "Exception: ".$e->getMessage()."\n";
[all …]
/PHP-8.1/ext/standard/tests/dir/
H A Dchdir_variation2-win32-mb.phpt15 echo "*** Testing chdir() : usage variations ***\n";
30 echo "\n-- \$directory = './私はガラスを食べられますlevel_one': --\n";
35 echo "\n-- \$directory = '私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two': --\n";
40 echo "\n-- \$directory = '..': --\n";
44 echo "\n-- \$directory = '私はガラスを食べられますlevel_two', '.': --\n";
49 echo "\n-- \$directory = '../': --\n";
53 echo "\n-- \$directory = './': --\n";
58 echo "\n-- \$directory = '../../'私はガラスを食べられますlevel_one': --\n";
/PHP-8.1/ext/gd/tests/
H A Dimagefilter.phpt28 echo "$filt success\n";
31 echo "$filt failed\n";
39 echo "IMG_FILTER_SMOOTH success\n";
42 echo "IMG_FILTER_SMOOTH failed\n";
49 echo "IMG_FILTER_COLORIZE success\n";
52 echo "IMG_FILTER_COLORIZE failed\n";
59 echo "IMG_FILTER_CONTRAST success\n";
62 echo "IMG_FILTER_CONTRAST failed\n";
82 echo "IMG_FILTER_PIXELATE failed\n";
89 echo "IMG_FILTER_SCATTER success\n";
[all …]
/PHP-8.1/sapi/cli/tests/
H A D021.phpt21 $script = "#!$php -n\n".
22 "ola\n".
23 "<?php echo 1+1,'\n';\n".
24 "?>\n".
25 "adeus\n";
32 echo "\nDone\n";
/PHP-8.1/ext/ffi/tests/
H A D028.phpt11 echo "ok\n";
13 echo get_class($e) . ": " . $e->getMessage()."\n";
17 echo "ok\n";
19 echo get_class($e) . ": " . $e->getMessage()."\n";
23 echo "ok\n";
25 echo get_class($e) . ": " . $e->getMessage()."\n";
29 echo "ok\n";
31 echo get_class($e) . ": " . $e->getMessage()."\n";
35 echo "ok\n";
37 echo get_class($e) . ": " . $e->getMessage()."\n";
[all …]

Completed in 41 milliseconds

1...<<11121314151617181920>>...394