Home
last modified time | relevance | path

Searched refs:n (Results 376 – 400 of 9184) sorted by relevance

1...<<11121314151617181920>>...368

/PHP-5.6/ext/standard/tests/array/
H A Darray_column_error.phpt12 echo "*** Testing array_column() : error conditions ***\n";
14 echo "\n-- Testing array_column() function with Zero arguments --\n";
17 echo "\n-- Testing array_column() function with One argument --\n";
20 echo "\n-- Testing array_column() function with string as first parameter --\n";
23 echo "\n-- Testing array_column() function with int as first parameter --\n";
26 echo "\n-- Testing array_column() column key parameter should be a string or an integer (testing bo…
29 echo "\n-- Testing array_column() column key parameter should be a string or integer (testing array…
32 echo "\n-- Testing array_column() index key parameter should be a string or an integer (testing boo…
35 echo "\n-- Testing array_column() index key parameter should be a string or integer (testing array)…
38 echo "Done\n";
H A Darray_map_object2.phpt15 echo "*** Testing array_map() : with non-existent class and method ***\n";
20 public function square($n) {
21 return $n * $n;
23 public static function cube($n) {
24 return $n * $n * $n;
28 echo "-- with non-existent class --\n";
31 echo "-- with existent class and non-existent method --\n";
/PHP-5.6/tests/classes/
H A Dtype_hinting_004.phpt14 echo "in f1;\n";
17 echo "in f2;\n";
27 echo "\n\n---> Type hints with callback static method:\n";
31 echo "in C::f1 (instance);\n";
33 echo "in C::f1 (static);\n";
38 echo "in C::f2 (instance);\n";
40 echo "in C::f2 (static);\n";
52 echo "\n\n---> Type hints with callback instance method:\n";
56 echo "in C::f1 (instance);\n";
58 echo "in C::f1 (static);\n";
[all …]
/PHP-5.6/ext/spl/tests/
H A Ddllist_004.phpt10 echo "Exception: ".$e->getMessage()."\n";
15 echo "Exception: ".$e->getMessage()."\n";
21 echo $stack->pop()."\n";
26 echo $stack->top()."\n";
30 echo "[$elem]\n";
36 echo count($stack)."\n";
37 echo $stack->count()."\n";
45 echo count($stack)."\n";
H A Ddllist_005.phpt10 echo "Exception: ".$e->getMessage()."\n";
15 echo "Exception: ".$e->getMessage()."\n";
21 echo $queue->dequeue()."\n";
26 echo $queue->top()."\n";
30 echo "[$elem]\n";
36 echo count($queue)."\n";
37 echo $queue->count()."\n";
45 echo count($queue)."\n";
H A Drecursive_tree_iterator_006.phpt38 echo "-- flags = BYPASS_KEY --\n";
40 echo "[$k] => $v\n";
42 echo "-- flags = BYPASS_CURRENT --\n";
44 echo "[$k] => $v\n";
46 echo "-- flags = BYPASS_KEY|BYPASS_KEY --\n";
48 echo "[$k] => $v\n";
50 echo "-- flags = 0 --\n";
52 echo "[$k] => $v\n";
54 echo "-- flags = 0, caching_it_flags = CachingIterator::CATCH_GET_CHILD --\n";
56 echo "[$k] => $v\n";
H A DarrayObject_magicMethods3.phpt34 echo "\n--> Write existent, non-existent and dynamic:\n";
38 echo " Original wrapped object:\n";
40 echo " Wrapping ArrayObject:\n";
43 echo "\n--> Read existent, non-existent and dynamic:\n";
47 echo " Original wrapped object:\n";
49 echo " Wrapping ArrayObject:\n";
52 echo "\n--> isset existent, non-existent and dynamic:\n";
56 echo " Original wrapped object:\n";
58 echo " Wrapping ArrayObject:\n";
61 echo "\n--> Unset existent, non-existent and dynamic:\n";
[all …]
/PHP-5.6/main/
H A Dstrlcpy.c73 register size_t n = siz; local
76 if (n != 0 && --n != 0) {
80 } while (--n != 0);
84 if (n == 0) {
/PHP-5.6/ext/mysqli/tests/
H A Dmysqli_change_user_oo.phpt29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
44 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
58 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[011] Cannot set test variable\n");
68 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
78 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_stmt_get_warnings.phpt18 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
33 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
72 printf("[013] Object mysqli_warning seems to lack method next()\n");
78 printf("[014 - %d] Message should not be empty\n", $i);
81 printf("[015 - %d] SQL State should not be empty\n", $i);
84 printf("[016 - %d] Error number should not be zero\n", $i);
91 printf("[017] Expected 2 warnings, got %d warnings\n", $i);
[all …]
H A Dmysqli_commit_oo.phpt42 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
50 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error);
59 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
72 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
76 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
79 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
82 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
84 if (!$mysqli->commit(0 , "tx_name \t\n\r\b")) {
85 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_real_escape_string_eucjpms.phpt14 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n",
28 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db,
33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
46 printf("[004] Expecting \\\\, got %s\n", $tmp);
49 printf("[005] Expecting \", got %s\n", $tmp);
52 printf("[006] Expecting ', got %s\n", $tmp);
54 …if ("�����Ȥ߹�碌�Ǥ�\\n�����Ȥ߹�碌�Ǥ�" !== ($tmp = mysqli_real_escape_string($link, "�����Ȥ߹�碌�Ǥ�\n����…
55 printf("[007] Expecting \\n, got %s\n", $tmp);
58 printf("[008] Expecting \\r, got %s\n", $tmp);
[all …]
H A Dmysqli_real_escape_string_euckr.phpt14 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n",
27 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db,
32 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
38 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
45 printf("[004] Expecting \\\\, got %s\n", $tmp);
48 printf("[005] Expecting \", got %s\n", $tmp);
51 printf("[006] Expecting ', got %s\n", $tmp);
53 if ("�Ǵ뼺\\n�Ǵ뼺" !== ($tmp = mysqli_real_escape_string($link, "�Ǵ뼺\n�Ǵ뼺")))
54 printf("[007] Expecting \\n, got %s\n", $tmp);
57 printf("[008] Expecting \\r, got %s\n", $tmp);
[all …]
H A Dmysqli_real_escape_string_gb2312.phpt14 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n",
28 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db,
33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
46 printf("[004] Expecting \\\\, got %s\n", $tmp);
49 printf("[005] Expecting \", got %s\n", $tmp);
52 printf("[006] Expecting ', got %s\n", $tmp);
54 if ("����\\n����" !== ($tmp = mysqli_real_escape_string($link, "����\n����")))
55 printf("[007] Expecting \\n, got %s\n", $tmp);
58 printf("[008] Expecting \\r, got %s\n", $tmp);
[all …]
H A Dmysqli_real_escape_string_gbk.phpt15 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n",
30 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db,
35 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
41 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
48 printf("[004] Expecting \\\\, got %s\n", $tmp);
51 printf("[005] Expecting \", got %s\n", $tmp);
54 printf("[006] Expecting ', got %s\n", $tmp);
56 if ("�İ汾\\n�İ汾" !== ($tmp = mysqli_real_escape_string($link, "�İ汾\n�İ汾")))
57 printf("[007] Expecting \\n, got %s\n", $tmp);
60 printf("[008] Expecting \\r, got %s\n", $tmp);
[all …]
H A Dmysqli_real_connect.phpt42 printf("[002] mysqli_init() failed\n");
50 printf("[004] mysqli_init() failed\n");
62 printf("[007] mysqli_init() failed\n");
67 printf("[008] Usage of mysqli.default_port failed\n");
71 printf("[009] mysqli_init() failed\n");
76 printf("[010] Usage of mysqli.default_pw failed\n") ;
80 printf("[011] mysqli_init() failed\n");
85 printf("[012] Usage of mysqli.default_user failed\n") ;
89 printf("[011] mysqli_init() failed\n");
98 printf("[015] mysqli_init() failed\n");
[all …]
H A Dmysqli_driver.phpt14 printf("[001] Failed to create mysqli_driver object\n");
18 printf("[002] Expecting %s/%s, got %s/%s\n",
24 printf("[003] Expecting %s/%s, got %s/%s\n",
29 printf("[004] Expecting int/any, got %s/%s\n",
37 printf("[005] Expecting int/any, got %s/%s\n",
58 printf("[009] getCode() has returned an empty string.\n");
60 printf("[010] getFile() has returned an empty string.\n");
62 printf("[011] getLine() has returned an empty string.\n");
90 printf("[018] Error mode should be different\n");
98 printf("[019] Expecting boolean/any, got %s/%s\n",
[all …]
/PHP-5.6/ext/pdo_mysql/tests/
H A Dpdo_mysql_begintransaction.phpt19 printf("[001] Autocommit should be on by default\n");
22 printf("[002] Cannot start a transaction, [%s] [%s]\n",
29 printf("[004] No rows deleted, can't be true.\n");
52 printf("[009] Autocommit should be on after commit()\n");
78 printf("[015] Results must not differ!\n");
100 printf("[021] Results must not differ!\n");
137 printf("[029] Cannot start a transaction, [%d] %s\n",
153 printf("[031] Cannot start a transaction, [%s] [%s]\n",
160 printf("[033] No rows deleted, can't be true.\n");
170 printf("[036] Cannot insert data, [%s] [%s]\n",
[all …]
/PHP-5.6/ext/date/tests/
H A Dgmdate_variation10.phpt11 echo "*** Testing gmdate() : usage variation ***\n";
17 echo "\n-- Testing gmdate() function with Timezone identifier format --\n";
21 echo "\n-- Testing gmdate() function with checking whether date is in daylight saving time format -…
25 echo "\n-- Testing gmdate() function with difference to GMT in hours format --\n";
29 echo "\n-- Testing gmdate() function with Difference to GMT in hours using colon as separator forma…
33 echo "\n-- Testing gmdate() function with timezone abbreviation format --\n";
37 echo "\n-- Testing gmdate() function with timezone offset format --\n";
H A Dbug33415-1.phpt7 AM as per most DST transitions?\n";
10 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
12 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
13 print "wanted=Monday 00:00:00\n\n";
15 print "TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?\n";
18 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
20 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
21 print "wanted=Sunday 00:00:00\n\n";
/PHP-5.6/ext/pgsql/tests/
H A D26async_query_prepared.phpt18 echo "pg_send_prepare() error\n";
22 echo "pg_connection_status() error\n";
26 echo "pg_get_result() error\n";
31 echo "pg_send_execute() error\n";
35 echo "pg_connection_status() error\n";
39 echo "pg_get_result() error\n";
43 echo "pg_num_rows() error\n";
73 echo "pg_send_prepare() error\n";
81 echo "pg_get_result() error\n";
87 echo "pg_send_execute() error\n";
[all …]
/PHP-5.6/ext/iconv/tests/
H A Diconv_basic.phpt19 echo "*** Testing iconv() : basic functionality ***\n";
26 echo "\n-- Convert to EUC-JP --\n";
27 echo "Expected EUC-JP encoded string in base64:\n";
29 echo "Converted Strings:\n";
33 echo "\n-- Convert to SJIS --\n";
34 echo "Expected SJIS encoded string in base64:\n";
36 echo "Converted Strings:\n";
40 echo "\n-- Convert to UTF-8 --\n";
41 echo "Expected UTF-8 encoded string in base64:\n";
43 echo "Converted Strings:\n";
/PHP-5.6/ext/dba/tests/
H A Ddba_db4_016.phpt14 echo "database handler: $handler\n";
18 echo "database file created\n";
20 echo dba_fetch("key1", $db_file), "\n";
23 echo "File did not get created\n";
26 echo "Error creating $db_filename\n";
32 echo "database file created\n";
35 echo dba_fetch("key1", $db_file), "\n";
36 echo dba_fetch("key2", $db_file), "\n";
39 echo "File did not get created\n";
42 echo "Error creating $db_filename\n";
/PHP-5.6/Zend/tests/generators/finally/
H A Dfinally_ran_on_close.phpt9 echo "before yield\n";
11 echo "after yield\n";
13 echo "finally run\n";
15 echo "code after finally\n";
17 echo "second finally run\n";
19 echo "code after second finally\n";
/PHP-5.6/ext/standard/tests/strings/
H A Dbug65230.phpt20 printf("%s\n--------------------------\n", $newlocale);
21 printf(" sep: %s\n", $sep);
22 printf(" %%f: %f\n", $value);
23 printf(" %%F: %F\n", $value);
24 printf("date: %s\n", strftime('%x', mktime(0, 0, 0, 12, 5, 2014)));
25 printf("\n");

Completed in 30 milliseconds

1...<<11121314151617181920>>...368