/PHP-5.4/sapi/cli/tests/ |
H A D | 021.phpt | 21 $script = "#!$php -n\n". 22 "ola\n". 23 "<?php echo 1+1,'\n';\n". 24 "?>\n". 25 "adeus\n"; 32 echo "\nDone\n";
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_detect_encoding.phpt | 23 echo "== BASIC TEST ==\n"; 26 print("SJIS: $s\n"); 30 print("JIS: $s\n"); 34 print("EUC-JP: $s\n"); 38 print("EUC-JP: $s\n"); 50 print("JIS: $s\n"); 54 print("EUC-JP: $s\n"); 58 print("SJIS: $s\n"); 69 print("JIS: $s\n"); 73 print("EUC-JP: $s\n"); [all …]
|
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";
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | bug47842.phpt | 5 if (PHP_INT_MAX < pow(2,31)) die("skip PHP_INT_MAX < 32b\n"); 9 echo "-Test\n"; 12 echo "sscanf 32-bit signed int '2147483647' (2^31)-1 = ",$int,"\n"; 14 echo "sscanf 32-bit unsign int '4294967295' (2^32)-1 = ",$int,"\n"; 17 echo "sscanf 64-bit signed int '9223372036854775807' (2^63)-1 = ",$int,"\n"; 19 echo "sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = ",$int,"\n"; 21 printf("printf 64-bit signed int '9223372036854775807' (2^63)-1 = %d\n", 9223372036854775807); 22 printf("printf 64-bit signed int '18446744073709551615' (2^64)-1 = %u\n", 18446744073709551615); 24 echo "Done\n";
|
/PHP-5.4/Zend/tests/ |
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";
|
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 …]
|
/PHP-5.4/ext/spl/tests/ |
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 …]
|
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 | 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-5.4/ext/reflection/tests/ |
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-5.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-5.4/ext/standard/tests/general_functions/ |
H A D | set_magic_quotes_runtime_basic.phpt | 11 echo "Simple testcase for set_magic_quotes_runtime() function - basic test\n"; 14 echo "\n-- magic quotes runtime set in INI file: " . $g . "--\n"; 16 echo "\n-- Set magic quotes runtime to 0: --\n"; 19 echo "\n-- magic quotes runtime after set: " . $g . " --\n"; 21 echo "\n-- Set magic quotes runtime to 1: --\n"; 24 echo "\n-- magic quotes runtime after set: " . $g . " --\n";
|
/PHP-5.4/ext/date/tests/ |
H A D | DateTimeZone_clone_basic3.phpt | 8 echo "*** Testing clone on DateTime objects ***\n"; 10 echo "\n-- Create a DateTimeZone object --\n"; 13 echo "\n-- Add some properties --\n"; 17 echo "\n-- clone it --\n"; 20 echo "\n-- Add some more properties --\n"; 24 echo "\n-- clone it --\n";
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 51 echo "\n"; 93 echo "\n"; 103 . $end->sub($interval)->format($date_format) . "\n"; 109 . $end->sub($interval)->format($date_format) . "\n"; 115 . $end->sub($interval)->format($date_format) . "\n"; 121 . $end->sub($interval)->format($date_format) . "\n"; 127 . $end->sub($interval)->format($date_format) . "\n"; 133 . $end->sub($interval)->format($date_format) . "\n"; 141 echo "\n"; 187 echo "\n"; [all …]
|
/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_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); 39 printf("[005] Expecting int/0, got %s/'%s'\n", gettype($tmp), $tmp); 56 printf("[008] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 68 printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 78 printf("[012] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 88 printf("[014] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 98 printf("[016] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 124 printf("[021] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 134 printf("[023] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | bug_mysql_49406.phpt | 19 printf("[002] [%d] %s\n", $link->errno, $link->error); 67 printf("Field : %d\n", $field_idx); 68 printf("Name : %s\n", $field->name); 69 printf("Orgname : %s\n", $field->orgname); 70 printf("Table : %s\n", $field->table); 71 printf("Orgtable : %s\n", $field->orgtable); 72 printf("Maxlength : %d\n", $field->max_length); 73 printf("Length : %d\n", $field->length); 74 printf("Charsetnr : %d\n", $field->charsetnr); 75 printf("Flags : %d\n", $field->flags); [all …]
|
H A D | mysqli_class_mysqli_stmt_interface.phpt | 17 printf("Parent class:\n"); 20 printf("\nMethods:\n"); 69 printf("ok\n"); 71 printf("\nClass variables:\n"); 75 printf("%s\n", $var); 77 printf("\nObject variables:\n"); 80 printf("%s\n", $var); 82 printf("\nMagic, magic properties:\n"); 95 printf("stmt->errno = '%s'\n", $stmt->errno); 98 printf("stmt->error = '%s'\n", $stmt->error); [all …]
|
H A D | mysqli_prepare.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); 25 printf("[003] Expecting boolean/false, got %s\n", gettype($tmp)); 36 printf("[006][%d] %s\n", mysqli_errno($link), mysqli_error($link)); 41 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 44 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 53 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 101 printf("[022] Expecting 'testvar'/1, got %s/%s. [%d] %s\n", 110 printf("[023] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_get_warnings.phpt | 20 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 printf("[009] Borked object, method next is missing\n"); 69 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 91 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 94 printf("[023] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_get_client_stats_ps.phpt | 21 …printf("BEGINNING: rows_fetched_from_client_ps_unbuffered = %d\n", $stats['rows_fetched_from_clien… 22 …printf("BEGINNING: rows_fetched_from_client_ps_buffered = %d\n", $stats['rows_fetched_from_client_… 23 …printf("BEGINNING: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps… 26 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 33 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 44 printf("[003] Unbuffered rows got increased after buffered PS, expecting %d got %d.\n", 50 printf("[005] Buffered rows should be %d got %d.\n", 57 …printf("BUFFERED: rows_fetched_from_client_ps_cursor = %d\n", $stats['rows_fetched_from_client_ps_… 63 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[007] Unbuffered rows should be %d got %d.\n", [all …]
|
/PHP-5.4/ext/oci8/tests/ |
H A D | bind_char_1.phpt | 53 echo "Test 1.3: Type: AFC: Length: 0\n"; 58 echo "Test 1.4: Type: AFC: Length: strlen\n"; 73 echo "\n\n*** NULL data tests against CHAR ***\n"; 88 echo "Test 2.3: Type: AFC: Length: 0\n"; 109 echo "\n\n*** Non-null Data Tests against VARCHAR2***\n"; 124 echo "Test 3.3: Type: AFC: Length: 0\n"; 145 echo "\n\n*** NULL data tests against VARCHAR2 ***\n"; 160 echo "Test 4.3: Type: AFC: Length: 0\n"; 184 echo " Querying:\n"; 194 echo " :" . $item . ":\n"; [all …]
|
/PHP-5.4/ext/standard/tests/serialize/ |
H A D | 005.phpt | 34 echo "Try __autoload()\n"; 50 echo __METHOD__ . "()\n"; 55 echo __METHOD__ . "()\n"; 102 echo "===O1===\n"; 106 echo "===N1===\n"; 110 echo "===N2===\n"; 114 echo "===NAOld===\n"; 117 echo "===NANew===\n"; 120 echo "===NANew2===\n"; 123 echo "===AutoOld===\n"; [all …]
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | rename_variation5.phpt | 26 echo "\n-- Renaming link to same link name --\n"; 29 echo "\n-- Renaming file to same file name --\n"; 32 echo "\n-- Renaming directory to same directory name --\n"; 35 echo "\n-- Renaming existing link to existing directory name --\n"; 37 echo "\n-- Renaming existing link to existing file name --\n"; 40 echo "\n-- Renaming existing file to existing directory name --\n"; 42 echo "\n-- Renaming existing file to existing link name --\n"; 45 echo "\n-- Renaming existing directory to existing file name --\n"; 49 echo "\n-- Renaming existing directory to existing link name --\n"; 52 echo "Done\n";
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | 008.phpt | 10 echo '$a='.var_export($a,TRUE).";\n"; 11 echo '$b='.var_export($b,TRUE).";\n"; 12 echo '$c='.var_export($c,TRUE).";\n"; 14 echo 'array_intersect($a,$b,$c);'."\n"; 20 echo 'array_intersect($a,$b);'."\n"; 67 echo '$a='.var_export($a,TRUE).";\n"; 68 echo '$b='.var_export($b,TRUE).";\n"; 69 echo '$c='.var_export($c,TRUE).";\n"; 70 echo "\n\nResults:\n\n"; 72 echo 'array_intersect($a,$b,$c);'."\n"; [all …]
|
/PHP-5.4/ext/interbase/tests/ |
H A D | 004.phpt | 26 echo "import blob 1\n"; 35 echo "test blob 1\n"; 45 echo " BLOB 1 fail (1)\n"; 54 echo " BLOB 1 fail (2)\n"; 59 echo "create blob 2\n"; 63 echo "test blob 2\n"; 69 echo " BLOB 2 fail\n"; 74 echo "create blob 3\n"; 105 echo "echo blob 3\n"; 116 echo "fetch blob 3\n"; [all …]
|