Home
last modified time | relevance | path

Searched refs:n (Results 101 – 125 of 8369) sorted by relevance

12345678910>>...335

/PHP-5.4/ext/standard/tests/array/
H A Darray_map_object1.phpt26 return $n * $n;
35 echo "\n-- simple class with private variable and method --\n";
40 return $var + $n;
45 echo "\n-- simple class with protected variable and method --\n";
55 echo "\n-- class without members --\n";
61 echo "\n-- abstract class --\n";
78 echo "\n-- class with final method --\n";
88 echo "\n-- class with static members --\n";
93 return ($n * $n);
96 return ($n * $n * $n);
[all …]
H A Dreset_basic.phpt14 echo "*** Testing reset() : basic functionality ***\n";
18 echo "\n-- Initial Position: --\n";
19 echo key($array) . " => " . current($array) . "\n";
21 echo "\n-- Call to next() --\n";
24 echo "\n-- Current Position: --\n";
25 echo key($array) . " => " . current($array) . "\n";
27 echo "\n-- Call to reset() --\n";
H A Darray_shift_variation6.phpt16 echo "*** Testing array_shift() : usage variations ***\n";
18 echo "\n-- Variable is referenced array --\n";
24 echo "\n\$original_array:\n";
26 echo "\n\$copied_array:\n";
29 echo "\n-- Element is referenced array --\n";
33 echo "\n\$new_array:\n";
35 echo "\n\$copied_array\n";
/PHP-5.4/ext/standard/tests/strings/
H A Dprintf_basic9.phpt28 echo "\n-- Calling printf() with no arguments --\n";
30 echo "\n";
33 echo "\n-- Calling printf() with one arguments --\n";
35 echo "\n";
38 echo "\n";
41 echo "\n-- Calling printf() with two arguments --\n";
43 echo "\n";
46 echo "\n";
49 echo "\n-- Calling printf() with three arguments --\n";
51 echo "\n";
[all …]
H A Dprintf_basic2.phpt10 echo "*** Testing printf() : basic functionality - using integer format ***\n";
22 echo "\n-- Calling printf() with no arguments --\n";
24 echo "\n";
27 echo "\n-- Calling printf() with one arguments--\n";
29 echo "\n";
32 echo "\n-- Calling printf() with two arguments--\n";
34 echo "\n";
37 echo "\n-- Calling printf() with three arguments--\n";
39 echo "\n";
H A Dprintf_basic4.phpt10 echo "*** Testing printf() : basic functionality - using bool format ***\n";
22 echo "\n-- Calling printf() with no arguments --\n";
24 echo "\n";
27 echo "\n-- Calling printf() with one arguments--\n";
29 echo "\n";
32 echo "\n-- Calling printf() with two arguments--\n";
34 echo "\n";
37 echo "\n-- Calling printf() with three arguments--\n";
39 echo "\n";
H A Dprintf_basic5.phpt10 echo "*** Testing printf() : basic functionality - using char format ***\n";
22 echo "\n-- Calling printf() with no arguments --\n";
24 echo "\n";
27 echo "\n-- Calling printf() with one arguments --\n";
29 echo "\n";
32 echo "\n-- Calling printf() with two arguments --\n";
34 echo "\n";
37 echo "\n-- Calling printf() with three arguments --\n";
39 echo "\n";
H A Dprintf_basic6.phpt10 echo "*** Testing printf() : basic functionality - using exponential format ***\n";
21 echo "\n-- Calling printf() with no arguments --\n";
23 echo "\n";
26 echo "\n-- Calling printf() with one argument --\n";
28 echo "\n";
31 echo "\n-- Calling printf() with two arguments --\n";
33 echo "\n";
36 echo "\n-- Calling printf() with three arguments --\n";
38 echo "\n";
H A Dhtmlspecialchars_decode_variation7.phpt21 echo "$t\tDECODED\n";
25 echo "\n*** XHTML 1.0/ENT_QUOTES ***\n";
32 echo "$t\tDECODED\n";
36 echo "\n*** HTML5/ENT_QUOTES ***\n";
43 echo "$t\tDECODED\n";
47 echo "\n*** XML 1.0/ENT_QUOTES ***\n";
54 echo "$t\tDECODED\n";
58 echo "\n*** HTML5/ENT_NOQUOTES ***\n";
65 echo "$t\tDECODED\n";
69 echo "\n*** HTML5/ENT_COMPAT ***\n";
[all …]
/PHP-5.4/ext/date/tests/
H A Dbug17988.phpt7 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n";
8 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n";
9 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MET"))."\n";
10 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MEST"))."\n";
11 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n";
12 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n";
13 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n";
14 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n";
15 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n";
16 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n";
[all …]
H A Dbug43452.phpt9 echo date( DateTime::ISO8601, $day ), "\n";
11 echo date( DateTime::ISO8601, $day ), "\n";
13 echo date( DateTime::ISO8601, $day ), "\n";
15 echo date( DateTime::ISO8601, $day ), "\n\n";
19 echo date( DateTime::ISO8601, $day ), "\n";
21 echo date( DateTime::ISO8601, $day ), "\n";
23 echo date( DateTime::ISO8601, $day ), "\n";
25 echo date( DateTime::ISO8601, $day ), "\n\n";
31 echo date( DateTime::ISO8601, $day ), "\n";
37 echo date( DateTime::ISO8601, $day ), "\n\n";
[all …]
H A Dmktime-1.phpt11 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
12 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
13 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
14 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
15 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
16 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
20 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
21 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
23 echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,0))."\n";
26 echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n";
[all …]
/PHP-5.4/tests/func/
H A D003.phpt8 echo "hey\n";
13 echo "$i\n";
21 echo "$k\n";
38 if ($n==0 || $n==1) {
41 return factorial($n-1)*$n;
48 if ($n<=$start) {
51 return factorial2($start,$n-1)*$n;
59 echo "factorial($i) = $n\n";
72 echo "factorial($i) = $n\n";
83 echo "------\n";
[all …]
/PHP-5.4/ext/mysqli/tests/
H A Dmysqli_fetch_assoc_no_alias.phpt14 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
16 print "[002]\n";
21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
23 print "[004]\n";
28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 print "[006]\n";
37 print "[008]\n";
48 print "[011]\n";
58 print "[014]\n";
68 print "[017]\n";
[all …]
/PHP-5.4/ext/oci8/tests/
H A Dini_1.phpt18 echo "Test 1 - check initialization\n";
19 echo 'oci8.privileged_connect = ' . ini_get('oci8.privileged_connect') . "\n";
20 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
22 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
23 echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n";
24 echo 'oci8.events = ' . ini_get('oci8.events') . "\n";
26 echo 'oci8.default_prefetch = ' . ini_get('oci8.default_prefetch') . "\n";
29 echo "Test 2 - check what can be changed at runtime\n";
33 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
37 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
[all …]
/PHP-5.4/ext/reflection/tests/
H A D009.phpt16 echo "--getName--\n";
18 echo "--isInternal--\n";
20 echo "--isUserDefined--\n";
22 echo "--getFilename--\n";
24 echo "--getStartline--\n";
26 echo "--getEndline--\n";
28 echo "--getDocComment--\n";
32 echo "--invoke--\n";
34 echo "--invokeArgs--\n";
38 echo "--getParameters--\n";
[all …]
H A D025.phpt18 echo "--getName--\n";
20 echo "--isInternal--\n";
22 echo "--isUserDefined--\n";
24 echo "--getFilename--\n";
26 echo "--getStartline--\n";
28 echo "--getEndline--\n";
30 echo "--getDocComment--\n";
34 echo "--invoke--\n";
36 echo "--invokeArgs--\n";
40 echo "--getParameters--\n";
[all …]
/PHP-5.4/ext/intl/tests/
H A Ddateformat_is_set_lenient.phpt26 $res_str .= "TRUE\n";
28 $res_str .= "FALSE\n";
32 $res_str .= "--------------------\n";
36 $res_str .= "TRUE\n";
38 $res_str .= "FALSE\n";
44 $res_str .= "TRUE\n";
46 $res_str .= "FALSE\n";
55 $res_str .= "TRUE\n";
57 $res_str .= "FALSE\n";
63 $res_str .= "TRUE\n";
[all …]
/PHP-5.4/ext/dba/tests/
H A Ddba015.phpt14 echo "database handler: $handler\n";
16 echo "Test 1\n";
19 echo dba_fetch("key1", $db_file1), "\n";
22 echo "Test 2\n";
25 echo "resources are the same\n";
27 echo "resources are different\n";
33 echo dba_fetch("key1", $db_file2), "\n";
34 echo dba_fetch("key2", $db_file2), "\n";
38 echo dba_fetch("key1", $db_file1), "\n";
39 echo dba_fetch("key2", $db_file1), "\n";
[all …]
H A Ddba_db4_018.phpt14 echo "database handler: $handler\n";
16 echo "Test 1\n";
19 echo dba_fetch("key1", $db_file1), "\n";
22 echo "Test 2\n";
25 echo "resources are the same\n";
27 echo "resources are different\n";
33 echo dba_fetch("key1", $db_file2), "\n";
34 echo dba_fetch("key2", $db_file2), "\n";
38 echo dba_fetch("key1", $db_file1), "\n";
39 echo dba_fetch("key2", $db_file1), "\n";
[all …]
/PHP-5.4/ext/mbstring/tests/
H A Dmb_convert_encoding_stateful.phpt10 echo "ISO-2022-JP empty segment\n";
11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n";
12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n";
13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n";
14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n";
15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n";
16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n";
17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n";
19 echo "ISO-2022-KR empty segment\n";
21 echo "HZ empty segment\n";
[all …]
/PHP-5.4/ext/spl/tests/
H A Diterator_028.phpt10 echo "===?===\n";
12 foreach($it as $v) echo $it->getDepth() . ": $v\n";
14 echo "===2===\n";
17 foreach($it as $v) echo $it->getDepth() . ": $v\n";
19 echo "===X===\n";
22 foreach($it as $v) echo $it->getDepth() . ": $v\n";
24 echo "===3===\n";
27 foreach($it as $v) echo $it->getDepth() . ": $v\n";
29 echo "===5===\n";
34 echo "===0===\n";
[all …]
/PHP-5.4/tests/lang/
H A Dstatic_basic_001.phpt6 echo "\nSame variable used as static and non static.\n";
8 echo "---------\n";
10 echo "$a\n";
12 echo "$a\n";
24 echo "Unitialised : $a\n";
25 echo "Initialised to 10: $b\n";
26 echo "Initialised to 20: $c\n";
27 echo "Unitialised : $d\n";
28 echo "Initialised to 30: $e\n";
40 echo "\nUsing static keyword at global scope\n";
[all …]
/PHP-5.4/ext/ereg/regex/
H A Dsplit.c156 register int n; local
161 for (n = atoi(argv[3]); n > 0; n--) {
165 for (n = atoi(argv[3]); n > 0; n--) {
280 register int n; in regress() local
287 for (n = 0; tests[n].str != NULL; n++) { in regress()
288 (void) strcpy(buf, tests[n].str); in regress()
292 if (nf != tests[n].nf) { in regress()
294 tests[n].str, tests[n].seps, nf, tests[n].nf); in regress()
304 if (strcmp(f, tests[n].fi[i]) != 0) { in regress()
306 tests[n].str, tests[n].seps, in regress()
[all …]
/PHP-5.4/ext/json/tests/
H A Dbug41067.phpt9 print bin2hex($single_barline) . "\n";
10 // print $single_barline . "\n\n";
12 print $json . "\n\n";
14 // print $json_decoded[0] . "\n";
15 print bin2hex($json_decoded[0]) . "\n";
16 print "END\n";

Completed in 40 milliseconds

12345678910>>...335