Home
last modified time | relevance | path

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

12345678910>>...393

/php-src/ext/mysqli/tests/
H A Dmysqli_real_escape_string_nobackslash.phpt17 printf("[002] Expecting \\, got %s\n", $tmp);
20 printf("[003] Expecting \", got %s\n", $tmp);
23 printf("[004] Expecting '', got %s\n", $tmp);
25 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n")))
26 printf("[005] Expecting \\n, got %s\n", $tmp);
29 printf("[006] Expecting \\r, got %s\n", $tmp);
33 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp);
37 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
41 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
50 printf("[012] Expecting \\, got %s\n", $tmp);
[all …]
H A Dmysqli_stmt_bind_param_call_user_func.phpt15 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 print "Regular, procedural, using variables\n";
36 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
59 print "Call user func, procedural, using references for everything\n";
65 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
93 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
121 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
148 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
177 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
206 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_affected_rows_oo.phpt17 echo $exception->getMessage() . "\n";
23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_class_mysqli_stmt_interface.phpt16 printf("Parent class:\n");
19 printf("\nMethods:\n");
66 printf("ok\n");
68 printf("\nClass variables:\n");
72 printf("%s\n", $var);
74 printf("\nObject variables:\n");
77 printf("%s\n", $var);
79 printf("\nMagic, magic properties:\n");
84 echo $exception->getMessage() . "\n";
90 echo $exception->getMessage() . "\n";
[all …]
H A Dmysqli_stmt_field_count.phpt18 echo $exception->getMessage() . "\n";
22 printf("[004] Prepare should fail for an empty statement\n");
27 echo $exception->getMessage() . "\n";
33 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
43 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
49 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
54 printf("[014] expected error - got ok\n");
65 printf("[017] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
79 echo $exception->getMessage() . "\n";
[all …]
/php-src/ext/json/tests/
H A Djson_encode_pretty_print2.phpt17 echo json_encode(new HasNoProperties()), "\n";
18 echo json_encode(new HasNoProperties(), JSON_PRETTY_PRINT), "\n";
20 echo json_encode(new MyClass()), "\n";
21 echo json_encode(new MyClass(), JSON_PRETTY_PRINT), "\n";
24 echo json_encode($obj), "\n";
25 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
28 echo json_encode($obj), "\n";
29 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
31 echo json_encode($obj), "\n";
32 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
/php-src/ext/standard/tests/strings/
H A Dstrtok_basic.phpt9 echo "*** Testing strtok() : basic functionality ***\n";
15 echo "\nThe Input string is:\n\"$str\"\n";
16 echo "\nThe token string is:\n\"$token\"\n";
19 echo "\n--- Token 1 ---\n";
23 echo "\n--- Token $i ---\n";
27 echo "Done\n";
/php-src/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";
/php-src/ext/hash/tests/
H A Dmd4.phpt6 echo hash('md4', '') . "\n";
7 echo hash('md4', 'a') . "\n";
8 echo hash('md4', 'abc') . "\n";
9 echo hash('md4', 'message digest') . "\n";
10 echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n";
11 echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
12 …('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
H A Dhash_pbkdf2_basic.phpt6 echo "*** Testing hash_pbkdf2() : basic functionality ***\n";
8 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n";
9 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n";
10 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n";
11 …_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25)."\n";
12 …('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25, TRUE))."\n";
13 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n";
14 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n";
15 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n";
16 …bkdf2('sha256', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 40)."\n";
[all …]
H A Dhash_pbkdf2_error.phpt9 echo "*** Testing hash_pbkdf2() : error conditions ***\n";
14 echo "\n-- Testing hash_pbkdf2() function with invalid hash algorithm --\n";
19 echo $e->getMessage() . "\n";
23 echo "\n-- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --\n";
28 echo $e->getMessage() . "\n";
31 echo "\n-- Testing hash_pbkdf2() function with invalid iterations --\n";
36 echo $e->getMessage() . "\n";
43 echo $e->getMessage() . "\n";
46 echo "\n-- Testing hash_pbkdf2() function with invalid length --\n";
51 echo $e->getMessage() . "\n";
/php-src/ext/pdo_firebird/tests/
H A Dtransaction_isolation_level_behavior.phpt33 echo "begin transaction\n";
38 echo "Read\n";
46 echo "\n";
56 echo "begin transaction\n";
61 echo "Read\n";
69 echo "\n";
79 echo "begin transaction\n";
84 echo "Read\n";
92 echo "\n";
114 echo "Read\n";
[all …]
/php-src/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-src/ext/dom/tests/modern/spec/
H A DCharacterData_substringData_negative_arguments_mod32.phpt12 echo "--- Modern behaviour ---\n";
17 echo $dom->saveHTML($comment), "\n";
19 echo $dom->saveHTML($comment), "\n";
21 echo $dom->saveHTML($comment), "\n";
23 echo "--- Legacy behaviour ---\n";
30 echo $e->getMessage(), "\n";
32 echo $dom->saveHTML($comment), "\n";
36 echo $e->getMessage(), "\n";
38 echo $dom->saveHTML($comment), "\n";
42 echo $e->getMessage(), "\n";
[all …]
/php-src/ext/standard/tests/class_object/
H A Dget_object_vars_basic_001.phpt9 echo __METHOD__ . "\n";
21 echo __METHOD__ . "\n";
30 echo __METHOD__ . "\n";
37 echo __METHOD__ . "\n";
44 echo "\n---( Global scope: )---\n";
46 echo "\n---( Declaring class: )---\n";
48 echo "\n---( Subclass: )---\n";
50 echo "\n---( Superclass: )---\n";
52 echo "\n---( Unrelated class: )---\n";
/php-src/ext/standard/tests/file/
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 …]
/php-src/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 …]
/php-src/ext/standard/tests/array/
H A Darray_rand_variation5.phpt11 echo "*** Testing array_rand() : with invalid values for 'req_num' ***\n";
22 echo"\n-- With default num_req value --\n";
24 echo"\n-- With num_req = 1 --\n";
28 echo"\n-- With num_req = 0 --\n";
32 echo $e->getMessage() . "\n";
35 echo"\n-- With num_req = -1 --\n";
39 echo $e->getMessage() . "\n";
42 echo"\n-- With num_req = -2 --\n";
46 echo $e->getMessage() . "\n";
49 echo"\n-- With num_req more than number of members in 'input' array --\n";
[all …]
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 …]
/php-src/ext/odbc/tests/
H A Dodbc_connect_001.phpt21 echo "dsn without credentials / correct user / correct password\n";
23 echo $conn ? "Connected.\n\n" : "";
26 echo "dsn with correct user / incorrect user / correct password\n";
28 echo $conn ? "Connected.\n\n" : "";
31 echo "dsn with correct password / correct user / incorrect password\n";
33 echo $conn ? "Connected.\n\n" : "";
38 echo $conn ? "Connected.\n\n" : "";
41 echo "dsn with correct credentials / null user / null password\n";
43 echo $conn ? "Connected.\n\n" : "";
46 echo "dsn with correct credentials / not set user / not set password\n";
[all …]
/php-src/ext/enchant/tests/
H A Ddict_check.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");}
19 echo("OK\n");
23 echo("OK\n");
27 echo("OK\n");
30 echo("dict check new word failed\n");
34 echo("broker request dict failed\n");
39 echo("broker is not a resource; failed;\n");
41 echo "OK\n";
/php-src/ext/mbstring/tests/
H A Dmb_strpos_basic.phpt11 echo "*** Testing mb_strpos() : 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";
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";
H A Dmb_trim.phpt9 echo "== Copy from trim ==\n";
14 var_dump("ABC \0\t\n" === mb_ltrim(" \0\t\nABC \0\t\n"));
16 var_dump(" \0\t\nABC \0\t\n" === mb_trim(" \0\t\nABC \0\t\n",''));
17 var_dump(" \0\t\nABC \0\t\n" === mb_ltrim(" \0\t\nABC \0\t\n",''));
18 var_dump(" \0\t\nABC \0\t\n" === mb_rtrim(" \0\t\nABC \0\t\n",''));
19 echo "== Empty string ==\n";
24 echo "== Single string ==\n";
38 echo "== Many strings ==\n";
52 echo "== mb_ltrim ==\n";
54 echo "== mb_rtrim ==\n";
[all …]
/php-src/ext/pgsql/tests/
H A D02connection.phpt18 echo "pg_connection_status() error\n";
22 echo "pg_connection_reset() error\n";
26 echo "pg_connection_busy() error\n";
31 echo "pg_transaction_status() error\n";
36 echo "pg_host() error\n";
40 echo "pg_dbname() error\n";
44 echo "pg_port() error\n";
48 echo "pg_tty() error\n";
52 echo "pg_options() error\n";

Completed in 26 milliseconds

12345678910>>...393