/PHP-8.3/ext/spl/tests/ |
H A D | bug45622b.phpt | 6 function __get($n) { echo "In " . __METHOD__ . "!\n"; } 7 function __set($n, $v) { echo "In " . __METHOD__ . "!\n"; } 8 function __isset($n) { echo "In " . __METHOD__ . "!\n"; } 9 function __unset($n) { echo "In " . __METHOD__ . "!\n"; } 13 echo "Doesn't trigger __get.\n"; 16 echo "Doesn't trigger __set.\n"; 19 echo "Doesn't trigger __unset.\n"; 22 echo "Shouldn't trigger __isset.\n";
|
/PHP-8.3/ext/hash/tests/ |
H A D | hash_hmac_file_basic.phpt | 7 echo "*** Testing hash_hmac_file() : basic functionality ***\n"; 31 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n"; 33 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n"; 34 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n"; 35 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n"; 36 echo "ripemd128: " . hash_hmac_file('ripemd128', $file, $key) . "\n"; 40 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 41 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n"; 42 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n"; 43 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n"; [all …]
|
/PHP-8.3/ext/date/tests/ |
H A D | DateTime_extends_basic1.phpt | 9 echo "*** Testing basic DateTime inheritance() ***\n"; 22 echo "\n-- Create an instance of DateTimeExt --\n"; 25 echo "\n-- Invoke __toString --\n"; 26 echo $d . "\n"; 28 echo "\n -- modify date and time --\n"; 32 echo "\n-- Invoke __toString again --\n"; 33 echo $d . "\n";
|
/PHP-8.3/ext/opcache/jit/dynasm/ |
H A D | dasm_mips.h | 198 n = (ins & 255); CK(n < D->maxsection, RANGE_SEC); in dasm_put() 204 n = (ins & 2047) - 10; pl = D->lglabels + n; in dasm_put() 213 n = *pl; in dasm_put() 229 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = pos; in dasm_put() 245 b[pos++] = n; in dasm_put() 279 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = -idx; } in dasm_link() 353 n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp); in dasm_encode() 359 n = *DASM_POS2PTR(D, n); in dasm_encode() 361 n = (n + (int)(size_t)base) & 0x0fffffff; in dasm_encode() 363 n = n - (int)((char *)cp - base); in dasm_encode() [all …]
|
H A D | dasm_ppc.h | 198 n = (ins & 255); CK(n < D->maxsection, RANGE_SEC); in dasm_put() 204 n = (ins & 2047) - 10; pl = D->lglabels + n; in dasm_put() 213 n = *pl; in dasm_put() 215 b[pos] = -n; in dasm_put() 229 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = pos; in dasm_put() 245 b[pos++] = n; in dasm_put() 249 b[pos++] = n; in dasm_put() 283 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = -idx; } in dasm_link() 357 n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp); in dasm_encode() 363 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base); in dasm_encode() [all …]
|
/PHP-8.3/ext/bcmath/tests/ |
H A D | bccomp.phpt | 9 echo bccomp("-1", "5", 4), "\n"; 10 echo bccomp("1928372132132819737213", "8728932001983192837219398127471"), "\n"; 11 echo bccomp("1.00000000000000000001", "1", 2), "\n"; 12 echo bccomp("97321", "2321"), "\n"; 13 echo bccomp("0", "14"), "\n"; 14 echo bccomp("1", "0"), "\n"; 15 echo bccomp("0.000", "0", 3), "\n";
|
H A D | bccomp_variation002.phpt | 9 echo bccomp("-2", "-2") . "\n"; 10 echo bccomp("-2", "2", "1") . "\n"; 11 echo bccomp("-2.29", "-2.3", "2") . "\n"; 12 echo bccomp("-2.29", "2.3", "2") . "\n"; 13 echo bccomp("2.29", "-2.3", "2") . "\n"; 14 echo bccomp("-2.29", "-2.3", "1") . "\n"; 15 echo bccomp("-2.29", "0", "1") . "\n";
|
/PHP-8.3/ext/dba/tests/ |
H A D | dba015.phpt | 18 echo "database handler: $handler\n"; 20 echo "Test 1\n"; 23 echo dba_fetch("key1", $db_file1), "\n"; 26 echo "Test 2\n"; 29 echo "resources are the same\n"; 31 echo "resources are different\n"; 37 echo dba_fetch("key1", $db_file2), "\n"; 38 echo dba_fetch("key2", $db_file2), "\n"; 42 echo dba_fetch("key1", $db_file1), "\n"; 43 echo dba_fetch("key2", $db_file1), "\n"; [all …]
|
H A D | dba_db4_018.phpt | 18 echo "database handler: $handler\n"; 20 echo "Test 1\n"; 23 echo dba_fetch("key1", $db_file1), "\n"; 26 echo "Test 2\n"; 29 echo "resources are the same\n"; 31 echo "resources are different\n"; 37 echo dba_fetch("key1", $db_file2), "\n"; 38 echo dba_fetch("key2", $db_file2), "\n"; 42 echo dba_fetch("key1", $db_file1), "\n"; 43 echo dba_fetch("key2", $db_file1), "\n"; [all …]
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | printf_error.phpt | 8 echo "\n-- Testing printf() function with Zero arguments --\n"; 12 echo $e->getMessage(), "\n"; 15 echo "\n-- Testing printf() function with less than expected no. of arguments --\n"; 22 echo "\n-- Call printf with one argument less than expected --\n"; 26 echo $e->getMessage(), "\n"; 31 echo $e->getMessage(), "\n"; 36 echo $e->getMessage(), "\n"; 39 echo "\n-- Call printf with two argument less than expected --\n"; 43 echo $e->getMessage(), "\n"; 48 echo $e->getMessage(), "\n"; [all …]
|
H A D | sprintf_variation52.phpt | 5 echo "*** Testing sprintf() : with typical format strings ***\n"; 11 echo"\n-- Testing for '%%%.2f' as the format parameter --\n"; 14 echo"\n-- Testing for '%%' as the format parameter --\n"; 17 echo"\n-- Testing for precision value more than maximum --\n"; 20 echo"\n-- Testing for invalid width(-15) specifier --\n"; 24 echo $e->getMessage(), "\n"; 27 echo"\n-- Testing for '%X' as the format parameter --\n"; 30 echo"\n-- Testing for multiple format parameters --\n"; 31 var_dump(sprintf("%d %s %d\n", $tempnum, $tempstring, $tempnum)); 33 echo"\n-- Testing for excess of mixed type arguments --\n";
|
H A D | printf_basic7.phpt | 11 echo "*** Testing printf() : basic functionality - using unsigned format ***\n"; 23 echo "\n-- Calling printf() with no arguments --\n"; 25 echo "\n"; 28 echo "\n-- Calling printf() with one arguments --\n"; 30 echo "\n"; 33 echo "\n-- Calling printf() with two arguments --\n"; 35 echo "\n"; 38 echo "\n-- Calling printf() with three arguments --\n"; 40 echo "\n";
|
H A D | printf_basic8.phpt | 11 echo "*** Testing printf() : basic functionality - using octal 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 D | explode_variation6.phpt | 6 echo "*** Testing explode() function: misc tests ***\n"; 10 echo "\n-- positive limit with null separator --\n"; 13 echo "\n-- negative limit (since PHP 5.1) with null separator --\n"; 16 echo "\n-- unknown string --\n"; 19 echo "\n-- limit = 0 --\n"; 22 echo "\n-- limit = -1 --\n"; 25 echo "\n-- large limit = -100 --\n";
|
H A D | printf_basic6.phpt | 5 echo "*** Testing printf() : basic functionality - using exponential format ***\n"; 16 echo "\n-- Calling printf() with no arguments --\n"; 18 echo "\n"; 21 echo "\n-- Calling printf() with one argument --\n"; 23 echo "\n"; 26 echo "\n-- Calling printf() with two arguments --\n"; 28 echo "\n"; 31 echo "\n-- Calling printf() with three arguments --\n"; 33 echo "\n";
|
/PHP-8.3/ext/intl/tests/ |
H A D | calendar_before_after_error.phpt | 14 echo "error: $errno, $errstr\n"; 21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 32 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 37 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 43 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 48 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 54 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 59 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/PHP-8.3/ext/standard/tests/http/ |
H A D | bug47021.phpt | 15 echo "Type='$message'\n"; 18 echo "Size=$bytes_max\n"; 41 . "Transfer-Encoding:{$spaces}Chunked{$trailing}\r\n\r\n" 42 . "5\nHello\n0\n", 45 . "Content-Length:{$spaces}5{$trailing}\r\n\r\n" 51 echo "\n"; 53 echo "\n"; 61 echo "\n"; 64 echo "\n"; 67 echo "\n"; [all …]
|
/PHP-8.3/ext/standard/tests/general_functions/ |
H A D | get_defined_vars_basic.phpt | 5 echo "Simple testcase for get_defined_vars() function\n\n"; 8 echo "\n-- Function f1() called --\n"; 12 echo "TEST FAILED\n"; 15 echo "\n-- ..define some local variables --\n"; 26 echo "\n -- Function f2() called --\n"; 30 echo "TEST FAILED\n"; 33 echo "\n-- ...define some variables --\n"; 41 echo "\n-- ...define some more variables --\n"; 49 echo "\n-- Get variables at global scope --\n"; 53 echo "TEST FAILED - Global variables missing at global scope\n";
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | mb_convert_encoding_stateful.phpt | 10 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-8.3/ext/ffi/tests/ |
H A D | 015.phpt | 11 echo "ok\n"; 13 echo get_class($e) . ": " . $e->getMessage()."\n"; 17 echo "ok\n"; 19 echo get_class($e) . ": " . $e->getMessage()."\n"; 23 echo "ok\n"; 25 echo get_class($e) . ": " . $e->getMessage()."\n"; 29 echo "ok\n"; 35 echo "ok\n"; 41 echo "ok\n"; 47 echo "ok\n"; [all …]
|
/PHP-8.3/ext/dom/tests/ |
H A D | domelement.phpt | 12 echo "Error while parsing the document\n"; 17 echo "Tag Name: ".$node->tagName."\n"; 21 echo "Chapter: ".$node->getAttribute('num')."\n"; 24 echo "Chapter: ".$node->getAttribute('num')."\n"; 35 echo "\n-- xml:lang --\n"; 50 echo "Language: ".$lang->value."\n"; 52 echo "\n-- Elements --\n"; 54 echo "Row Count: ".$rows->length."\n"; 63 echo "myelements Count: ".$mylen."\n"; 65 echo "\n-- IDs --\n"; [all …]
|
/PHP-8.3/tests/lang/ |
H A D | engine_assignExecutionOrder_001.phpt | 7 echo "in f()\n"; 12 echo "in g()\n"; 17 echo "\n\nOrder with local assignment:\n"; 21 echo "\n\nOrder with array assignment:\n"; 25 echo "\n\nOrder with object property assignment:\n"; 30 echo "\n\nOrder with nested object property assignment:\n"; 37 echo "\n\nOrder with dim_list property assignment:\n"; 48 echo "\n\nOrder with static property assignment:\n"; 52 echo "\n\nOrder with static array property assignment:\n"; 56 echo "\n\nOrder with indexed string assignment:\n"; [all …]
|
/PHP-8.3/Zend/tests/try/ |
H A D | try_finally_020.phpt | 6 public $n = 0; 7 function __construct($n) { 8 $this->n = $n; 11 echo "destruct" . $this->n . "\n"; 26 echo "finally1\n"; 30 echo "catch\n"; 32 echo "finally2\n";
|
/PHP-8.3/ext/readline/tests/ |
H A D | bug77812-libedit.phpt | 17 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n"); 18 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n"); 19 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n"); 20 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n"); 21 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
|
/PHP-8.3/ext/sodium/tests/ |
H A D | crypto_scalarmult_ristretto255.phpt | 12 $n = str_repeat("\0", SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES); 15 $p = sodium_crypto_scalarmult_ristretto255_base($n); 17 echo $ex->getMessage(), "\n"; 20 $p2 = sodium_crypto_scalarmult_ristretto255($n, $b); 22 echo $ex->getMessage(), "\n"; 26 sodium_increment($n); 27 $p = sodium_crypto_scalarmult_ristretto255_base($n); 28 $p2 = sodium_crypto_scalarmult_ristretto255($n, $b); 34 sodium_crypto_scalarmult(substr($n, 1), $p); 36 echo $ex->getMessage(), "\n"; [all …]
|