/php-src/Zend/tests/ |
H A D | bug29210.phpt | 7 echo "test_func1\n"; 10 echo "test_func2\n"; 13 echo "test_func3\n"; 16 echo "test_func4\n"; 22 echo "test_func1 isn't callable from inside\n"; 27 echo "test_func2 isn't callable from inside\n"; 32 echo "test_func3 isn't callable from inside\n"; 72 echo "test_func1 isn't callable from outside\n"; 77 echo "test_func2 isn't callable from outside\n"; 82 echo "test_func3 isn't callable from outside\n"; [all …]
|
H A D | jump01.phpt | 5 $n = 1; 7 echo "$n: ok\n"; 8 $n++; 9 if ($n <= 3) goto L1;
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_get_client_stats_ps.phpt | 18 …printf("BEGINNING: rows_fetched_from_client_ps_unbuffered = %d\n", $stats['rows_fetched_from_clien… 19 …printf("BEGINNING: rows_fetched_from_client_ps_buffered = %d\n", $stats['rows_fetched_from_client_… 20 …printf("BEGINNING: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps… 23 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 41 printf("[003] Unbuffered rows got increased after buffered PS, expecting %d got %d.\n", 47 printf("[005] Buffered rows should be %d got %d.\n", 54 …printf("BUFFERED: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps_… 60 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 69 printf("[007] Unbuffered rows should be %d got %d.\n", [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 47 printf("%s\n", $e->getMessage()); 65 printf("%s\n", $e->getMessage()); 66 printf("[004] Usage of mysqli.default_port failed\n"); 83 printf("%s\n", $e->getMessage()); 84 printf("[006] Usage of mysqli.default_pw failed\n"); 101 printf("%s\n", $e->getMessage()); 102 printf("[008] Usage of mysqli.default_user failed\n"); 126 printf("%s\n", $e->getMessage()); 127 printf("[012] Usage of mysqli.default_host failed\n"); 139 printf("%s\n", $e->getMessage()); [all …]
|
H A D | mysqli_get_warnings.phpt | 19 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 39 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[009] Borked object, method next is missing\n"); 68 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 89 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 92 printf("[023] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_class_mysqli_properties_no_conn.phpt | 15 printf("\nClass variables:\n"); 26 printf("\nObject variables:\n"); 36 printf("\nMagic, magic properties:\n"); 40 echo $exception->getMessage() . "\n"; 46 echo $exception->getMessage() . "\n"; 56 echo $exception->getMessage() . "\n"; 62 echo $exception->getMessage() . "\n"; 68 echo $exception->getMessage() . "\n"; 220 printf("Without RS\n"); 224 printf("\nWith RS\n"); [all …]
|
H A D | mysqli_stmt_execute_stored_proc_next_result.phpt | 25 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 45 printf("[009] Results seem wrong, got %s, [%d] %s\n", 51 printf("[010] More results: %s\n", (mysqli_more_results($link)) ? "yes" : "no"); 52 printf("[011] Next result: %s\n", (mysqli_next_result($link)) ? "yes" : "no"); 58 printf("[013] [%d] %s\n", $link->errno, $link->error); 65 printf("[014] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 85 printf("[019] Results seem wrong, got %s, [%d] %s\n", 90 printf("[020] [%d] %s\n", $link->errno, $link->error); 98 printf("[022] Results seem wrong, got %s, [%d] %s\n", 107 printf("[024] [%d] %s\n", $link->errno, $link->error); [all …]
|
H A D | mysqli_stmt_get_result_seek.phpt | 14 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 23 printf("[004] Expecting object/mysqli_result got %s/%s, [%d] %s\n", 38 printf("[007] Cannot seek to position %d, [%d] %s\n", 42 printf("[008] Record looks wrong, dumping data\n"); 49 printf("[009] Record looks wrong, dumping data\n"); 56 printf("[010] Not empty, dumping unexpected data\n"); 95 printf("[016] Expecting array got %s/%s\n", gettype($tmp), $tmp); 102 echo $exception->getMessage() . "\n"; 108 echo $exception->getMessage() . "\n"; 116 echo $exception->getMessage() . "\n"; [all …]
|
H A D | mysqli_stmt_close.phpt | 14 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 20 echo $exception->getMessage() . "\n"; 24 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 27 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 32 echo $exception->getMessage() . "\n"; 36 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 39 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 52 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 58 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_free_result.phpt | 13 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 16 print "a\n"; 19 print "b\n"; 23 echo $exception->getMessage() . "\n"; 27 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 print "c\n"; 33 print "[005]\n"; 38 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 print "d\n"; 43 print "[007]\n";
|
/php-src/ext/date/tests/ |
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 50 echo "\n"; 92 echo "\n"; 102 . $end->sub($interval)->format($date_format) . "\n"; 108 . $end->sub($interval)->format($date_format) . "\n"; 114 . $end->sub($interval)->format($date_format) . "\n"; 120 . $end->sub($interval)->format($date_format) . "\n"; 126 . $end->sub($interval)->format($date_format) . "\n"; 132 . $end->sub($interval)->format($date_format) . "\n"; 140 echo "\n"; 185 echo "\n"; [all …]
|
H A D | gmdate_variation10.phpt | 5 echo "*** Testing gmdate() : usage variation ***\n"; 11 echo "\n-- Testing gmdate() function with Timezone identifier format --\n"; 15 echo "\n-- Testing gmdate() function with checking whether date is in daylight saving time format -… 19 echo "\n-- Testing gmdate() function with difference to GMT in hours format --\n"; 23 echo "\n-- Testing gmdate() function with Difference to GMT in hours using colon as separator forma… 27 echo "\n-- Testing gmdate() function with timezone abbreviation format --\n"; 31 echo "\n-- Testing gmdate() function with timezone offset format --\n";
|
/php-src/ext/spl/tests/ |
H A D | unserialize_errors.phpt | 6 echo "ArrayObject:\n"; 12 echo $e->getMessage(), "\n"; 18 echo $e->getMessage(), "\n"; 24 echo $e->getMessage(), "\n"; 30 echo $e->getMessage(), "\n"; 37 echo $e->getMessage(), "\n"; 43 echo $e->getMessage(), "\n"; 51 echo $e->getMessage(), "\n"; 54 echo "ArrayIterator:\n"; 80 echo "SplDoublyLinkedList:\n"; [all …]
|
H A D | iterator_007.phpt | 10 echo __METHOD__ . "\n"; 15 echo __METHOD__ . "\n"; 20 echo __METHOD__ . "\n"; 25 echo __METHOD__ . "\n"; 30 echo __METHOD__ . "\n"; 39 echo __METHOD__ . "\n"; 66 echo "===0===\n"; 71 echo "===1===\n"; 80 echo "===2===\n"; 88 echo "===3===\n"; [all …]
|
/php-src/ext/standard/tests/mail/ |
H A D | mail_basic7.phpt | 10 echo "*** Testing mail() : basic functionality ***\n"; 12 echo "\n\n************* TEST ******************\n"; 23 "bar\r\n hoge", 24 "bar\r\n\t fuga", 30 echo "-- All Mail Content Parameters --\n"; 37 echo "\n\n************* TEST ******************\n"; 47 echo get_class($exception) . ": " . $exception->getMessage() . "\n"; 53 echo get_class($exception) . ": " . $exception->getMessage() . "\n"; 59 echo get_class($exception) . ": " . $exception->getMessage() . "\n"; 92 echo "\n\n************* TEST ******************\n"; [all …]
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | Node_replaceChild_edge_cases.phpt | 21 echo $e->getMessage(), "\n"; 29 echo $e->getMessage(), "\n"; 35 echo $e->getMessage(), "\n"; 43 echo $e->getMessage(), "\n"; 52 echo $e->getMessage(), "\n"; 60 echo $e->getMessage(), "\n"; 68 echo $e->getMessage(), "\n"; 80 echo $e->getMessage(), "\n"; 89 echo $e->getMessage(), "\n"; 111 echo $dom->saveHtml(), "\n"; [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_map_object3.phpt | 19 public static function staticParent1($n) { 20 return $n; 22 private static function staticParent2($n) { 23 return $n; 34 public static function staticChild($n) { 35 return $n; 37 public function nonstaticChild($n) { 38 return $n; 45 echo "-- accessing parent method from child class --\n"; 52 echo $e->getMessage(), "\n"; [all …]
|
H A D | array_shift_variation4.phpt | 9 echo "*** Testing array_shift() : usage variations ***\n"; 13 echo "\n-- Before shift: --\n"; 14 echo "---- \$stack_first:\n"; 16 echo "---- \$stack_last:\n"; 19 echo "\n-- After shift: --\n"; 20 echo "---- Pop array from array:\n"; 23 echo "New array:\n"; 26 echo "---- Pop element from array within array:\n"; 29 echo "New array:\n";
|
/php-src/ext/standard/tests/dir/ |
H A D | opendir_variation4-win32-mb.phpt | 15 echo "*** Testing opendir() : usage variation ***\n"; 30 echo "\n-- \$path = './私はガラスを食べられますlevel_one': --\n"; 35 echo "\n-- \$path = '私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two': --\n"; 40 echo "\n-- \$path = '..': --\n"; 44 echo "\n-- \$path = 'level_two', '.': --\n"; 49 echo "\n-- \$path = '../': --\n"; 53 echo "\n-- \$path = './': --\n"; 58 echo "\n-- \$path = '../../'私はガラスを食べられますlevel_one': --\n";
|
H A D | scandir_variation4-win32-mb.phpt | 15 echo "*** Testing scandir() : usage variations ***\n"; 32 echo "\n-- \$path = './私はガラスを食べられますlevel_one': --\n"; 36 echo "\n-- \$path = 'level_one/私はガラスを食べられますlevel_two': --\n"; 40 echo "\n-- \$path = '..': --\n"; 44 echo "\n-- \$path = '私はガラスを食べられますlevel_two', '.': --\n"; 48 echo "\n-- \$path = '../': --\n"; 52 echo "\n-- \$path = './': --\n"; 56 echo "\n-- \$path = '../../'私はガラスを食べられますlevel_one': --\n";
|
/php-src/ext/hash/tests/ |
H A D | hash_init_error.phpt | 5 echo "*** Testing hash_init(): error conditions ***\n"; 7 echo "\n-- Testing hash_init() function with unknown algorithms --\n"; 12 echo $e->getMessage() . "\n"; 15 echo "\n-- Testing hash_init() function with HASH_HMAC and non-cryptographic algorithms --\n"; 20 echo $e->getMessage() . "\n"; 23 echo "\n-- Testing hash_init() function with HASH_HMAC and no key --\n"; 28 echo $e->getMessage() . "\n"; 35 echo $e->getMessage() . "\n";
|
H A D | hash_hmac_file_error.phpt | 6 echo "*** Testing hash() : error conditions ***\n"; 11 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n"; 16 echo $e->getMessage() . "\n"; 19 echo "\n-- Testing hash_hmac_file() function with non-cryptographic hash algorithm --\n"; 24 echo $e->getMessage() . "\n"; 27 echo "\n-- Testing hash_hmac_file() function with bad path --\n"; 32 echo $e->getMessage() . "\n";
|
/php-src/ext/mbstring/tests/ |
H A D | mb_strrchr_basic.phpt | 7 echo "*** Testing mb_strrchr() : basic functionality ***\n"; 15 echo "\n-- ASCII string: needle exists --\n"; 20 echo "\n-- ASCII string: needle doesn't exist --\n"; 23 echo "\n-- Multibyte string: needle exists --\n"; 29 echo "\n-- Multibyte string: needle doesn't exist --\n"; 33 echo "\n-- Regression tests --\n";
|
/php-src/ext/standard/tests/strings/ |
H A D | sprintf_variation5.phpt | 7 $n = 43951789; 12 var_dump(sprintf("%%b = '%b'", $n)); // binary representation 14 var_dump(sprintf("%%d = '%d'", $n)); // standard integer representation 15 var_dump(sprintf("%%e = '%e'", $n)); // scientific notation 16 var_dump(sprintf("%%f = '%f'", $n)); // floating point representation 17 var_dump(sprintf("%%o = '%o'", $n)); // octal representation 18 var_dump(sprintf("%%s = '%s'", $n)); // string representation 19 var_dump(sprintf("%%x = '%x'", $n)); // hexadecimal representation (lower-case) 20 var_dump(sprintf("%%X = '%X'", $n)); // hexadecimal representation (upper-case) 22 var_dump(sprintf("%%+d = '%+d'", $n)); // sign specifier on a positive integer
|
/php-src/ext/dba/tests/ |
H A D | dba007.phpt | 16 echo "database handler: $handler\n"; 19 if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) { 20 echo "database file created\n"; 22 echo "$db_file does not exist\n"; 24 if (($db_file1=dba_open($db_file1, "n", $handler))!==FALSE) { 25 echo "database file created\n"; 27 echo "$db_file does not exist\n"; 29 if (($db_file2=dba_open($db_file2, "n", $handler))!==FALSE) { 30 echo "database file created\n"; 32 echo "$db_file does not exist\n";
|