/PHP-5.6/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 | bug33578.phpt | 6 echo date('m/d/Y', strtotime('Oct 11')), "\n"; 7 echo date('m/d/Y', strtotime('11 Oct')), "\n"; 8 echo date('m/d/Y', strtotime('11 Oct 2005')), "\n"; 9 echo date('m/d/Y', strtotime('Oct11')), "\n"; 10 echo date('m/d/Y', strtotime('11Oct')), "\n"; 11 echo date('m/d/Y', strtotime('11Oct 2005')), "\n"; 12 echo date('m/d/Y', strtotime('11Oct2005')), "\n";
|
H A D | bug48097.phpt | 9 echo $d->format( DATE_ISO8601 ), "\n"; 10 echo $d->format( 'U' ), "\n\n"; 14 echo $d->format( DATE_ISO8601 ), "\n\n"; 15 echo $d->format( 'U' ), "\n\n";
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | str_rot13_basic.phpt | 9 echo "*** Testing str_rot13() : basic functionality ***\n"; 11 echo "\nBasic tests\n"; 15 echo "\nEnsure numeric characters are left untouched\n"; 17 echo "Strings equal : TEST PASSED\n"; 19 echo "Strings unequal : TEST FAILED\n"; 22 echo "\nEnsure non-alphabetic characters are left untouched\n"; 24 echo "Strings equal : TEST PASSED\n"; 26 echo "Strings unequal : TEST FAILED\n"; 29 echo "\nEnsure strings round trip\n"; 34 echo "Strings equal : TEST PASSED\n"; [all …]
|
H A D | trim_basic.phpt | 11 echo "*** Testing trim() : basic functionality ***\n"; 13 $text = " \t\r\n\0\x0B ---These are a few words--- \t\r\n\0\x0B "; 17 echo "\n-- Trim string with all white space characters --\n"; 20 echo "\n-- Trim non-whitespace from a string --\n"; 23 echo "\n-- Trim some non-white space characters from a string --\n"; 26 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
|
H A D | strtok_basic.phpt | 14 echo "*** Testing strtok() : basic functionality ***\n"; 20 echo "\nThe Input string is:\n\"$str\"\n"; 21 echo "\nThe token string is:\n\"$token\"\n"; 24 echo "\n--- Token 1 ---\n"; 28 echo "\n--- Token $i ---\n"; 32 echo "Done\n";
|
H A D | wordwrap_variation5.phpt | 14 echo "*** Testing wordwrap() : usage variations ***\n"; 21 echo "\n-- Testing wordwrap() with default break value and single space as value --\n"; 22 echo "-- with default break and cut value --\n"; 25 echo "-- with default cut value --\n"; 31 echo "-- with cut value as false --\n"; 36 echo "-- with cut value as true --\n"; 41 echo "Done\n"; 58 string(43) "T e s t i n g w o r d r a p f u n c t i o n" 59 string(64) "T e s t i n g w o r d r a p f u n c t i o n"
|
/PHP-5.6/ext/libxml/tests/ |
H A D | 002.phpt | 20 $xml = explode("\n", $xmlstr); 35 $return = $xml[$error->line - 1] . "\n"; 36 $return .= str_repeat('-', $error->column) . "^\n"; 50 $return .= trim($error->message) . "\n Line: $error->line" . "\n Column: $error->column"; 53 $return .= "\n File: $error->file"; 56 return "$return\n\n--------------------------------------------\n\n"; 60 echo "Done\n";
|
/PHP-5.6/ext/dba/tests/ |
H A D | dba007.phpt | 12 echo "database handler: $handler\n"; 15 if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) { 16 echo "database file created\n"; 18 echo "$db_file does not exist\n"; 20 if (($db_file1=dba_open($db_file1, "n", $handler))!==FALSE) { 21 echo "database file created\n"; 23 echo "$db_file does not exist\n"; 25 if (($db_file2=dba_open($db_file2, "n", $handler))!==FALSE) { 26 echo "database file created\n"; 28 echo "$db_file does not exist\n";
|
H A D | dba_db4_009.phpt | 13 echo "database handler: $handler\n"; 16 if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) { 17 echo "database file created\n"; 19 echo "$db_file does not exist\n"; 21 if (($db_file1=dba_open($db_file1, "n", $handler))!==FALSE) { 22 echo "database file created\n"; 24 echo "$db_file does not exist\n"; 26 if (($db_file2=dba_open($db_file2, "n", $handler))!==FALSE) { 27 echo "database file created\n"; 29 echo "$db_file does not exist\n";
|
/PHP-5.6/ext/standard/tests/class_object/ |
H A D | get_declared_traits_basic_001.phpt | 12 echo "*** Testing get_declared_traits() : basic functionality ***\n"; 17 echo "\n-- Testing get_declared_traits() function with Zero arguments --\n"; 22 echo "Error: $trait is not a valid trait.\n"; 26 echo "\n-- Ensure trait is listed --\n"; 29 echo "\n-- Ensure userspace interfaces are not listed --\n"; 33 echo "\n-- Ensure userspace classes are not listed --\n";
|
/PHP-5.6/Zend/tests/ |
H A D | jump01.phpt | 5 $n = 1; 7 echo "$n: ok\n"; 8 $n++; 9 if ($n <= 3) goto L1;
|
H A D | lsb_002.phpt | 43 echo $testClass->testStaticVar() . "\n"; 44 echo $testClass->testClassConst() . "\n"; 45 echo $testClass->testStaticFunction() . "\n"; 47 echo $childClass1->testStaticVar() . "\n"; 48 echo $childClass1->testClassConst() . "\n"; 49 echo $childClass1->testStaticFunction() . "\n"; 51 echo $childClass2->testStaticVar() . "\n"; 52 echo $childClass2->testClassConst() . "\n"; 53 echo $childClass2->testStaticFunction() . "\n";
|
/PHP-5.6/ext/standard/tests/array/ |
H A D | each_variation6.phpt | 15 echo "*** Testing each() : usage variations ***\n"; 19 echo "\n-- Current position: --\n"; 20 echo key($arr) . " => " . current($arr) . "\n"; 22 echo "\n-- Call to each(): --\n"; 25 echo "\n-- New position: --\n"; 26 echo key($arr) . " => " . current($arr) . "\n";
|
/PHP-5.6/ext/spl/tests/ |
H A D | dllist_001.phpt | 10 echo "Exception: ".$e->getMessage()."\n"; 15 echo "Exception: ".$e->getMessage()."\n"; 21 echo $dll->pop()."\n"; 25 echo $dll->shift()."\n"; 30 echo $dll->top()."\n"; 31 echo $dll->bottom()."\n"; 38 echo count($dll)."\n"; 39 echo $dll->count()."\n"; 47 echo count($dll)."\n";
|
H A D | spl_autoload_001.phpt | 8 echo "===EMPTY===\n"; 18 echo 'Exception: ' . $e->getMessage() . "\n"; 25 echo "===($exts)===\n"; 32 echo 'Exception: ' . $e->getMessage() . "\n"; 43 echo 'Exception: ' . $e->getMessage() . "\n"; 48 echo __METHOD__ . "($classname)\n"; 53 echo __METHOD__ . "($classname)\n"; 56 echo "===SPL_AUTOLOAD()===\n"; 70 echo "===REGISTER===\n"; 87 echo "===LOAD===\n"; [all …]
|
/PHP-5.6/main/ |
H A D | strlcat.c | 74 register size_t n = siz; local 78 while (*d != '\0' && n-- != 0) 81 n = siz - dlen; 83 if (n == 0) 86 if (n != 1) { 88 n--;
|
/PHP-5.6/ext/soap/tests/bugs/ |
H A D | bug30045.phpt | 53 echo "byte\n"; 59 echo "\nshort\n"; 65 echo "\nint\n"; 71 echo "\nlong\n"; 77 echo "\nunsignedByte\n"; 83 echo "\nunsignedShort\n"; 89 echo "\nunsignedInt\n"; 95 echo "\nunsignedLong\n"; 121 echo "\ninteger\n"; 125 echo "long\n"; [all …]
|
/PHP-5.6/ext/mysqli/tests/ |
H A D | mysqli_stmt_get_result_seek.phpt | 17 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 26 printf("[004] Expecting object/mysqli_result got %s/%s, [%d] %s\n", 41 printf("[007] Cannot seek to position %d, [%d] %s\n", 45 printf("[008] Record looks wrong, dumping data\n"); 52 printf("[009] Record looks wrong, dumping data\n"); 59 printf("[010] Not empty, dumping unexpected data\n"); 82 printf("[016] Expecting id = %d for pos %d got %s/%s\n", 101 printf("[017] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 104 printf("[018] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 109 printf("[019] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_execute.phpt | 23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[005] Statement should have failed!\n"); 42 printf("[006] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[008] Expecting boolean/true, got %s/%s. [%d] %s\n", 79 printf("[016] Expecting boolean/true, got %s/%s. [%d] %s\n", 87 printf("[018] Expecting int/1 got %s/%s\n", gettype($id), $id); 90 printf("[019] Expecting boolean/true, got %s/%s. [%d] %s\n", 112 printf("[025] Expecting boolean/true, got %s/%s. [%d] %s\n", [all …]
|
H A D | mysqli_change_user_locks_temporary.phpt | 16 printf("[001] Cannot create second connection handle, [%d] %s\n", 20 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 37 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 printf("[005] There should be some rows in the table test\n"); 46 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 52 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 55 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 61 printf("[011] There should be three rows in the table test\n"); [all …]
|
H A D | mysqli_insert_packet_overflow.phpt | 13 die(sprintf("SKIP [%d] %s\n", mysqli_errno($link), mysqli_error($link))); 16 die(sprintf("SKIP [%d] %s\n", mysqli_errno($link), mysqli_error($link))); 29 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 47 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 59 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 62 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 75 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 90 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 93 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
/PHP-5.6/ext/reflection/tests/ |
H A D | bug43926.phpt | 27 …nstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof A) ? 'true' : 'false') ."\n"); 28 …nstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof C) ? 'true' : 'false') ."\n"); 29 …nstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof D) ? 'true' : 'false') ."\n"); 30 …nstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof E) ? 'true' : 'false') ."\n"); 31 print "-\n"; 32 …nstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof A) ? 'true' : 'false') ."\n"); 33 …nstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof C) ? 'true' : 'false') ."\n"); 34 …nstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof D) ? 'true' : 'false') ."\n"); 35 …nstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof E) ? 'true' : 'false') ."\n"); 36 print "-\n"; [all …]
|
/PHP-5.6/ext/oci8/tests/ |
H A D | fetch_array.phpt | 17 die("oci_parse(insert) failed!\n"); 27 die("oci_commit() failed!\n"); 30 echo "Test 1\n"; 35 die("oci_parse(select) failed!\n"); 45 echo "Test 2\n"; 54 echo "Test 3\n"; 63 echo "Test 4\n"; 72 echo "Test 5\n"; 81 echo "Test 6\n"; 90 echo "Test 7\n"; [all …]
|
/PHP-5.6/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 …]
|