/PHP-5.4/Zend/tests/ |
H A D | closure_043.phpt | 20 echo "Before binding", "\n"; 21 $staticUnscoped(); echo "\n"; 22 $staticScoped(); echo "\n"; 24 echo "After binding, null scope, no instance", "\n"; 26 $d = $staticScoped->bindTo(null, null); $d(); echo "\n"; 28 echo "After binding, null scope, with instance", "\n"; 32 echo "After binding, with scope, no instance", "\n"; 34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n"; 36 echo "After binding, with scope, with instance", "\n"; 38 $d = $staticScoped->bindTo(new A, 'A'); $d(); echo "\n"; [all …]
|
H A D | lsb_001.phpt | 38 echo TestClass::testStaticVar() . "\n"; 39 echo TestClass::testClassConst() . "\n"; 40 echo TestClass::testStaticFunction() . "\n"; 42 echo ChildClass1::testStaticVar() . "\n"; 43 echo ChildClass1::testClassConst() . "\n"; 44 echo ChildClass1::testStaticFunction() . "\n"; 46 echo ChildClass2::testStaticVar() . "\n"; 47 echo ChildClass2::testClassConst() . "\n"; 48 echo ChildClass2::testStaticFunction() . "\n";
|
/PHP-5.4/ext/dom/tests/ |
H A D | DOMDocument_strictErrorChecking_variation.phpt | 12 echo "Load document\n"; 16 echo "See if strictErrorChecking is on\n"; 19 echo "Should throw DOMException when strictErrorChecking is on\n"; 23 echo "GOOD. DOMException thrown\n"; 24 echo $e->getMessage() ."\n"; 26 echo "OOPS. Other exception thrown\n"; 30 echo "Turn strictErrorChecking off\n"; 33 echo "See if strictErrorChecking is off\n"; 40 echo "OOPS. DOMException thrown\n"; 41 echo $e->getMessage() ."\n"; [all …]
|
/PHP-5.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_byte2.c | 93 int n; in mbfl_filt_conv_byte2be_wchar() local 97 n = (c & 0xff) << 8; in mbfl_filt_conv_byte2be_wchar() 98 filter->cache = n; in mbfl_filt_conv_byte2be_wchar() 101 n = (c & 0xff) | filter->cache; in mbfl_filt_conv_byte2be_wchar() 102 CK((*filter->output_function)(n, filter->data)); in mbfl_filt_conv_byte2be_wchar() 116 int n; in mbfl_filt_conv_byte2le_wchar() local 120 n = c & 0xff; in mbfl_filt_conv_byte2le_wchar() 121 filter->cache = n; in mbfl_filt_conv_byte2le_wchar() 124 n = ((c & 0xff) << 8) | filter->cache; in mbfl_filt_conv_byte2le_wchar() 125 CK((*filter->output_function)(n, filter->data)); in mbfl_filt_conv_byte2le_wchar()
|
/PHP-5.4/tests/lang/ |
H A D | 020.phpt | 11 echo "In branch 1\n"; 14 echo "This doesn't work... :(\n"; 17 echo "This works!\n"; 20 echo "Hmmm, no worki\n"; 23 echo "Inner default...\n"; 27 echo "blah=$blah\n"; 32 echo "In branch 2\n"; 35 echo "In branch \$i\n"; 38 echo "In branch 4\n"; 41 echo "Hi, I'm default\n";
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | trim.phpt | 10 'ABC' === trim(" \\0\\t\\nABC \\0\\t\\n") 11 "ABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n") 12 " \\0\\t\\nABC" === rtrim(" \\0\\t\\nABC \\0\\t\\n") 13 " \\0\\t\\nABC \\0\\t\\n" === trim(" \\0\\t\\nABC \\0\\t\\n",'') 14 " \\0\\t\\nABC \\0\\t\\n" === ltrim(" \\0\\t\\nABC \\0\\t\\n",'') 15 " \\0\\t\\nABC \\0\\t\\n" === rtrim(" \\0\\t\\nABC \\0\\t\\n",'')
|
H A D | substr_count_variation_002.phpt | 6 echo "\n*** Testing possible variations ***\n"; 7 echo "\n-- complex strings containing other than 7-bit chars --\n"; 13 echo "\n-- heredoc string --\n"; 27 echo "\n-- heredoc null string --\n"; 34 echo "Done\n";
|
H A D | bug20261.phpt | 9 echo "1: ".$first."\n"; 10 echo "2: ".$second."\n"; 11 echo "3: ".$rot."\n"; 15 echo "1: ".$first."\n"; 16 echo "2: ".$second."\n"; 17 echo "3: ".$rot."\n";
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_strimwidth.phpt | 17 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n"; 18 print "2: ". mb_strimwidth($euc_jp, 0, 100,'...','EUC-JP') . "\n"; 19 print "3: ". mb_strimwidth($euc_jp, 15, 100,'...','EUC-JP') . "\n"; 22 ($str === FALSE) ? print "4 OK\n" : print "NG: $str\n"; 25 ($str === FALSE) ? print "5 OK\n" : print "NG: $str\n"; 28 ($str === FALSE) ? print "6 OK\n" : print "NG: $str\n";
|
H A D | mb_strwidth.phpt | 15 print "1: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 18 print "2: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 19 print "3: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 21 print "4: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 24 ($str === "") ? print "5 OK\n" : print "NG: $str\n"; 27 ($str !== "") ? print "6 OK: $str\n" : print "NG: $str\n";
|
H A D | mb_convert_encoding_basic.phpt | 27 echo "\n-- Convert to JIS --\n"; 28 echo "JIS encoded string in base64:\n"; 30 echo "Converted Strings:\n"; 35 echo "\n-- Convert to EUC-JP --\n"; 36 echo "EUC-JP encoded string in base64:\n"; 38 echo "Converted Strings:\n"; 43 echo "\n-- Convert to SJIS --\n"; 44 echo "SJIS encoded string in base64:\n"; 46 echo "Converted Strings:\n"; 51 echo "\n-- Convert to UTF-8 --\n"; [all …]
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | key_basic.phpt | 14 echo "*** Testing key() : basic functionality ***\n"; 17 echo "\n-- Initial Position: --\n"; 20 echo "\n-- Next Position: --\n"; 24 echo "\n-- End Position: --\n"; 28 echo "\n-- Past end of the array --\n";
|
/PHP-5.4/tests/classes/ |
H A D | iterators_004.phpt | 8 echo "1st try\n"; 15 echo "object:$w\n"; 18 echo "2nd try\n"; 26 echo __METHOD__ . "\n"; 30 echo __METHOD__ . "\n"; 34 echo __METHOD__ . "\n"; 38 echo __METHOD__ . "\n"; 51 echo "object:$v=>$w\n"; 54 print "Done\n";
|
/PHP-5.4/ext/gd/tests/ |
H A D | types.phpt | 5 if (!function_exists('imagetypes')) die("skip gd extension not available\n"); 12 echo "gif failed\n"; 16 echo "jpeg failed\n"; 20 echo "png failed\n"; 24 echo "wbmp failed\n"; 28 echo "xom failed\n"; 30 echo "ok\n";
|
/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_execute_stored_proc_next_result.phpt | 25 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 45 printf("[009] Results seem wrong, got %s, [%d] %s\n", 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_field_count.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); 26 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[004] Prepare should fail for an empty statement\n"); 31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 41 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 52 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 56 printf("[014] expected error - got ok\n"); [all …]
|
H A D | mysqli_stmt_reset.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); 31 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] Expecting boolean/true, got %s/%s, [%d] %s\n", 56 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 59 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 62 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 84 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 87 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_info.phpt | 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 55 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 69 if (!fwrite($fp, b"100;'a';\n") || 70 !fwrite($fp, b"101;'b';\n") || [all …]
|
H A D | mysqli_stmt_close.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] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 35 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[007] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 41 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 57 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 63 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_data_seek.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] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 34 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 45 printf("[009] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 53 printf("[011] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 61 printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 69 printf("[015] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_store_result.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 NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[009] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 49 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 68 printf("[015] unbuffered '%s'/%s, buffered '%s'/%s\n", 71 printf("[016] unbuffered '%s'/%s, buffered '%s'/%s\n", [all …]
|
H A D | mysqli_change_user.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); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[008] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 42 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 57 printf("[012] Cannot set test variable\n"); 60 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | opendir_variation4.phpt | 14 echo "*** Testing opendir() : usage variation ***\n"; 28 echo "\n-- \$path = './level_one': --\n"; 33 echo "\n-- \$path = 'level_one/level_two': --\n"; 38 echo "\n-- \$path = '..': --\n"; 42 echo "\n-- \$path = 'level_two', '.': --\n"; 47 echo "\n-- \$path = '../': --\n"; 51 echo "\n-- \$path = './': --\n"; 56 echo "\n-- \$path = '../../'level_one': --\n";
|
/PHP-5.4/ext/phar/tests/tar/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 31 echo "============================================================================\n"; 32 echo "============================================================================\n"; 38 echo $e->getMessage(). "\n"; 50 echo $e->getMessage(). "\n"; [all …]
|
/PHP-5.4/ext/phar/tests/zip/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 31 echo "============================================================================\n"; 32 echo "============================================================================\n"; 38 echo $e->getMessage(). "\n"; 50 echo $e->getMessage(). "\n"; [all …]
|