/PHP-5.6/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 …]
|
H A D | array_product_variation3.phpt | 11 echo "*** Testing array_product() : variations - negative numbers***\n"; 13 echo "\n-- Testing array_product() function with one negative number --\n"; 16 echo "\n-- Testing array_product() function with two negative numbers --\n"; 19 echo "\n-- Testing array_product() function with three negative numbers --\n"; 22 echo "\n-- Testing array_product() function with negative floats --\n"; 25 echo "\n-- Testing array_product() function with negative floats --\n";
|
/PHP-5.6/ext/spl/tests/ |
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-5.6/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-5.6/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";
|
H A D | inheritance.phpt | 12 echo "This is class foo\n"; 13 echo "a = ".$this->a."\n"; 14 echo "b = ".$this->b."\n"; 24 echo "This is class bar\n"; 25 echo "a = ".$this->a."\n"; 26 echo "b = ".$this->b."\n"; 27 echo "c = ".$this->c."\n"; 36 echo $foo1->mul()."\n"; 38 echo "-----\n"; 45 echo $bar1->mul()."\n";
|
/PHP-5.6/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-5.6/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-5.6/ext/mysqli/tests/ |
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 …]
|
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 …]
|
H A D | mysqli_stmt_execute_stored_proc.phpt | 21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 50 printf("[018] Results seem wrong, got %s, [%d] %s\n", 65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 88 printf("[026] Results seem wrong, got %s, [%d] %s\n", 102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 128 printf("[035] Results seem wrong, got %s, [%d] %s\n", 140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 170 printf("[045] Results seem wrong, got %s, [%d] %s\n", [all …]
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_get_num_entries.c | 43 zip_uint64_t n; in zip_get_num_entries() local 49 n = za->nentry; in zip_get_num_entries() 50 while (n>0 && za->entry[n-1].orig == NULL) in zip_get_num_entries() 51 --n; in zip_get_num_entries() 52 return (zip_int64_t)n; in zip_get_num_entries()
|
/PHP-5.6/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-5.6/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-5.6/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-5.6/ext/imap/tests/ |
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-5.6/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-5.6/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-5.6/ext/date/tests/ |
H A D | date_period-immutable.phpt | 13 echo get_class( $dt ), "\n"; 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 21 echo get_class( $dt ), "\n"; 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|
/PHP-5.6/ext/simplexml/tests/ |
H A D | 011.phpt | 21 echo "===BAR===\n"; 23 echo "\n"; 25 echo "===BAZ===\n"; 27 echo "\n"; 29 echo "===BAZ0===\n"; 31 echo "\n"; 33 echo "===BAZ1===\n"; 35 echo "\n";
|
/PHP-5.6/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);
|