/php-src/ext/standard/tests/general_functions/ |
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-src/ext/hash/tests/ |
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-src/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-src/ext/spl/tests/ |
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 …]
|
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-src/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 …]
|
H A D | 001.phpt | 16 echo "test.file exists\n"; 18 echo "test.file does not exist\n"; 23 echo "test.file exists\n"; 25 echo "test.file does not exist\n"; 30 echo "test.link exists\n"; 32 echo "test.link does not exist\n"; 35 echo "test.file is a symlink\n"; 40 echo "test.link is a symlink\n"; 45 echo "test.file exists\n"; 73 echo "test.file is readable\n"; [all …]
|
/php-src/ext/opcache/jit/ir/dynasm/ |
H A D | dasm_x86.h | 223 n = *p++; pl = D->lglabels + n; in dasm_put() 232 n = *pl; in dasm_put() 252 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = pos; } in dasm_put() 264 n = *p; CK(n < D->maxsection, RANGE_SEC); D->section = &D->sections[n]; in dasm_put() 298 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = -idx; } in dasm_link() 412 int n; in dasm_encode() local 422 n = *p++; in dasm_encode() 431 n = *b++; in dasm_encode() 455 n &= 7; in dasm_encode() 463 n &= 7; in dasm_encode() [all …]
|
/php-src/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 | nl2br_variation3.phpt | 9 echo "*** Testing nl2br() : usage variations ***\n"; 10 //heredoc string containing new line chars(\n, \r and combinations of \r & \n) and new lines 12 \n 14 \r\n 15 \nnn\n\n\nn 17 \n\r\n\r\r\n\nr\rn 23 This is \tes\t for \n \new lines 24 like \n \r\n \r \n\r and etc 45 n<br /> 58 n"
|
H A D | printf_basic3.phpt | 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"; 35 echo "\n-- Calling printf() with two arguments--\n"; 37 echo "\n"; 40 echo "\n"; 43 echo "\n-- Calling printf() with three arguments--\n"; 45 echo "\n"; [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_convert_kana.phpt | 27 echo "\n"; 32 echo "'A': " . $hanKakuD . ' => ' . mb_convert_kana($hanKakuD, 'AK', 'utf-8') . "\n\n"; 40 echo "Using 'glue' mode:\n"; 48 echo "Not using 'glue' mode:\n"; 50 echo bin2hex(mb_convert_kana("\xFF\x70", 'H', 'UTF-16BE')), "\n\n"; 59 echo bin2hex(mb_convert_kana("\xFF\x10", 'n', 'UTF-16BE')), "\n"; 61 echo bin2hex(mb_convert_kana("\x22\x12", 'a', 'UTF-16BE')), "\n\n"; 83 echo bin2hex(mb_convert_kana("\x30\x52", 'h', 'UTF-16BE')), "\n\n"; 88 echo bin2hex(mb_convert_kana("\x30\x9E", 'C', 'UTF-16BE')), "\n\n"; 93 echo bin2hex(mb_convert_kana("\x30\xFE", 'c', 'UTF-16BE')), "\n\n"; [all …]
|
/php-src/tests/strings/ |
H A D | 001.phpt | 14 echo("failed 1\n"); 16 echo("failed 2\n"); 18 echo("failed 3\n"); 20 echo("failed 4\n"); 22 echo("passed\n"); 30 echo("failed 1\n"); 32 echo("failed 2\n"); 34 echo("passed\n"); 47 echo("passed\n"); 54 echo("passed\n"); [all …]
|
/php-src/ext/standard/tests/http/ |
H A D | bug80256.phpt | 12 "data://text/plain,HTTP/1.1 302 Moved Temporarily\r\n" 13 . "Location: /try-again\r\n" 14 . "Transfer-Encoding: chunked\r\n\r\n" 15 . "0\r\n\r\n", 16 "data://text/plain,HTTP/1.1 200 Ok\r\n" 17 . "Transfer-Encoding: chunked\r\n\r\n" 18 . "4\r\n1234\r\n0\r\n\r\n",
|
/php-src/ext/standard/tests/array/ |
H A D | reset_basic.phpt | 9 echo "*** Testing reset() : basic functionality ***\n"; 13 echo "\n-- Initial Position: --\n"; 14 echo key($array) . " => " . current($array) . "\n"; 16 echo "\n-- Call to next() --\n"; 19 echo "\n-- Current Position: --\n"; 20 echo key($array) . " => " . current($array) . "\n"; 22 echo "\n-- Call to reset() --\n";
|
H A D | end_basic.phpt | 9 echo "*** Testing end() : basic functionality ***\n"; 13 echo "\n-- Initial Position: --\n"; 14 echo key($array) . " => " . current($array) . "\n"; 16 echo "\n-- Call to end() --\n"; 19 echo "\n-- Current Position: --\n"; 20 echo key($array) . " => " . current($array) . "\n"; 22 echo "\n-- Add a new element to array --\n";
|
/php-src/Zend/tests/ |
H A D | bug69957.phpt | 11 echo "Variable div\n"; 12 printf("Type: %s\n", get_class($t)); 21 echo "\nVariable mod\n"; 22 printf("Type: %s\n", get_class($t)); 30 echo "\nLiteral div\n"; 31 printf("Type: %s\n", get_class($t)); 39 echo "\nLiteral mod\n"; 40 printf("Type: %s\n", get_class($t)); 48 echo "\nDouble div\n"; 49 printf("Type: %s\n", get_class($t)); [all …]
|
H A D | bug44660.phpt | 11 echo "\n--> direct assignment:\n"; 15 echo $e->getMessage(), "\n"; 18 echo "\n--> increment:\n"; 22 echo $e->getMessage(), "\n"; 25 echo "\n--> reference assignment:\n"; 29 echo $e->getMessage(), "\n"; 32 echo "\n--> reference assignment:\n"; 36 echo $e->getMessage(), "\n"; 39 echo "\n--> indexed assignment:\n"; 43 echo $e->getMessage(), "\n"; [all …]
|
H A D | exception_from_toString.phpt | 17 catch (Exception $e) { echo $e->getMessage(), "\n"; } 19 catch (Exception $e) { echo $e->getMessage(), "\n"; } 21 catch (Exception $e) { echo $e->getMessage(), "\n"; } 24 catch (Exception $e) { echo $e->getMessage(), "\n"; } 26 catch (Exception $e) { echo $e->getMessage(), "\n"; } 28 catch (Exception $e) { echo $e->getMessage(), "\n"; } 32 catch (Exception $e) { echo $e->getMessage(), "\n"; } 35 catch (Exception $e) { echo $e->getMessage(), "\n"; } 39 catch (Exception $e) { echo $e->getMessage(), "\n"; } 41 catch (Exception $e) { echo $e->getMessage(), "\n"; } [all …]
|
/php-src/ext/tokenizer/tests/ |
H A D | bug76991.phpt | 20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]); 24 echo "\n"; 29 T_OPEN_TAG: <?php\n 30 T_START_HEREDOC: <<<TEST\n 32 T_ENCAPSED_AND_WHITESPACE: \n 35 T_WHITESPACE: \n\n 36 T_START_HEREDOC: <<<END\n 38 T_ENCAPSED_AND_WHITESPACE: \n
|
/php-src/ext/gmp/tests/ |
H A D | gmp_gcd.phpt | 16 $n = gmp_init("8127346234"); 17 var_dump(gmp_strval(gmp_gcd($n,"12372341234"))); 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))); 25 echo "Done\n";
|
/php-src/ext/soap/ |
H A D | php_xml.h | 44 #define FOREACHATTRNODE(n,c,i) FOREACHATTRNODEEX(n,c,NULL,i) argument 47 if (n == NULL) { \ 53 i = n; \ 56 n = i; 58 #define FOREACHNODE(n,c,i) FOREACHNODEEX(n,c,NULL,i) argument 61 if (n == NULL) { \ 65 i = get_node_ex(n,c,NULL); \ 67 i = n; \ 70 n = i; 72 #define ENDFOREACH(n) \ argument [all …]
|
/php-src/ext/date/tests/ |
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-src/sapi/fpm/tests/ |
H A D | status.inc | 61 echo "BODY:\n"; 63 echo "PATTERN:\n"; 164 "<body>\n<table>\n"; 165 $footer = "\n</table>\n</body></html>"; 170 "<tr><th>%s</th><td>%s</td></tr>\n", 187 "<%s>%s</%s>\n", 188 "<\?xml version=\"1.0\" \?>\n<status>\n", 189 "\n</status>", 234 "# TYPE phpfpm_up gauge\n" . 235 "phpfpm_up 1\n" . [all …]
|
/php-src/ext/standard/ |
H A D | dns.c | 453 long n, i; in php_parserr() local 465 cp += n; in php_parserr() 533 cp += n; in php_parserr() 544 cp += n; in php_parserr() 550 cp += n; in php_parserr() 566 cp += n; in php_parserr() 570 n = dlen - n - 2; in php_parserr() 573 cp += n; in php_parserr() 613 cp += n; in php_parserr() 619 cp += n; in php_parserr() [all …]
|