/PHP-8.3/ext/dom/tests/ |
H A D | dom_create_element.phpt | 12 print "valid\n"; 21 print "valid\n"; 30 print "valid\n"; 39 print "valid\n"; 48 print "valid\n"; 57 print "valid\n"; 66 print "valid\n"; 75 print "valid\n"; 84 print "valid\n"; 93 print "valid\n"; [all …]
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | mb_strpos.phpt | 17 echo "String len: $slen\n"; 22 echo "== POSITIVE OFFSET ==\n"; 35 echo "== NEGATIVE OFFSET ==\n"; 45 echo "== NON-EXISTENT ==\n"; 48 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 50 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 64 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 66 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 79 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 80 $r = mb_strpos($euc_jp, "\n"); [all …]
|
H A D | mb_strcut.phpt | 26 print "== EUC-JP ==\n"; 32 ($str === "") ? print "OK\n" : print "No good\n"; 35 ($str !== "") ? print "OK\n" : print "No good\n"; 37 print "== UTF-8 ==\n"; 38 print MBStringChars(mb_strcut($utf8, 0, 0, 'UTF-8'), 'UTF-8') . "\n"; 39 print MBStringChars(mb_strcut($utf8, 0, 1, 'UTF-8'), 'UTF-8') . "\n"; 40 print MBStringChars(mb_strcut($utf8, 0, 2, 'UTF-8'), 'UTF-8') . "\n"; 41 print MBStringChars(mb_strcut($utf8, 0, 3, 'UTF-8'), 'UTF-8') . "\n"; 42 print MBStringChars(mb_strcut($utf8, 0, 4, 'UTF-8'), 'UTF-8') . "\n"; 43 print MBStringChars(mb_strcut($utf8, 0, 5, 'UTF-8'), 'UTF-8') . "\n"; [all …]
|
/PHP-8.3/ext/pcre/tests/ |
H A D | pcre.constants.phpt | 6 echo "PCRE constants test\n"; 8 echo "PREG_PATTERN_ORDER= ", PREG_PATTERN_ORDER, "\n"; 9 echo "PREG_OFFSET_CAPTURE= ", PREG_OFFSET_CAPTURE, "\n"; 10 echo "PREG_SPLIT_NO_EMPTY= ", PREG_SPLIT_NO_EMPTY, "\n"; 11 echo "PREG_SPLIT_DELIM_CAPTURE= ", PREG_SPLIT_DELIM_CAPTURE, "\n"; 12 echo "PREG_SPLIT_OFFSET_CAPTURE= ", PREG_SPLIT_OFFSET_CAPTURE, "\n"; 13 echo "PREG_GREP_INVERT= ", PREG_GREP_INVERT, "\n"; 14 echo "PREG_NO_ERROR= ", PREG_NO_ERROR, "\n"; 15 echo "PREG_INTERNAL_ERROR= ", PREG_INTERNAL_ERROR, "\n"; 16 echo "PREG_BACKTRACK_LIMIT_ERROR= ", PREG_BACKTRACK_LIMIT_ERROR, "\n"; [all …]
|
/PHP-8.3/ext/date/tests/ |
H A D | DateInterval_format.phpt | 18 echo $interval->format('Y=%Y') . "\n"; 19 echo $interval->format('M=%M') . "\n"; 20 echo $interval->format('D=%D') . "\n"; 21 echo $interval->format('H=%H') . "\n"; 22 echo $interval->format('I=%I') . "\n"; 23 echo $interval->format('S=%S') . "\n"; 24 echo $interval->format('R=%R') . "\n"; 26 echo $interval->format('y=%y') . "\n"; 27 echo $interval->format('m=%m') . "\n"; 34 echo "\n"; [all …]
|
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 …]
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | array_rand_variation6.phpt | 16 \n 26 hello\tworld\nhello\nworld\n 49 echo "\n-- with default parameters --\n"; 52 echo "\n-- with num_req = 1 --\n"; 55 echo "\n-- with num_req = 3 --\n"; 58 echo "\n-- with num_req = 6 --\n"; 68 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 71 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 76 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 78 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" [all …]
|
H A D | array_map_object1.phpt | 21 return $n * $n; 34 echo "\n-- simple class with private variable and method --\n"; 39 return $var + $n; 44 echo "\n-- simple class with protected variable and method --\n"; 54 echo "\n-- class without members --\n"; 60 echo "\n-- abstract class --\n"; 77 echo "\n-- class with final method --\n"; 87 echo "\n-- class with static members --\n"; 92 return ($n * $n); 95 return ($n * $n * $n); [all …]
|
/PHP-8.3/Zend/tests/ |
H A D | bug31098.phpt | 19 echo isset($simpleString->wrong)?"bug\n":"ok\n"; 21 echo isset($simpleString["wrong"])?"bug\n":"ok\n"; 25 echo isset($simpleString[-20])?"bug\n":"ok\n"; 26 echo isset($simpleString[0])?"ok\n":"bug\n"; 27 echo isset($simpleString["0"])?"ok\n":"bug\n"; 28 echo isset($simpleString["16"])?"ok\n":"bug\n"; 29 echo isset($simpleString["17"])?"bug\n":"ok\n"; 30 echo $simpleString->wrong === null?"ok\n":"bug\n"; 32 echo $simpleString["wrong"] === "B"?"ok\n":"bug\n"; 36 echo $simpleString["0"] === "B"?"ok\n":"bug\n"; [all …]
|
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-8.3/Zend/ |
H A D | zend_bitset.h | 34 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) argument 35 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) argument 37 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) argument 38 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) argument 40 # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) argument 41 # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) argument 69 int n; 73 n = 1; 108 int n; 111 n = 64; [all …]
|
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 …]
|
/PHP-8.3/ext/standard/tests/general_functions/ |
H A D | debug_zval_dump_v.phpt | 36 echo "\n-- Value of \$first_var: --\n"; 42 echo "\n-- Value of \$ref_first_var --\n"; 44 echo "\n-- Value of \$first_var --\n"; 51 echo "\n-- Value of \$ref_first_var --\n"; 53 echo "\n-- Value of \$first_var --\n"; 60 echo "\n-- Value of \$var_1: (before referencing) --\n"; 62 echo "\n-- Value of \$var_2: (referencing var_1) --\n"; 64 echo "\n-- Value of \$var_3: (referencing var_2) --\n"; 71 echo "\n-- Value of \$var_2: --\n"; 73 echo "\n-- Value of \$var_3: --\n"; [all …]
|
H A D | get_debug_type_basic.phpt | 24 echo get_debug_type(new ClassInGlobal()) . "\n"; 26 echo get_debug_type(new class {}) . "\n"; 31 echo get_debug_type("foo") . "\n"; 32 echo get_debug_type(false) . "\n"; 33 echo get_debug_type(true) . "\n"; 34 echo get_debug_type(1) . "\n"; 35 echo get_debug_type(1.1) . "\n"; 36 echo get_debug_type([]) . "\n"; 37 echo get_debug_type(null) . "\n"; 38 echo get_debug_type($fp) . "\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-8.3/ext/libxml/tests/ |
H A D | bug51903.phpt | 14 "data://text/plain,HTTP/1.1 200 OK\r\n" 15 . "Content-Type: text/xml; charset=ISO-8859-1\r\n\r\n" 16 . "<?xml version=\"1.0\"?>\n" 17 . "<root>\xE4\xF6\xFC</root>\n", 19 . "Content-Type: text/xml; charset=ISO-8859-1; foo=bar\r\n\r\n" 20 . "<?xml version=\"1.0\"?>\n" 21 . "<root>\xE4\xF6\xFC</root>\n", 23 . "Content-Type: text/xml; charset=\"ISO-8859-1\" ; foo=bar\r\n\r\n" 24 . "<?xml version=\"1.0\"?>\n" 25 . "<root>\xE4\xF6\xFC</root>\n", [all …]
|
/PHP-8.3/ext/hash/tests/ |
H A D | hash_file_basic1.phpt | 6 echo "*** Testing hash_file() : basic functionality ***\n"; 28 echo "crc32: " . hash_file('crc32', $file) . "\n"; 29 echo "gost: " . hash_file('gost', $file). "\n"; 31 echo "md2: " . hash_file('md2', $file). "\n"; 32 echo "md4: " . hash_file('md4', $file). "\n"; 33 echo "md5: " . hash_file('md5', $file). "\n"; 38 echo "sha1: " . hash_file('sha1', $file). "\n"; 39 echo "sha256: " . hash_file('sha256', $file). "\n"; 40 echo "sha384: " . hash_file('sha384', $file). "\n"; 41 echo "sha512: " . hash_file('sha512', $file). "\n"; [all …]
|
H A D | hash_hmac_basic.phpt | 6 echo "*** Testing hash_hmac() : basic functionality ***\n"; 11 echo "gost: " . hash_hmac('gost', $content, $key) . "\n"; 12 echo "haval128,3: " . hash_hmac('haval128,3', $content, $key) . "\n"; 13 echo "md2: " . hash_hmac('md2', $content, $key) . "\n"; 14 echo "md4: " . hash_hmac('md4', $content, $key) . "\n"; 15 echo "md5: " . hash_hmac('md5', $content, $key) . "\n"; 20 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 21 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n"; 22 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n"; 23 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n"; [all …]
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | locale_independent_float_to_string.phpt | 19 echo "- casting:\n"; 20 echo $f . "\n"; 21 echo strval($f) . "\n"; 24 echo $g . "\n"; 27 printf("%.2f\n", $f); 28 printf("%.2F\n", $f); 32 echo "- export/import:\n"; 37 echo "- debugging:\n"; 42 echo "- other:\n"; 47 echo "C locale:\n"; [all …]
|
/PHP-8.3/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 | GlobIterator_internal_null_pointer.phpt | 8 echo "Test getATime()\n"; 10 echo "Test getBasename()\n"; 12 echo "Test getCTime()\n"; 18 echo "Test getGroup()\n"; 20 echo "Test getInode()\n"; 22 echo "Test getMTime()\n"; 24 echo "Test getOwner()\n"; 26 echo "Test getPath()\n"; 40 echo "Test isDir()\n"; 44 echo "Test isFile()\n"; [all …]
|
/PHP-8.3/ext/pdo_odbc/tests/ |
H A D | autocommit_change_mode.phpt | 21 echo "Success\n\n"; 26 echo "Success\n\n"; 31 echo "Success\n\n"; 36 echo "Success\n\n"; 42 echo "\n"; 49 echo $e->getMessage()."\n\n"; 57 echo $e->getMessage()."\n\n"; 68 echo "\n"; 75 echo $e->getMessage()."\n\n"; 83 echo $e->getMessage()."\n\n"; [all …]
|
/PHP-8.3/ext/zip/tests/ |
H A D | oo_properties.phpt | 18 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 19 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)… 20 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($… 25 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 26 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)… 27 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->filename), empty($zip->f… 28 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->comment), empty($zip->com…
|
/PHP-8.3/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-8.3/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 …]
|