/PHP-7.4/ext/ffi/tests/ |
H A D | 028.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"; 31 echo get_class($e) . ": " . $e->getMessage()."\n"; 35 echo "ok\n"; 37 echo get_class($e) . ": " . $e->getMessage()."\n"; [all …]
|
H A D | 020.phpt | 13 echo "ok\n"; 15 echo get_class($e) . ": " . $e->getMessage()."\n"; 21 echo "ok\n"; 23 echo get_class($e) . ": " . $e->getMessage()."\n"; 28 echo "ok\n"; 30 echo get_class($e) . ": " . $e->getMessage()."\n"; 35 echo "ok\n"; 37 echo get_class($e) . ": " . $e->getMessage()."\n"; 42 echo "ok\n"; 49 echo "ok\n"; [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | foreach_003.phpt | 6 private $n = 0; 21 function rewind() {$this->trap(__FUNCTION__); $this->n = 0;} 23 function key() {$this->trap(__FUNCTION__); return $this->n;} 24 function current() {$this->trap(__FUNCTION__); return $this->n;} 25 function next() {$this->trap(__FUNCTION__); $this->n++;} 32 foreach ($obj as $key => $val) echo "$val\n"; 34 echo $e->getMessage() . "\n"; 40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n"; 42 echo $e->getMessage() . "\n"; 47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n"; [all …]
|
H A D | jump01.phpt | 5 $n = 1; 7 echo "$n: ok\n"; 8 $n++; 9 if ($n <= 3) goto L1;
|
H A D | closure_016.phpt | 7 echo "Hello World!\n"; 13 echo "Hello World!\n"; 18 echo $name."\n"; 20 echo $name."\n"; 22 echo $name."\n"; 24 echo $name."\n"; 27 echo $name."\n"; 29 echo $name."\n"; 31 echo $name."\n"; 33 echo $name."\n";
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | trim.phpt | 10 'ABC' === trim(" \\0\\t\\nABC \\0\\t\\n") 11 "ABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n") 12 " \\0\\t\\nABC" === rtrim(" \\0\\t\\nABC \\0\\t\\n") 13 " \\0\\t\\nABC \\0\\t\\n" === trim(" \\0\\t\\nABC \\0\\t\\n",'') 14 " \\0\\t\\nABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n",'') 15 " \\0\\t\\nABC \\0\\t\\n" === rtrim(" \\0\\t\\nABC \\0\\t\\n",'')
|
H A D | ltrim.phpt | 10 echo "\n *** Output for Error Conditions ***\n"; 12 echo "\n *** Output for zero argument ***\n"; 15 echo "\n *** Output for more than valid number of arguments (Valid are 1 or 2 arguments) ***\n"; 24 echo "\n *** Using heredoc string ***\n"; 29 echo "\n *** Output for Normal Behaviour ***\n"; 35 …var_dump ( ltrim("\t\n\r\0\x0B ltrim test", "\t\n\r\0\x0B") ); /* with multiple escape sequences … 41 echo "\n *** Output for scalar argument) ***\n"; 44 echo "\n *** Output for NULL argument) ***\n"; 47 echo "\nDone\n";
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_convert_kana.phpt | 24 echo "\n"; 26 echo "\n"; 28 echo "\n"; 30 echo "\n"; 32 echo "\n"; 34 echo "\n"; 35 echo "\n"; 37 echo "\n"; 39 echo "\n"; 41 echo "\n";
|
H A D | mb_preferred_mime_name.phpt | 10 echo "$str\n"; 13 echo "$str\n"; 16 echo "$str\n"; 19 echo "$str\n"; 22 echo "$str\n"; 25 echo "$str\n"; 28 echo "$str\n"; 31 echo "$str\n"; 34 echo "$str\n"; 36 echo "== INVALID PARAMETER ==\n";
|
/PHP-7.4/ext/gd/tests/ |
H A D | types.phpt | 5 if (!function_exists('imagetypes')) die("skip gd extension not available\n"); 12 echo "gif failed\n"; 16 echo "jpeg failed\n"; 20 echo "png failed\n"; 24 echo "wbmp failed\n"; 28 echo "xom failed\n"; 30 echo "ok\n";
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_get_result.phpt | 25 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 33 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 58 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 75 printf("[016] NULL, got %s/%s\n", gettype($tmp), var_export($tmp, 1)); 81 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 115 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 132 printf("[034] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 146 printf("[038] Expecting array, got %s/%s, [%d] %s\n", 151 printf("[039] Expecting boolean/false, got %s/%s, [%d] %s\n", [all …]
|
H A D | mysqli_affected_rows.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n", 34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 60 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
/PHP-7.4/tests/lang/ |
H A D | foreachLoop.016.phpt | 6 echo "\n" . '$a' . "\n"; 14 echo "\n" . '${\'a\'}' . "\n"; 22 echo "\n" . '$$a' . "\n"; 32 echo "\n" . '$a[0]' . "\n"; 40 echo "\n" . '$a[0][0]' . "\n"; 48 echo "\n" . '$a->b' . "\n"; 56 echo "\n" . '$a->b->c' . "\n"; 64 echo "\n" . '$a->b[0]' . "\n"; 72 echo "\n" . '$a->b[0][0]' . "\n"; 92 echo "\n" . 'C::$a' . "\n"; [all …]
|
/PHP-7.4/ext/oci8/tests/ |
H A D | num.phpt | 21 echo "Test 1\n"; 27 echo "Test 2\n"; 44 echo "Test 3\n"; 54 echo "Test 4\n"; 67 echo "Test 5a\n"; 77 echo "Test 5b\n"; 88 echo "Test 5c\n"; 109 echo "Test 6\n"; 130 echo "Test 7\n"; 146 echo "Test 8a\n"; [all …]
|
/PHP-7.4/ext/shmop/tests/ |
H A D | 001.phpt | 18 die("failed\n"); 20 echo "ok\n"; 28 echo "failed\n"; 30 echo "ok\n"; 40 echo "failed\n"; 42 echo "ok\n"; 55 echo "failed\n"; 57 echo "ok\n"; 63 die("failed\n"); 65 echo "ok\n"; [all …]
|
/PHP-7.4/ext/intl/tests/ |
H A D | calendar_before_after_error.phpt | 16 echo "error: $errno, $errstr\n"; 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 34 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 45 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 50 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 56 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 61 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionMethod_constructor_basic.phpt | 8 echo "In " . __METHOD__ . "\n"; 12 echo "New-style constructor:\n"; 18 echo "\nInherited new-style constructor\n"; 24 echo "In " . __METHOD__ . "\n"; 27 echo "\nOld-style constructor:\n"; 39 echo "In " . __METHOD__ . "\n"; 42 echo "\nNot a constructor:\n"; 54 echo "In " . __METHOD__ . "\n"; 61 echo "\nOld-style constructor:\n"; 65 echo "\nRedefined constructor:\n"; [all …]
|
H A D | ReflectionParameter_001.phpt | 18 echo "No arg function\n"; 26 echo "Parameters from twoArgMethod:\n\n"; 30 echo "\n"; 35 echo "Parameters from oneArgNonStatic:\n\n"; 39 echo "\n"; 45 echo "Parameters from noArgs:\n\n"; 50 echo "\n"; 53 echo "done\n";
|
/PHP-7.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_qprint.c | 76 int s, n; in mbfl_filt_conv_qprintenc() local 117 n = (s >> 4) & 0xf; in mbfl_filt_conv_qprintenc() 118 if (n < 10) { in mbfl_filt_conv_qprintenc() 119 n += 48; /* '0' */ in mbfl_filt_conv_qprintenc() 121 n += 55; /* 'A' - 10 */ in mbfl_filt_conv_qprintenc() 124 n = s & 0xf; in mbfl_filt_conv_qprintenc() 125 if (n < 10) { in mbfl_filt_conv_qprintenc() 126 n += 48; in mbfl_filt_conv_qprintenc() 128 n += 55; in mbfl_filt_conv_qprintenc() 160 int n, m; in mbfl_filt_conv_qprintdec() local [all …]
|
/PHP-7.4/ext/standard/tests/class_object/ |
H A D | get_object_vars_basic_001.phpt | 15 echo __METHOD__ . "\n"; 27 echo __METHOD__ . "\n"; 36 echo __METHOD__ . "\n"; 43 echo __METHOD__ . "\n"; 50 echo "\n---( Global scope: )---\n"; 52 echo "\n---( Declaring class: )---\n"; 54 echo "\n---( Subclass: )---\n"; 56 echo "\n---( Superclass: )---\n"; 58 echo "\n---( Unrelated class: )---\n";
|
/PHP-7.4/ext/spl/tests/ |
H A D | heap_004.phpt | 15 echo "inserted 1\n"; 17 echo "inserted 2\n"; 19 echo "inserted 3\n"; 21 echo "Exception: ".$e->getMessage()."\n"; 26 echo "inserted 4\n"; 28 echo "Exception: ".$e->getMessage()."\n"; 34 echo "Exception: ".$e->getMessage()."\n"; 39 echo "Exception: ".$e->getMessage()."\n"; 42 echo "Recovering..\n"; 48 echo "Exception: ".$e->getMessage()."\n"; [all …]
|
H A D | pqueue_002.phpt | 15 echo "inserted 1\n"; 17 echo "inserted 2\n"; 19 echo "inserted 3\n"; 21 echo "Exception: ".$e->getMessage()."\n"; 26 echo "inserted 4\n"; 28 echo "Exception: ".$e->getMessage()."\n"; 34 echo "Exception: ".$e->getMessage()."\n"; 39 echo "Exception: ".$e->getMessage()."\n"; 42 echo "Recovering..\n"; 48 echo "Exception: ".$e->getMessage()."\n"; [all …]
|
/PHP-7.4/ext/pgsql/tests/ |
H A D | 28large_object_import_oid.phpt | 7 if (version_compare("8.4devel", $v["client"]) > 0) die("skip - requires pg client >= 8.4\n"); 8 if (version_compare("8.4devel", $v["server"]) > 0) die("skip - requires pg server >= 8.4\n"); 17 echo "import LO from int\n"; 20 if (!$oid) echo ("pg_lo_import() error\n"); 21 if ($oid != 21003) echo ("pg_lo_import() wrong id\n"); 25 echo "import LO from string\n"; 28 if (!$oid) echo ("pg_lo_import() error\n"); 29 if ($oid != 21004) echo ("pg_lo_import() wrong id\n"); 33 echo "import LO using default connection\n"; 36 if (!$oid) echo ("pg_lo_import() error\n"); [all …]
|
/PHP-7.4/ext/hash/tests/ |
H A D | sha224.phpt | 5 echo hash('sha224', '') . "\n"; 6 echo hash('sha224', 'a') . "\n"; 7 echo hash('sha224', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 10 echo hash('sha224', 'abc') . "\n"; 11 echo hash('sha224', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 12 echo hash('sha224', str_repeat('a', 1000000)) . "\n";
|
H A D | sha256.phpt | 5 echo hash('sha256', '') . "\n"; 6 echo hash('sha256', 'a') . "\n"; 7 echo hash('sha256', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 10 echo hash('sha256', 'abc') . "\n"; 11 echo hash('sha256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 12 echo hash('sha256', str_repeat('a', 1000000)) . "\n";
|