/php-src/ext/standard/tests/file/ |
H A D | touch_basic-win32-mb.phpt | 13 echo "*** Testing touch() : basic functionality ***\n"; 17 echo "\n--- testing touch creates a file ---\n"; 27 echo "\n --- testing touch doesn't alter file contents ---\n"; 37 echo "\n\n --- testing touch alters the correct file metadata ---\n"; 49 echo "stat data differs at $type[$i]\n"; 59 echo "\n --- testing touch using all parameters ---\n"; 63 echo "ctime=".$init_meta['ctime']."\n"; 64 echo "mtime=".$init_meta['mtime']."\n"; 65 echo "atime=".$init_meta['atime']."\n";
|
H A D | touch_basic-win32.phpt | 13 echo "*** Testing touch() : basic functionality ***\n"; 17 echo "\n--- testing touch creates a file ---\n"; 27 echo "\n --- testing touch doesn't alter file contents ---\n"; 37 echo "\n\n --- testing touch alters the correct file metadata ---\n"; 49 echo "stat data differs at $type[$i]\n"; 59 echo "\n --- testing touch using all parameters ---\n"; 63 echo "ctime=".$init_meta['ctime']."\n"; 64 echo "mtime=".$init_meta['mtime']."\n"; 65 echo "atime=".$init_meta['atime']."\n";
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_data_seek.phpt | 14 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 19 echo $exception->getMessage() . "\n"; 23 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 26 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 31 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 34 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 37 printf("[009] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 45 printf("[011] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 53 printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_prepare.phpt | 14 printf("[003] Expecting boolean/false, got %s\n", gettype($tmp)); 25 printf("[006][%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 33 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 38 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 46 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 59 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_class_mysqli_result_interface.phpt | 21 printf("Parent class:\n"); 24 printf("\nMethods:\n"); 66 printf("ok\n"); 69 printf("\nClass variables:\n"); 73 printf("%s\n", $var); 75 printf("\nObject variables:\n"); 78 printf("%s\n", $var); 80 printf("\nMagic, magic properties:\n"); 105 printf("mysqli_result->type = '%s'/%s\n", 112 printf("\nConstructor:\n"); [all …]
|
H A D | mysqli_real_escape_string_sjis.phpt | 10 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n", 24 printf("[004] Expecting \\\\, got %s\n", $tmp); 27 printf("[005] Expecting \", got %s\n", $tmp); 30 printf("[006] Expecting ', got %s\n", $tmp); 32 if ("?p??\\n?p??" !== ($tmp = mysqli_real_escape_string($link, "?p??\n?p??"))) 33 printf("[007] Expecting \\n, got %s\n", $tmp); 36 printf("[008] Expecting \\r, got %s\n", $tmp); 39 printf("[009] Expecting %s, got %s\n", "?p??\\0?p??", $tmp);
|
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_stmt_reset.phpt | 20 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 25 echo $exception->getMessage() . "\n"; 29 printf("[005] Expecting boolean/true, got %s/%s, [%d] %s\n", 33 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 51 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 76 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 79 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
/php-src/ext/gd/tests/ |
H A D | imagefilter.phpt | 31 echo "$filt success\n"; 34 echo "$filt failed\n"; 42 echo "IMG_FILTER_SMOOTH success\n"; 45 echo "IMG_FILTER_SMOOTH failed\n"; 52 echo "IMG_FILTER_COLORIZE success\n"; 55 echo "IMG_FILTER_COLORIZE failed\n"; 62 echo "IMG_FILTER_CONTRAST success\n"; 65 echo "IMG_FILTER_CONTRAST failed\n"; 85 echo "IMG_FILTER_PIXELATE failed\n"; 92 echo "IMG_FILTER_SCATTER success\n"; [all …]
|
/php-src/ext/spl/tests/ |
H A D | dllist_002.phpt | 14 echo "$k=>$v\n"; 17 echo "->$k2=>$v2\n"; 21 echo "# deleted\n"; 24 echo "$k=>$v\n"; 28 echo "# while popping\n"; 31 echo "$k=>$v\n"; 32 echo "popped ".$dll2->pop()."\n";
|
/php-src/Zend/tests/fibers/ |
H A D | unfinished-fiber-with-suspend-in-finally.phpt | 9 echo "fiber\n"; 12 echo "inner finally\n"; 14 echo "after await\n"; 17 echo "exit exception caught!\n"; 19 echo "outer finally\n"; 22 echo "end of fiber should not be reached\n"; 29 echo "done\n";
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionParameter_002.phpt | 14 $firstParam = "Hello\n"; 22 echo "Parameters from staticMethod:\n\n"; 26 echo "This param is passed by reference\n"; 28 echo "This param is not passed by reference\n"; 30 echo "\n"; 37 echo "Parameters from instanceMethod:\n\n"; 41 echo "This param is passed by reference\n"; 43 echo "This param is not passed by reference\n"; 45 echo "\n"; 48 echo "done\n";
|
H A D | ReflectionProperty_constructor_variation1.phpt | 30 echo "--> Reflect inherited private from global scope:\n"; 38 echo "\n\n--> Reflect inherited private from declaring scope:\n"; 41 echo "\n\n--> Reflect inherited private from declaring scope via subclass:\n"; 44 echo "\n\n--> Reflect inherited private from subclass:\n";
|
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-src/ext/mbstring/tests/ |
H A D | uuencode_encoding.phpt | 24 /* mbstring's uuencode requires the user to strip off the terminating "`\nend\n" */ 26 testConversion("begin 0644 filename\n#0V%T\n", 'Cat'); 27 testConversion("begin 0644 filename\n::'1T<#HO+W=W=RYW:6MI<&5D:6\$N;W)G#0H`\n", "http://www.wikiped… 28 testConversion("begin 0644 filename\n#`0(#\n", "\x01\x02\x03"); 29 testConversion("begin 0644 filename\n$`0(#\"@``\n", "\x01\x02\x03\n"); 48 echo "Done!\n";
|
H A D | mb_ereg_match_basic.phpt | 18 echo "*** Testing mb_ereg_match() : basic functionality ***\n"; 23 echo "\n-- ASCII string 1 --\n"; 27 echo "\n-- ASCII string 2 --\n"; 30 echo "\n-- Multibyte string 1 --\n"; 34 echo "\n-- Multibyte string 2 --\n";
|
/php-src/ext/ffi/tests/ |
H A D | 013.phpt | 19 echo get_class($e) . ": " . $e->getMessage()."\n"; 25 echo get_class($e) . ": " . $e->getMessage()."\n"; 29 echo "ok\n"; 31 echo get_class($e) . ": " . $e->getMessage()."\n"; 35 echo "ok\n"; 37 echo get_class($e) . ": " . $e->getMessage()."\n"; 41 echo "ok\n"; 43 echo get_class($e) . ": " . $e->getMessage()."\n"; 47 echo "ok\n"; 49 echo get_class($e) . ": " . $e->getMessage()."\n"; [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | is_simh.c | 96 uint32_t n; in getlen() local 97 memcpy(&n, *uc, sizeof(n)); in getlen() 98 *uc += sizeof(n); in getlen() 100 n = swap4(n); in getlen() 101 if (n == 0xffffffff) /* check for End of Medium */ in getlen() 102 return n; in getlen() 103 n &= 0x00ffffff; /* keep only the record len */ in getlen() 104 if (n & 1) in getlen() 105 n++; in getlen() 106 return n; in getlen()
|
/php-src/ext/intl/tests/ |
H A D | calendar_setTimeZone_error.phpt | 16 echo "error: $errno, $errstr\n"; 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 34 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/php-src/tests/classes/ |
H A D | __set__get_001.phpt | 6 public $n; 10 echo "Getting [$nm]\n"; 14 echo "Returning: $r\n"; 18 echo "Nothing!\n"; 23 echo "Setting [$nm] to $val\n"; 27 echo "OK!\n"; 30 echo "Not OK!\n"; 38 $foo->n = 1; 59 ["n"]=>
|
/php-src/ext/openssl/tests/ |
H A D | openssl_cms_encrypt_der.phpt | 20 print "DER decrypt error\n"; 21 print "recipient:\n"; 23 print "input:\n"; 26 print "outfile base64:\n" . base64_encode($der) . "\n--------\n"; 28 print $errstr . "\n"; 35 echo "true\n"; 39 echo "true\n";
|
/php-src/ext/standard/tests/general_functions/ |
H A D | isset_basic2.phpt | 7 echo "*** Testing isset() : basic functionality ***\n"; 13 $n = NULL; 15 echo "Test multiple scalar variables in a group\n"; 17 var_dump(isset($i, $f, $s, $b, $n)); 19 echo "Unset a few\n"; 22 echo "Test again\n"; 25 echo "\n\nArray test:\n"; 30 echo "..now set\n";
|
/php-src/ext/ftp/tests/ |
H A D | 007.phpt | 16 echo $e->getMessage(), "\n"; 21 echo $e->getMessage(), "\n"; 26 echo $e->getMessage(), "\n"; 31 echo $e->getMessage(), "\n"; 36 echo $e->getMessage(), "\n"; 41 echo $e->getMessage(), "\n"; 46 echo $e->getMessage(), "\n"; 51 echo $e->getMessage(), "\n"; 56 echo $e->getMessage(), "\n"; 61 echo $e->getMessage(), "\n"; [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_slice_variation10.phpt | 9 echo "*** Testing array_slice() : usage variations ***\n"; 13 echo "\n-- Call array_slice() --\n"; 16 echo "-- Position of Internal Pointer in Result: --\n"; 17 echo key($result) . " => " . current($result) . "\n"; 18 echo "\n-- Position of Internal Pointer in Original Array: --\n"; 19 echo key($input) . " => " . current ($input) . "\n";
|
H A D | array_values_variation5.phpt | 9 echo "*** Testing array_values() : usage variations ***\n"; 13 echo "\n-- Call array_values() --\n"; 16 echo "-- Position of Internal Pointer in Result: --\n"; 17 echo key($result) . " => " . current($result) . "\n"; 18 echo "\n-- Position of Internal Pointer in Original Array: --\n"; 19 echo key($input) . " => " . current ($input) . "\n";
|