/PHP-7.0/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.0/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 …]
|
H A D | imap_append_basic.phpt | 18 echo "Create a new mailbox for test\n"; 21 exit("TEST FAILED: Unable to create test mailbox\n"); 27 , "From: webmaster@something.com\r\n" 28 . "To: info@something.com\r\n" 29 . "Subject: Test message\r\n" 30 . "\r\n" 36 . "To: info@something.com\r\n" 37 . "Subject: Another test\r\n" 38 . "\r\n" 43 echo "Msg Count after append : ". $check->Nmsgs . "\n"; [all …]
|
/PHP-7.0/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";
|
H A D | dllist_013.phpt | 10 echo "Exception: ".$e->getMessage()."\n"; 23 echo count($dll)."\n"; 25 echo $dll->pop()."\n"; 26 echo $dll->pop()."\n"; 27 echo $dll->pop()."\n"; 28 echo $dll->pop()."\n"; 29 echo $dll->pop()."\n"; 30 echo $dll->pop()."\n"; 31 echo $dll->pop()."\n";
|
/PHP-7.0/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_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.0/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.0/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.0/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.0/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.0/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";
|
H A D | md2.phpt | 7 echo hash('md2', '') . "\n"; 8 echo hash('md2', 'a') . "\n"; 9 echo hash('md2', 'abc') . "\n"; 10 echo hash('md2', 'message digest') . "\n"; 11 echo hash('md2', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('md2', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 13 …('md2', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
/PHP-7.0/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.0/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.0/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.0/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.0/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 …]
|
H A D | 02connection.phpt | 16 echo "pg_connection_status() error\n"; 20 echo "pg_connection_reset() error\n"; 24 echo "pg_connection_busy() error\n"; 29 echo "pg_transaction_status() error\n"; 34 echo "pg_host() error\n"; 38 echo "pg_dbname() error\n"; 42 echo "pg_port() error\n"; 46 echo "pg_tty() error\n"; 50 echo "pg_options() error\n";
|
/PHP-7.0/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 …]
|
/PHP-7.0/ext/phar/tests/ |
H A D | phar_oo_008.phpt | 19 echo "===1===\n"; 22 echo "$k=>$v\n"; 27 echo "===2===\n"; 30 echo "$k=>$v\n"; 44 echo "===3===\n"; 50 echo "===4===\n"; 58 echo "===5===\n"; 61 echo "$k=>" . join('|',$d) . "\n"; 68 echo __METHOD__ . "\n"; 76 echo "===6===\n"; [all …]
|
/PHP-7.0/ext/gmp/tests/ |
H A D | cast.phpt | 8 $n = gmp_init(42); 9 echo $n, "\n"; 10 var_dump((string) $n); 11 var_dump((int) $n); 12 var_dump((float) $n); 13 var_dump((bool) $n);
|