Home
last modified time | relevance | path

Searched refs:n (Results 301 – 325 of 9977) sorted by relevance

1...<<11121314151617181920>>...400

/php-src/ext/date/tests/
H A Dgmmktime_variation7.phpt5 echo "*** Testing gmmktime() : usage variation ***\n";
14 echo "\n-- Testing gmmktime() function with one optional argument --\n";
17 echo "\n-- Testing gmmktime() function with two optional argument --\n";
20 echo "\n-- Testing gmmktime() function with three optional argument --\n";
23 echo "\n-- Testing gmmktime() function with four optional argument --\n";
26 echo "\n-- Testing gmmktime() function with five optional argument --\n";
H A Dgmdate_variation6.phpt5 echo "*** Testing gmdate() : usage variation ***\n";
11 echo "\n-- Testing gmdate() function with full textual representation of month format --\n";
15 echo "\n-- Testing gmdate() function with numeric representation of month format --\n";
19 echo "\n-- Testing gmdate() function with short textual representation of month format --\n";
23 echo "\n-- Testing gmdate() function with numeric representation of month without leading zeros for…
24 var_dump( gmdate('n') );
25 var_dump( gmdate('n', $timestamp) );
27 echo "\n-- Testing gmdate() function with number of days in a month format --\n";
H A Ddate_time_fractions.phpt9 echo ($ms = 0) ? "microseconds = false\n" : "microseconds = true\n";
12 echo date_create( "2016-10-03 12:47:18.819313" )->format( "Y-m-d H:i:s.u" ), "\n\n";
16 echo $dt->modify( "+1 day" )->format( "Y-m-d H:i:s.u" ), "\n";
19 echo $dt->modify( "-3 months" )->format( "Y-m-d H:i:s.u" ), "\n";
21 echo "\n";
28 echo $dt->modify( "noon" )->format( "Y-m-d H:i:s.u" ), "\n";
45 echo $dt0->format( "Y-m-d H:i:s.u" ), "\n";
46 echo $dt1->format( "Y-m-d H:i:s.u" ), "\n";
47 echo $dt2->format( "Y-m-d H:i:s.u" ), "\n";
48 echo $dt3->format( "Y-m-d H:i:s.u" ), "\n";
[all …]
/php-src/ext/standard/tests/strings/
H A Dstr_rot13_basic.phpt5 echo "*** Testing str_rot13() : basic functionality ***\n";
7 echo "\nBasic tests\n";
11 echo "\nEnsure numeric characters are left untouched\n";
13 echo "Strings equal : TEST PASSED\n";
15 echo "Strings unequal : TEST FAILED\n";
18 echo "\nEnsure non-alphabetic characters are left untouched\n";
20 echo "Strings equal : TEST PASSED\n";
22 echo "Strings unequal : TEST FAILED\n";
25 echo "\nEnsure strings round trip\n";
30 echo "Strings equal : TEST PASSED\n";
[all …]
H A Dbug20261.phpt9 echo "1: ".$first."\n";
10 echo "2: ".$second."\n";
11 echo "3: ".$rot."\n";
15 echo "1: ".$first."\n";
16 echo "2: ".$second."\n";
17 echo "3: ".$rot."\n";
H A Dsubstr.phpt13 echo ("\n--- Iteration ".$counter." ---\n");
14 echo ("\n-- Variations for two arguments --\n");
22 echo ("\n-- Variations for three arguments --\n");
37 echo ("\n*** Testing for variations of start and length to point to same element ***\n");
42 echo ("\n*** Testing for start > truncation ***\n");
46 echo ("\n*** Testing for string with null characters ***\n");
50 echo ("\n*** Testing for string with international characters ***\n");
51 var_dump (substr('\xIñtërnâtiônàlizætiøn',3) );
54 echo "\n*** Start before the first char ***\n";
58 echo "\n*** Omitting length or using NULL length ***\n";
[all …]
/php-src/ext/dom/tests/modern/spec/
H A Dattribute_entity_expansion.phpt11 print $doc->saveHtml($elt) . "\n";
15 print "$attr->value\n";
16 print $doc->saveHtml($elt) . "\n";
19 print $doc->saveHtml($elt) . "\n";
22 print "$attr->nodeValue\n";
23 print $doc->saveHtml($elt) . "\n";
26 print "$attr->nodeValue\n";
27 print $doc->saveHtml($elt) . "\n";
31 print $doc->saveHtml($elt) . "\n";
35 print "$attr->value\n";
[all …]
H A Dattribute_entity_expansion_legacy.phpt11 print $doc->saveXml($elt) . "\n";
15 print "$attr->value\n";
16 print $doc->saveXml($elt) . "\n";
19 print $doc->saveXml($elt) . "\n";
22 print "$attr->nodeValue\n";
23 print $doc->saveXml($elt) . "\n";
26 print "$attr->nodeValue\n";
27 print $doc->saveXml($elt) . "\n";
31 print $doc->saveXml($elt) . "\n";
35 print "$attr->value\n";
[all …]
/php-src/ext/opcache/tests/opt/
H A Dinference_023.phpt11 $n = -1;
13 if ($n >= 0) {
14 $a[$n]->x = 2;
16 $n++;
17 $a[$n] = new stdClass();
18 $a[$n]->x = 1;
/php-src/Zend/tests/match/
H A D004.phpt17 echo get_range(22) . "\n";
18 echo get_range(0) . "\n";
19 echo get_range(59) . "\n";
20 echo get_range(13) . "\n";
21 echo get_range(39) . "\n";
22 echo get_range(40) . "\n";
H A D039.phpt16 echo "\n";
25 echo "\n";
34 echo "\n";
40 echo "\n";
46 echo "\n";
52 echo "\n";
/php-src/ext/iconv/tests/
H A Diconv_basic.phpt11 echo "*** Testing iconv() : basic functionality ***\n";
18 echo "\n-- Convert to EUC-JP --\n";
19 echo "Expected EUC-JP encoded string in base64:\n";
21 echo "Converted Strings:\n";
25 echo "\n-- Convert to SJIS --\n";
26 echo "Expected SJIS encoded string in base64:\n";
28 echo "Converted Strings:\n";
32 echo "\n-- Convert to UTF-8 --\n";
33 echo "Expected UTF-8 encoded string in base64:\n";
35 echo "Converted Strings:\n";
/php-src/ext/standard/tests/mail/
H A Dgh13415.phpt2 GH-13415 (Added validation of line breaks \n in $additional_headers of mail())
7 echo "LF only:\n";
11 echo $e->getMessage()."\n\n";
14 echo "CR only:\n";
18 echo $e->getMessage()."\n\n";
21 echo "CRLF:\n";
25 echo $e->getMessage()."\n\n";
28 echo "NULL:\n";
32 echo $e->getMessage()."\n\n";
/php-src/ext/mbstring/tests/
H A Dmb_ereg_basic.phpt18 echo "Regex encoding set to utf-8\n";
20 echo "Could not set regex encoding to utf-8\n";
30 echo "\n**-- ASCII String --**\n";
31 echo "-- Without \$regs argument--\n";
34 echo "--With \$regs argument --\n";
40 echo "\n**-- Multibyte String --**\n";
41 echo "-- Without \$regs argument --\n";
44 echo "-- With \$regs argument --\n";
61 echo " [$key]=>\n ";
68 echo "}\n";
[all …]
H A Dbug79787.phpt7 echo mb_strimwidth("一二三", 0, 4, '.', 'UTF-8')."\n";
8 echo mb_strimwidth("一二三", 0, 5, '.', 'UTF-8')."\n";
9 echo mb_strimwidth("一二三", 0, 6, '.', 'UTF-8')."\n";
10 echo mb_strimwidth("abcdef", 0, 4, '.', 'UTF-8')."\n";
11 echo mb_strimwidth("abcdef", 0, 5, '.', 'UTF-8')."\n";
12 echo mb_strimwidth("abcdef", 0, 6, '.', 'UTF-8')."\n";
/php-src/ext/standard/tests/array/
H A Dshuffle_variation5.phpt17 \n
27 hello\tworld\nhello\nworld\n
61 echo "\n-- with array of heredoc strings --\n";
63 echo "\nThe output array is:\n";
67 echo "\n-- with array having heredoc strings as keys --\n";
69 echo "\nThe output array is:\n";
83 string\([0-9]*\) "[0-9 a-z \n \0 \t]*"
85 string\([0-9]*\) "[0-9 a-z \n \0 \t]*"
87 string\([0-9]*\) "[0-9 a-z \n \0 \t]*"
89 string\([0-9]*\) "[0-9 a-z \n \0 \t]*"
[all …]
H A D008.phpt10 echo '$a='.var_export($a,TRUE).";\n";
11 echo '$b='.var_export($b,TRUE).";\n";
12 echo '$c='.var_export($c,TRUE).";\n";
14 echo 'array_intersect($a,$b,$c);'."\n";
20 echo 'array_intersect($a,$b);'."\n";
67 echo '$a='.var_export($a,TRUE).";\n";
68 echo '$b='.var_export($b,TRUE).";\n";
69 echo '$c='.var_export($c,TRUE).";\n";
70 echo "\n\nResults:\n\n";
72 echo 'array_intersect($a,$b,$c);'."\n";
[all …]
/php-src/ext/standard/tests/dir/
H A Dopendir_variation4.phpt9 echo "*** Testing opendir() : usage variation ***\n";
24 echo "\n-- \$path = './level_one': --\n";
29 echo "\n-- \$path = 'level_one/level_two': --\n";
34 echo "\n-- \$path = '..': --\n";
38 echo "\n-- \$path = 'level_two', '.': --\n";
43 echo "\n-- \$path = '../': --\n";
47 echo "\n-- \$path = './': --\n";
52 echo "\n-- \$path = '../../'level_one': --\n";
H A Dscandir_variation4.phpt9 echo "*** Testing scandir() : usage variations ***\n";
26 echo "\n-- \$path = './level_one': --\n";
30 echo "\n-- \$path = 'level_one/level_two': --\n";
34 echo "\n-- \$path = '..': --\n";
38 echo "\n-- \$path = 'level_two', '.': --\n";
42 echo "\n-- \$path = '../': --\n";
46 echo "\n-- \$path = './': --\n";
50 echo "\n-- \$path = '../../'level_one': --\n";
/php-src/ext/standard/tests/array/range/
H A Drange_step_errors.phpt7 echo "Step cannot be 0\n";
11 echo $e->getMessage(), "\n";
16 echo $e->getMessage(), "\n";
21 echo $e->getMessage(), "\n";
26 echo $e->getMessage(), "\n";
28 echo "Step cannot be INF\n";
32 echo $e->getMessage(), "\n";
37 echo $e->getMessage(), "\n";
42 echo $e->getMessage(), "\n";
44 echo "Step cannot be NAN\n";
[all …]
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_execute.phpt14 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
20 echo $exception->getMessage() . "\n";
24 printf("[005] Statement should have failed!\n");
30 echo $exception->getMessage() . "\n";
37 printf("[008] Expecting boolean/true, got %s/%s. [%d] %s\n",
68 printf("[016] Expecting boolean/true, got %s/%s. [%d] %s\n",
76 printf("[018] Expecting int/1 got %s/%s\n", gettype($id), $id);
79 printf("[019] Expecting boolean/true, got %s/%s. [%d] %s\n",
101 printf("[025] Expecting boolean/true, got %s/%s. [%d] %s\n",
105 printf("[026] Expecting boolean/true, got %s/%s. [%d] %s\n",
[all …]
/php-src/ext/enchant/tests/
H A Ddict_describe.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");
26 echo("OK\n");
29 echo("broker request dict failed\n");
32 echo("broker request dict failed\n");
35 echo("broker is not a resource; failed;\n");
/php-src/sapi/cli/tests/
H A D021.phpt25 $script = "#!$php -n\n".
26 "ola\n".
27 "<?php echo 1+1,'\n';\n".
28 "?>\n".
29 "adeus\n";
36 echo "\nDone\n";
/php-src/main/
H A Dstrlcat.c68 size_t n = siz; in php_strlcat() local
72 while (n-- != 0 && *dst != '\0') in php_strlcat()
75 n = siz - dlen; in php_strlcat()
77 if (n-- == 0) in php_strlcat()
80 if (n != 0) { in php_strlcat()
82 n--; in php_strlcat()
/php-src/ext/standard/tests/file/
H A Drename_variation5.phpt26 echo "\n-- Renaming link to same link name --\n";
29 echo "\n-- Renaming file to same file name --\n";
32 echo "\n-- Renaming directory to same directory name --\n";
35 echo "\n-- Renaming existing link to existing directory name --\n";
37 echo "\n-- Renaming existing link to existing file name --\n";
40 echo "\n-- Renaming existing file to existing directory name --\n";
42 echo "\n-- Renaming existing file to existing link name --\n";
45 echo "\n-- Renaming existing directory to existing file name --\n";
49 echo "\n-- Renaming existing directory to existing link name --\n";
52 echo "Done\n";

Completed in 37 milliseconds

1...<<11121314151617181920>>...400