/PHP-7.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_base64.c | 88 int n; in mbfl_filt_conv_base64enc() local 91 if (n == 0) { in mbfl_filt_conv_base64enc() 101 if (n > 72) { in mbfl_filt_conv_base64enc() 153 int n; in mbfl_filt_conv_base64dec() local 159 n = 0; in mbfl_filt_conv_base64dec() 161 n = c - 65; in mbfl_filt_conv_base64dec() 163 n = c - 71; in mbfl_filt_conv_base64dec() 165 n = c + 4; in mbfl_filt_conv_base64dec() 167 n = 62; in mbfl_filt_conv_base64dec() 169 n = 63; in mbfl_filt_conv_base64dec() [all …]
|
/PHP-7.4/ext/date/tests/ |
H A D | bug33414-2.phpt | 5 print "TZ=Pacific/Rarotonga - wrong day.\n"; 11 print "wanted=Tuesday 00:00:00\n\n"; 19 print "wanted=Tuesday 00:00:00\n\n"; 27 print "wanted=Monday 00:00:00\n\n"; 35 print "wanted=Monday 00:00:00\n\n"; 43 print "wanted=Monday 00:00:00\n\n"; 45 print "TZ=America/Managua - wrong day.\n"; 51 print "wanted=Tuesday 00:00:00\n\n"; 59 print "wanted=Wednesday 00:00:00\n\n"; 67 print "wanted=Saturday 00:00:00\n\n"; [all …]
|
H A D | DateInterval_format.phpt | 20 echo $interval->format('Y=%Y') . "\n"; 21 echo $interval->format('M=%M') . "\n"; 22 echo $interval->format('D=%D') . "\n"; 23 echo $interval->format('H=%H') . "\n"; 24 echo $interval->format('I=%I') . "\n"; 25 echo $interval->format('S=%S') . "\n"; 26 echo $interval->format('R=%R') . "\n"; 28 echo $interval->format('y=%y') . "\n"; 29 echo $interval->format('m=%m') . "\n"; 36 echo "\n"; [all …]
|
H A D | bug75851.phpt | 9 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MIN); 10 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532799); 11 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532800); 12 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MAX);
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | isset_basic1.phpt | 11 echo "*** Testing isset() : basic functionality ***\n"; 18 $n = NULL; 22 echo "Integer test: " . (isset($i) ? "YES": "NO") . "\n"; 23 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; 24 echo "String test: " . (isset($s) ? "YES": "NO") . "\n"; 25 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n"; 27 echo "Null test: " . (isset($n) ? "YES": "NO") . "\n"; 31 echo "\n\nUnset the variables\n\n"; 32 unset($i, $f, $s, $a, $b, $n, $obj, $res); 35 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; [all …]
|
H A D | debug_zval_dump_v.phpt | 41 echo "\n-- Value of \$first_var: --\n"; 47 echo "\n-- Value of \$ref_first_var --\n"; 49 echo "\n-- Value of \$first_var --\n"; 56 echo "\n-- Value of \$ref_first_var --\n"; 58 echo "\n-- Value of \$first_var --\n"; 65 echo "\n-- Value of \$var_1: (before referencing) --\n"; 67 echo "\n-- Value of \$var_2: (referencing var_1) --\n"; 69 echo "\n-- Value of \$var_3: (referencing var_2) --\n"; 76 echo "\n-- Value of \$var_2: --\n"; 78 echo "\n-- Value of \$var_3: --\n"; [all …]
|
H A D | 001.phpt | 10 echo("passed\n"); 12 echo("failed!\n"); 18 echo("passed\n"); 20 echo("failed!\n"); 26 echo("passed\n"); 28 echo("failed!\n"); 34 echo("passed\n"); 36 echo("failed!\n"); 42 echo("passed\n"); 44 echo("failed!\n"); [all …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | recursive_tree_iterator_setpostfix.phpt | 30 echo "----\n"; 32 echo "\n\n"; 34 echo "----\n"; 37 echo "\n\n"; 39 echo "----\n"; 41 echo "[$k] => $v\n"; 44 echo "----\n"; 47 echo "\n\n"; 49 echo "----\n"; 51 echo "[$k] => $v\n";
|
H A D | heap_001.phpt | 11 echo "Exception: ".$e->getMessage()."\n"; 21 echo $h->count()."\n"; 22 echo $h->extract()."\n"; 23 echo $h->extract()."\n"; 24 echo $h->extract()."\n"; 25 echo $h->extract()."\n"; 26 echo $h->extract()."\n"; 27 echo $h->count()."\n"; 29 echo "--\n"; 36 echo $h->extract()."\n"; [all …]
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_http_output.phpt | 13 ($r === TRUE) ? print "OK_ASCII_SET\n" : print "NG_ASCII_SET\n"; 15 print "$enc\n"; 19 ($r === TRUE) ? print "OK_SJIS_SET\n" : print "NG_SJIS_SET\n"; 21 print "$enc\n"; 25 ($r === TRUE) ? print "OK_JIS_SET\n" : print "NG_JIS_SET\n"; 27 print "$enc\n"; 33 print "$enc\n"; 39 print "$enc\n"; 46 ($r === FALSE) ? print "OK_BAD_SET\n" : print "NG_BAD_SET\n"; 48 print "$enc\n"; [all …]
|
H A D | mb_internal_encoding.phpt | 13 ($r === TRUE) ? print "OK_EUC-JP_SET\n" : print "NG_EUC-JP_SET\n"; 15 print "$enc\n"; 19 ($r === TRUE) ? print "OK_UTF-8_SET\n" : print "NG_UTF-8_SET\n"; 21 print "$enc\n"; 25 ($r === TRUE) ? print "OK_ASCII_SET\n" : print "NG_ASCII_SET\n"; 27 print "$enc\n"; 34 ($r === false) ? print "OK_BAD_SET\n" : print "NG_BAD_SET\n"; 36 print "$enc\n"; 39 ($r === NULL) ? print "OK_BAD_ARY_SET\n" : print "NG_BAD_ARY_SET\n"; 41 print "$enc\n"; [all …]
|
H A D | mb_strlen.phpt | 22 echo "== ASCII ==\n"; 24 print strlen($ascii) . "\n"; 27 echo "== EUC-JP ==\n"; 33 echo "== SJIS ==\n"; 37 print strlen($sjis) . "\n"; 41 echo "== JIS ==\n"; 45 print strlen($jis) . "\n"; 49 echo "== UTF-8 ==\n"; 61 echo $r."\n"; 65 echo $r."\n"; [all …]
|
H A D | mb_detect_order.phpt | 16 ($r === TRUE) ? print "OK_AUTO\n" : print "NG_AUTO\n"; 17 print implode(', ', mb_detect_order()) . "\n"; 22 ($r === TRUE) ? print "OK_STR\n" : print "NG_STR\n"; 23 print implode(', ', mb_detect_order()) . "\n"; 32 ($r === TRUE) ? print "OK_ARRAY\n" : print "NG_ARRAY\n"; 33 print implode(', ', mb_detect_order()) . "\n"; 36 print "== INVALID PARAMETER ==\n"; 39 ($r === FALSE) ? print "OK_BAD_STR\n" : print "NG_BAD_STR\n"; 40 print implode(', ', mb_detect_order()) . "\n"; 44 ($r === FALSE) ? print "OK_BAD_ARRAY\n" : print "NG_BAD_ARRAY\n"; [all …]
|
/PHP-7.4/ext/libxml/tests/ |
H A D | bug51903.phpt | 13 "data://text/plain,HTTP/1.1 200 OK\r\n" 14 . "Content-Type: text/xml; charset=ISO-8859-1\r\n\r\n" 15 . "<?xml version=\"1.0\"?>\n" 16 . "<root>\xE4\xF6\xFC</root>\n", 18 . "Content-Type: text/xml; charset=ISO-8859-1; foo=bar\r\n\r\n" 19 . "<?xml version=\"1.0\"?>\n" 20 . "<root>\xE4\xF6\xFC</root>\n", 22 . "Content-Type: text/xml; charset=\"ISO-8859-1\" ; foo=bar\r\n\r\n" 23 . "<?xml version=\"1.0\"?>\n" 24 . "<root>\xE4\xF6\xFC</root>\n", [all …]
|
/PHP-7.4/ext/zip/tests/ |
H A D | oo_properties.phpt | 20 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 21 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)… 22 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($… 27 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 28 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)… 29 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->filename), empty($zip->f… 30 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->comment), empty($zip->com…
|
/PHP-7.4/ext/gmp/tests/ |
H A D | gmp_gcd.phpt | 16 $n = gmp_init("8127346234"); 18 $n = gmp_init("8127346234"); 19 var_dump(gmp_strval(gmp_gcd("7623456735",$n))); 20 $n = gmp_init("8127346234"); 21 var_dump(gmp_strval(gmp_gcd($n,$n))); 22 $n = gmp_init("8127346234"); 23 var_dump(gmp_strval(gmp_gcd($n,0))); 24 var_dump(gmp_gcd($n,$n,1)); 25 var_dump(gmp_gcd($n,array(),1)); 26 var_dump(gmp_gcd(array(),$n,1)); [all …]
|
/PHP-7.4/tests/classes/ |
H A D | tostring_004.phpt | 14 echo "Try 1:\n"; 18 echo $e->getMessage(), "\n"; 20 printf("\n"); 22 echo "\nTry 2:\n"; 24 printf($obj . "\n"); 26 echo $e->getMessage(), "\n"; 29 echo "\n\nObject with bad __toString():\n"; 37 echo "Try 1:\n"; 43 printf("\n"); 45 echo "\nTry 2:\n"; [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug79934.phpt | 9 eval("\$s1 = <<<HEREDOC\r\n a\r\n\r\n b\r\n HEREDOC;"); 10 var_dump(addcslashes($s1, "\r\n")); 13 eval("\$s2 = <<<HEREDOC\n a\n\n b\n HEREDOC;"); 14 var_dump(addcslashes($s2, "\n")); 21 eval("\$s4 = <<<HEREDOC\r a\r\n \r\n b\r HEREDOC;"); 22 var_dump(addcslashes($s4, "\n\r")); 26 string(10) "a\r\n\r\nb" 27 string(6) "a\n\nb" 29 string(10) "a\r\n\r\nb"
|
/PHP-7.4/Zend/ |
H A D | bench.php | 106 $r = Ack(3,$n); 112 function ary($n) { argument 119 $last = $n-1; 125 function ary2($n) { argument 152 $last = $n-1; 158 function ary3($n) { argument 168 $last = $n-1; 175 return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1)); 179 $r = fibo_r($n); 220 $ir = $n; [all …]
|
H A D | zend_bitset.h | 27 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) argument 28 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) argument 30 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) argument 31 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) argument 33 # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) argument 34 # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) argument 62 int n; 66 n = 1; 74 return n - (num & 1); 92 set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | html_entity_decode2.phpt | 6 echo "*** HTML 4.01 implicit (shouldn't decode) ***\n"; 7 echo html_entity_decode("'", ENT_QUOTES, "UTF-8"), "\n"; 9 echo "*** HTML 4.01 (shouldn't decode) ***\n"; 10 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML401, "UTF-8"), "\n"; 12 echo "*** HTML 5 ***\n"; 13 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML5, "UTF-8"), "\n"; 15 echo "*** XHTML 1.0 ***\n"; 16 echo html_entity_decode("'", ENT_QUOTES | ENT_XHTML, "UTF-8"), "\n"; 18 echo "*** XML 1.0 ***\n"; 19 echo html_entity_decode("'", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n"; [all …]
|
H A D | money_format_basic1.phpt | 29 echo gettype(money_format('%14#8.2n', $value))."\n"; 30 echo gettype(money_format('%14#8.2n', $negative_value))."\n"; 34 echo gettype(money_format('%(14#8.2n', $value))."\n"; 35 echo gettype(money_format('%(14#8.2n', $negative_value))."\n"; 39 echo gettype(money_format('%=014#8.2n', $value))."\n"; 40 echo gettype(money_format('%=014#8.2n', $negative_value))."\n"; 44 echo gettype(money_format('%=*14#8.2n', $value))."\n"; 45 echo gettype(money_format('%=*14#8.2n', $negative_value))."\n"; 49 echo gettype(money_format('%=*^14#8.2n', $value))."\n"; 50 echo gettype(money_format('%=*^14#8.2n', $negative_value))."\n"; [all …]
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_rand_variation6.phpt | 21 \n 31 hello\tworld\nhello\nworld\n 54 echo "\n-- with default parameters --\n"; 57 echo "\n-- with num_req = 1 --\n"; 60 echo "\n-- with num_req = 3 --\n"; 63 echo "\n-- with num_req = 6 --\n"; 73 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 76 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 81 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 83 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" [all …]
|
/PHP-7.4/tests/lang/ |
H A D | execution_order.phpt | 18 echo "\r\n"; 25 echo "\r\n"; 32 echo "\r\n"; 39 echo "\r\n"; 44 echo "\r\n"; 51 echo "\r\n"; 64 echo "\r\n"; 69 echo "\r\n"; 77 echo "\r\n"; 83 echo "\r\n"; [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | 001-win32-mb.phpt | 19 echo "$fname exists\n"; 21 echo "$fname does not exist\n"; 26 echo "$fname exists\n"; 28 echo "$fname does not exist\n"; 31 echo "$fname is a symlink\n"; 33 echo "$fname is not a symlink\n"; 36 echo "$fname exists\n"; 38 echo "$fname does not exist\n"; 51 echo "$fname is writeable\n"; 56 echo "$fname is readable\n"; [all …]
|