/PHP-7.1/tests/lang/ |
H A D | foreachLoop.016.phpt | 7 echo "\n" . '$a' . "\n"; 15 echo "\n" . '${\'a\'}' . "\n"; 23 echo "\n" . '$$a' . "\n"; 33 echo "\n" . '$a[0]' . "\n"; 41 echo "\n" . '$a[0][0]' . "\n"; 49 echo "\n" . '$a->b' . "\n"; 57 echo "\n" . '$a->b->c' . "\n"; 65 echo "\n" . '$a->b[0]' . "\n"; 73 echo "\n" . '$a->b[0][0]' . "\n"; 93 echo "\n" . 'C::$a' . "\n"; [all …]
|
H A D | 021.phpt | 8 echo "i=$i\n"; 12 echo "In branch 0\n"; 15 echo "In branch 1\n"; 18 echo "In branch 2\n"; 21 echo "In branch 3\n"; 24 echo "In branch 4\n"; 27 echo "In default\n"; 31 echo "hi\n";
|
/PHP-7.1/ext/dba/tests/ |
H A D | dba009.phpt | 11 echo "database handler: $handler\n"; 12 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 13 echo "Opened\n"; 15 echo dba_fetch("a", $db)."\n"; 17 echo "Closed\n"; 19 echo "Error creating database\n"; 21 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 22 echo "Opened\n"; 24 echo dba_fetch("a", $db)."\n";
|
/PHP-7.1/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 19 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 print "Regular, procedural, using variables\n"; 40 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 63 print "Call user func, procedural, using references for everything\n"; 69 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 97 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 125 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 152 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 181 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 210 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 18 printf("[002] Expecting \\, got %s\n", $tmp); 21 printf("[003] Expecting \", got %s\n", $tmp); 24 printf("[004] Expecting '', got %s\n", $tmp); 26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 27 printf("[005] Expecting \\n, got %s\n", $tmp); 30 printf("[006] Expecting \\r, got %s\n", $tmp); 34 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp); 38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 51 printf("[012] Expecting \\, got %s\n", $tmp); [all …]
|
H A D | mysqli_class_mysqli_driver_interface.phpt | 16 printf("Parent class:\n"); 19 printf("\nMethods:\n"); 39 printf("Dumping list of missing methods.\n"); 43 printf("Dumping list of unexpected methods.\n"); 47 printf("ok\n"); 49 printf("\nClass variables:\n"); 53 printf("%s\n", $var); 55 printf("\nObject variables:\n"); 58 printf("%s\n", $var); 60 printf("\nMagic, magic properties:\n"); [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 15 printf("[000a] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error); 68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); 74 printf("[017] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
/PHP-7.1/Zend/tests/ |
H A D | bug70012.phpt | 6 echo "Outer try\n"; 8 echo " Middle try\n"; 11 echo " Middle finally\n"; 13 echo " Inner try\n"; 15 echo " Inner finally\n"; 18 echo "Outer shouldnt get here\n"; 20 echo "Outer catch\n"; 22 echo "Outer finally\n";
|
/PHP-7.1/Zend/tests/try/ |
H A D | try_finally_019.phpt | 6 public $n = 0; 7 function __construct($n) { 8 $this->n = $n; 11 echo "destruct" . $this->n . "\n"; 26 echo "finally1\n"; 31 echo "finally2\n";
|
/PHP-7.1/ext/standard/tests/dir/ |
H A D | chdir_variation2.phpt | 14 echo "*** Testing chdir() : usage variations ***\n"; 28 echo "\n-- \$directory = './level2_one': --\n"; 33 echo "\n-- \$directory = 'level2_one/level2_two': --\n"; 38 echo "\n-- \$directory = '..': --\n"; 42 echo "\n-- \$directory = 'level2_two', '.': --\n"; 47 echo "\n-- \$directory = '../': --\n"; 51 echo "\n-- \$directory = './': --\n"; 56 echo "\n-- \$directory = '../../'level2_one': --\n";
|
/PHP-7.1/ext/imap/tests/ |
H A D | imap_createmailbox_basic.phpt | 14 echo "*** Testing imap_createmailbox() : basic functionality ***\n"; 23 echo "Newname will be '$newname'\n"; 28 echo "Add a couple of msgs to '$newname' mailbox\n"; 34 echo "Messages: " . $status->messages . "\n"; 35 echo "Recent: " . $status->recent . "\n"; 36 echo "Unseen: " . $status->unseen . "\n"; 37 echo "UIDnext: " . $status->uidnext . "\n"; 38 echo "UIDvalidity: " . $status->uidvalidity . "\n"; 45 echo "Mailbox '$newname' removed to restore initial state\n"; 47 echo "imap_deletemailbox on new mailbox failed: " . implode("\n", imap_errors()) . "\n"; [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | fixedarray_002.phpt | 13 public function offsetGet($n) { 14 echo "A::offsetGet\n"; 15 return parent::offsetGet($n); 17 public function offsetSet($n, $v) { 18 echo "A::offsetSet\n"; 19 return parent::offsetSet($n, $v); 21 public function offsetUnset($n) { 22 echo "A::offsetUnset\n"; 23 return parent::offsetUnset($n); 25 public function offsetExists($n) { [all …]
|
H A D | iterator_025.phpt | 10 echo __METHOD__ . "()\n"; 15 echo __METHOD__ . "()\n"; 23 foreach($it as $v) echo "$v\n"; 25 echo "===MORE===\n"; 27 foreach($it as $v) echo "$v\n"; 29 echo "===MORE===\n"; 32 foreach($it as $v) echo "$v\n"; 35 echo "===MANUAL===\n"; 40 echo $it->current() . "\n"; 47 echo $it->current() . "\n";
|
/PHP-7.1/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"; 56 echo "failed\n"; 58 echo "ok\n"; 64 die("failed\n"); 66 echo "ok\n"; [all …]
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | sha1_file.phpt | 35 echo "\n*** Testing for error conditions ***\n"; 37 echo "\n-- No filename --\n"; 40 echo "\n-- invalid filename --\n"; 43 echo "\n-- Scalar value as filename --\n"; 46 echo "\n-- NULL as filename --\n"; 49 echo "\n-- Zero arguments --\n"; 52 echo "\n-- More than valid number of arguments ( valid is 2) --\n"; 55 echo "\n-- Hexadecimal Output for Empty file as Argument --\n"; 58 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 61 echo "\n-- Hexadecimal Output for a valid file with some contents --\n"; [all …]
|
/PHP-7.1/ext/standard/tests/array/ |
H A D | count_recursive.phpt | 12 print "-- Testing NULL --\n"; 17 print "-- Testing arrays --\n"; 22 print "-- Testing hashes --\n"; 27 print "-- Testing strings --\n"; 59 echo "\n-- Iteration $i --\n"; 67 print "\n-- Testing count() on constants with no second argument --\n"; 71 print "\n-- Testing count() on NULL and Unset variables --\n"; 77 print "\n-- Testing count() on an empty sub-array --\n"; 82 echo "\n-- Testing count() on objects with Countable interface --\n"; 97 echo "\n-- Testing count() on resource type --\n"; [all …]
|
/PHP-7.1/ext/zip/lib/ |
H A D | zip_get_num_entries.c | 41 zip_uint64_t n; in zip_get_num_entries() local 47 n = za->nentry; in zip_get_num_entries() 48 while (n>0 && za->entry[n-1].orig == NULL) in zip_get_num_entries() 49 --n; in zip_get_num_entries() 50 return (zip_int64_t)n; in zip_get_num_entries()
|
/PHP-7.1/ext/calendar/tests/ |
H A D | jdtofrench.phpt | 7 echo jdtofrench(0). "\n"; 8 echo jdtofrench(2375840). "\n"; 9 echo jdtofrench(2375850). "\n"; 10 echo jdtofrench(2375940). "\n"; 11 echo jdtofrench(2376345). "\n"; 12 echo jdtofrench(2385940). "\n";
|
/PHP-7.1/ext/hash/tests/ |
H A D | adler32.phpt | 7 echo hash('adler32', ''), "\n"; 8 echo hash('adler32', 'a'), "\n"; 9 echo hash('adler32', 'abc'), "\n"; 10 echo hash('adler32', 'message digest'), "\n"; 11 echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n"; 12 echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n"; 13 …dler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
|
/PHP-7.1/ext/pgsql/tests/ |
H A D | 05large_object.phpt | 12 echo "create/write/close LO\n"; 15 if (!$oid) echo ("pg_lo_create() error\n"); 17 if (!$handle) echo ("pg_lo_open() error\n"); 18 pg_lo_write ($handle, "large object data\n"); 22 echo "open/read/tell/seek/close LO\n"; 31 echo "open/read_all/close LO\n"; 39 echo "unlink LO\n"; 45 echo "Test without connection\n"; 51 echo "Test with string oid value\n"; 57 echo "import/export LO\n"; [all …]
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | basename_bug66395_variation2-win32.phpt | 7 echo basename("y:") . "\n"; 8 echo basename("y:/") . "\n"; 9 echo basename("notdriveletter:file.txt") . "\n"; 10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n"; 11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n"; 12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n"; 15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n"; 16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n"; 18 echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n"; 19 echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n"; [all …]
|
H A D | filetype_variation.phpt | 31 echo "-- Checking with files --\n"; 32 print( filetype($file1) )."\n"; 33 print( filetype($file2) )."\n"; 36 echo "-- Checking with links: hardlink --\n"; 38 print( filetype($link1 ) )."\n"; 40 echo "-- Checking with links: symlink --\n"; 42 print( filetype($link2) )."\n"; 49 echo "-- Checking with directory --\n"; 54 echo "-- Checking with fifo --\n"; 56 print( filetype( $file3) )."\n"; [all …]
|
/PHP-7.1/ext/pdo/tests/ |
H A D | bug_64172.phpt | 22 echo "===FAIL===\n"; 24 echo "\n"; 25 echo "===TEST===\n"; 26 var_dump(is_string($db->errorInfo()[0])) . "\n"; 27 var_dump(is_int($db->errorInfo()[1])) . "\n"; 29 echo "===GOOD===\n"; 35 echo "===FAIL===\n"; 37 echo "\n"; 38 echo "===TEST===\n"; 40 var_dump(is_int($db->errorInfo()[1])) . "\n"; [all …]
|
/PHP-7.1/tests/classes/ |
H A D | __call_007.phpt | 24 echo "---> Invoke __call via simple method call.\n"; 28 echo "Exception caught OK; continuing.\n"; 31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n"; 35 echo "Exception caught OK; continuing.\n"; 38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n"; 43 echo "Exception caught OK; continuing.\n"; 46 echo "\n\n---> Invoke __call via callback.\n"; 50 echo "Exception caught OK; continuing.\n";
|
/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_convert_encoding.phpt | 24 echo "== BASIC TEST ==\n"; 27 print("EUC-JP: $s\n"); // EUC-JP 31 print("EUC-JP: $s\n"); // EUC-JP 48 print("EUC-JP: $s\n"); // EUC-JP 65 print("EUC-JP: $s\n"); // EUC-JP 77 echo "== DETECT ORDER ==\n"; 81 print("EUC-JP: $s\n"); // EUC-JP 93 echo "== INVALID PARAMETER ==\n"; 96 print("INT: $s\n"); // EUC-JP 99 print("EUC-JP: $s\n"); // SJIS [all …]
|