/php-src/tests/lang/ |
H A D | syntax_errors.phpt | 17 "if(1 > 2) {\n echo '1';", /* unclosed (, spans multiple lines */ 19 "{\n echo '1';\n echo '2';", /* unclosed {, spans multiple lines */ 20 "(1 +\n 2 +\n 3))", /* too many ), spans multiple lines */ 22 "if (1)\n {\n }}", /* too many }, spans multiple lines */ 23 "(1 +\n\n 2])", /* ] doesn't match (, spans multiple lines */ 25 "if(1) {\n echo 'a';\n)}", /* ) doesn't match {, spans multiple lines */ 32 echo $e->getMessage(), "\n"; 36 echo "==DONE==\n";
|
/php-src/ext/intl/tests/ |
H A D | calendar_isEquivalentTo_error.phpt | 14 echo "error: $errno, $errstr\n"; 21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 31 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 37 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 42 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 47 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/php-src/ext/phar/tests/ |
H A D | phar_oo_008.phpt | 18 echo "===1===\n"; 21 echo "$k=>$v\n"; 26 echo "===2===\n"; 29 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"; 77 echo "===6===\n"; [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_fill_keys_variation4.phpt | 7 echo "*** Testing array_fill_keys() : parameter variations ***\n"; 23 echo "\n-- Testing array_fill_keys() function with float --\n"; 26 echo "\n-- Testing array_fill_keys() function with null --\n"; 29 echo "\n-- Testing array_fill_keys() function with object --\n"; 32 echo "\n-- Testing array_fill_keys() function with boolean --\n"; 35 echo "\n-- Testing array_fill_keys() function with resource --\n"; 38 echo "\n-- Testing array_fill_keys() function with unset var --\n";
|
/php-src/tests/classes/ |
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-src/ext/enchant/tests/ |
H A D | broker_free_dict.phpt | 9 if(!is_object(enchant_broker_init())) {die("skip, resource dont load\n");} 10 …ker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");} 18 echo("OK\n"); 22 echo("OK\n"); 29 echo("OK\n"); 32 echo("dict broker free has failed\n"); 36 echo("dict add to personal failed\n"); 40 echo("broker request dict failed\n"); 44 echo("broker is not a resource; failed;\n"); 46 echo "OK\n";
|
/php-src/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-src/ext/standard/tests/class_object/ |
H A D | get_declared_traits_basic_001.phpt | 5 echo "*** Testing get_declared_traits() : basic functionality ***\n"; 10 echo "\n-- Testing get_declared_traits() function with Zero arguments --\n"; 15 echo "Error: $trait is not a valid trait.\n"; 19 echo "\n-- Ensure trait is listed --\n"; 22 echo "\n-- Ensure userspace interfaces are not listed --\n"; 26 echo "\n-- Ensure userspace classes are not listed --\n";
|
/php-src/ext/mbstring/tests/ |
H A D | mb_convert_variables.phpt | 23 echo "== SCALAR TEST ==\n"; 26 print("$encoding\n"); // SJIS 31 print("$encoding\n"); // JIS 36 print("$encoding\n"); // EUC-JP 41 print("$encoding\n"); // EUC-JP 49 print("$encoding\n"); // EUC-JP 53 echo "== ARRAY TEST ==\n"; 57 print("$encoding\n"); // EUC-JP 63 print("$encoding\n"); // EUC-JP 67 echo "== OBJECT TEST ==\n"; [all …]
|
/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_ucs4.c | 162 int n, endian; in mbfl_filt_conv_ucs4_wchar() local 168 n = c & 0xff; in mbfl_filt_conv_ucs4_wchar() 172 filter->cache = n; in mbfl_filt_conv_ucs4_wchar() 181 filter->cache |= n; in mbfl_filt_conv_ucs4_wchar() 197 n = c & 0xff; in mbfl_filt_conv_ucs4_wchar() 201 if ((n & 0xffff) == 0 && ((n >> 16) & 0xffff) == 0xfffe) { in mbfl_filt_conv_ucs4_wchar() 221 int n; in mbfl_filt_conv_ucs4be_wchar() local 226 filter->cache = n; in mbfl_filt_conv_ucs4be_wchar() 265 int n; in mbfl_filt_conv_ucs4le_wchar() local 269 n = (c & 0xff); in mbfl_filt_conv_ucs4le_wchar() [all …]
|
H A D | mbfilter_base64.c | 93 int n; in mbfl_filt_conv_base64enc() local 96 if (n == 0) { in mbfl_filt_conv_base64enc() 105 if (n > 72) { in mbfl_filt_conv_base64enc() 159 int n; in mbfl_filt_conv_base64dec() local 165 n = 0; in mbfl_filt_conv_base64dec() 167 n = c - 65; in mbfl_filt_conv_base64dec() 169 n = c - 71; in mbfl_filt_conv_base64dec() 171 n = c + 4; in mbfl_filt_conv_base64dec() 173 n = 62; in mbfl_filt_conv_base64dec() 175 n = 63; in mbfl_filt_conv_base64dec() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_affected_rows.phpt | 18 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n", 22 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 25 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 31 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 42 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 55 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 61 printf("[019] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp); 87 printf("[026] Expecting boolean/true got %s/%s\n", [all …]
|
H A D | mysqli_autocommit_oo.phpt | 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 34 printf("[005] Cannot turn off autocommit\n"); 40 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 44 printf("[008] Cannot turn on autocommit\n"); 47 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 54 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 57 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 60 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 80 printf("[018] Cannot turn on autocommit\n"); [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | md5raw.phpt | 5 echo bin2hex(md5("", TRUE))."\n"; 6 echo bin2hex(md5("a", TRUE))."\n"; 7 echo bin2hex(md5("abc", TRUE))."\n"; 8 echo bin2hex(md5("message digest", TRUE))."\n"; 9 echo bin2hex(md5("abcdefghijklmnopqrstuvwxyz", TRUE))."\n"; 10 echo bin2hex(md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", TRUE))."\n"; 11 …d5("12345678901234567890123456789012345678901234567890123456789012345678901234567890", TRUE))."\n";
|
H A D | trim_basic.phpt | 6 echo "*** Testing trim() : basic functionality ***\n"; 8 $text = " \t\r\n\0\x0B ---These are a few words--- \t\r\n\0\x0B "; 12 echo "\n-- Trim string with all white space characters --\n"; 15 echo "\n-- Trim non-whitespace from a string --\n"; 18 echo "\n-- Trim some non-white space characters from a string --\n"; 21 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
|
H A D | sha1_file.phpt | 7 echo "*** Testing sha1_file() : basic functionality ***\n"; 19 $content = "Add this to the file\n"; 32 echo "\n*** Testing for error conditions ***\n"; 34 echo "\n-- No filename --\n"; 41 echo "\n-- invalid filename --\n"; 44 echo "\n-- Scalar value as filename --\n"; 47 echo "\n-- NULL as filename --\n"; 54 echo "\n-- Hexadecimal Output for Empty file as Argument --\n"; 57 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 60 echo "\n-- Hexadecimal Output for a valid file with some contents --\n"; [all …]
|
H A D | ltrim_basic.phpt | 6 echo "*** Testing ltrim() : basic functionality ***\n"; 8 $text = " \t\r\n\0\x0B ---These are a few words--- "; 13 echo "\n-- Trim string with all white space characters --\n"; 16 echo "\n-- Trim non-whitespace from a string --\n"; 19 echo "\n-- Trim some non-white space characters from a string --\n"; 22 echo "\n-- Trim some non-white space characters from a string suing a character range --\n"; 26 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
|
H A D | rtrim_basic.phpt | 6 echo "*** Testing rtrim() : basic functionality ***\n"; 8 $text = "---These are a few words--- \t\r\n\0\x0B "; 15 echo "\n-- Trim string with all white space characters --\n"; 18 echo "\n-- Trim non-whitespace from a string --\n"; 21 echo "\n-- Trim some non-white space characters from a string --\n"; 24 echo "\n-- Trim some non-white space characters from a string using a character range --\n"; 27 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
|
/php-src/ext/pdo_firebird/tests/ |
H A D | transaction_access_mode.phpt | 45 echo "\n"; 56 echo "writable\n"; 59 echo "OK: writable\n"; 61 echo "NG: writable\n"; 67 echo "\n"; 69 echo "readonly\n"; 72 echo "OK: readonly\n"; 84 echo "\n"; 97 echo "\n"; 106 echo "\n"; [all …]
|
/php-src/ext/spl/tests/ |
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 | 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 | fixedarray_002.phpt | 13 public function offsetGet($n): mixed { 14 echo "A::offsetGet\n"; 15 return parent::offsetGet($n); 17 public function offsetSet($n, $v): void { 18 echo "A::offsetSet\n"; 19 parent::offsetSet($n, $v); 21 public function offsetUnset($n): void { 22 echo "A::offsetUnset\n"; 23 parent::offsetUnset($n); 26 echo "A::offsetExists\n"; [all …]
|
/php-src/ext/standard/tests/dir/ |
H A D | chdir_variation2-win32-mb.phpt | 15 echo "*** Testing chdir() : usage variations ***\n"; 30 echo "\n-- \$directory = './私はガラスを食べられますlevel_one': --\n"; 35 echo "\n-- \$directory = '私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two': --\n"; 40 echo "\n-- \$directory = '..': --\n"; 44 echo "\n-- \$directory = '私はガラスを食べられますlevel_two', '.': --\n"; 49 echo "\n-- \$directory = '../': --\n"; 53 echo "\n-- \$directory = './': --\n"; 58 echo "\n-- \$directory = '../../'私はガラスを食べられますlevel_one': --\n";
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_intmodedep.h | 109 (unsigned int)(((a)[n] << 8) | (a)[(n)+1]) 118 (unsigned int)(((a)[n] << 16) | ((a)[(n)+1] << 8) | (a)[(n)+2]) 128 (unsigned int)(((a)[n] << 24) | ((a)[(n)+1] << 16) | ((a)[(n)+2] << 8) | (a)[(n)+3]) 146 (a[n]) 156 (unsigned int)(((a)[n] << 16) | (a)[(n)+1]) 172 (a[n]) 194 #define GET2(a,n) (unsigned int)(((a)[n] << 8) | (a)[(n)+1]) argument 195 #define PUT2(a,n,d) a[n] = (d) >> 8, a[(n)+1] = (d) & 255 argument 199 #define GET2(a,n) a[n] argument 200 #define PUT2(a,n,d) a[n] = d argument [all …]
|
/php-src/Zend/tests/ |
H A D | foreach_003.phpt | 6 private $n = 0; 21 function rewind(): void {$this->trap(__FUNCTION__); $this->n = 0;} 23 function key(): mixed {$this->trap(__FUNCTION__); return $this->n;} 24 function current(): mixed {$this->trap(__FUNCTION__); return $this->n;} 25 function next(): void {$this->trap(__FUNCTION__); $this->n++;} 32 foreach ($obj as $key => $val) echo "$val\n"; 34 echo $e->getMessage() . "\n"; 40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n"; 42 echo $e->getMessage() . "\n"; 47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n"; [all …]
|