/PHP-5.4/ext/reflection/tests/ |
H A D | 009.phpt | 16 echo "--getName--\n"; 18 echo "--isInternal--\n"; 20 echo "--isUserDefined--\n"; 22 echo "--getFilename--\n"; 24 echo "--getStartline--\n"; 26 echo "--getEndline--\n"; 28 echo "--getDocComment--\n"; 32 echo "--invoke--\n"; 34 echo "--invokeArgs--\n"; 38 echo "--getParameters--\n"; [all …]
|
H A D | 025.phpt | 18 echo "--getName--\n"; 20 echo "--isInternal--\n"; 22 echo "--isUserDefined--\n"; 24 echo "--getFilename--\n"; 26 echo "--getStartline--\n"; 28 echo "--getEndline--\n"; 30 echo "--getDocComment--\n"; 34 echo "--invoke--\n"; 36 echo "--invokeArgs--\n"; 40 echo "--getParameters--\n"; [all …]
|
/PHP-5.4/ext/date/tests/ |
H A D | mktime-1.phpt | 11 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n"; 12 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n"; 13 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n"; 14 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n"; 15 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n"; 16 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n"; 20 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n"; 21 echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n"; 23 echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,0))."\n"; 26 echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n"; [all …]
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | isset_basic1.phpt | 11 echo "*** Testing isset() : basic functionality ***\n"; 22 echo "Integer test: " . (isset($i) ? "YES": "NO") . "\n"; 23 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; 24 echo "String test: " . (isset($s) ? "YES": "NO") . "\n"; 25 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n"; 26 echo "Boolean test: " . (isset($b) ? "YES": "NO") . "\n"; 27 echo "Null test: " . (isset($n) ? "YES": "NO") . "\n"; 31 echo "\n\nUnset the variables\n\n"; 35 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; 37 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n"; [all …]
|
H A D | 009.phpt | 9 echo test(""); 10 echo test("a"); 11 echo test("abc"); 12 echo test("message digest"); 13 echo test("abcdefghijklmnopqrstuvwxyz"); 14 echo test("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); 15 echo test("12345678901234567890123456789012345678901234567890123456789012345678901234567890");
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_convert_encoding_stateful.phpt | 10 echo "ISO-2022-JP empty segment\n"; 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 19 echo "ISO-2022-KR empty segment\n"; 21 echo "HZ empty segment\n"; [all …]
|
/PHP-5.4/ext/spl/tests/ |
H A D | iterator_028.phpt | 10 echo "===?===\n"; 12 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 14 echo "===2===\n"; 17 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 19 echo "===X===\n"; 22 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 24 echo "===3===\n"; 27 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 29 echo "===5===\n"; 34 echo "===0===\n"; [all …]
|
H A D | iterator_020.phpt | 6 echo "===Empty===\n"; 12 echo "$key=>$val\n"; 15 echo "===Append===\n"; 21 echo "$key=>$val\n"; 24 echo "===Rewind===\n"; 28 echo "$key=>$val\n"; 31 echo "===Append===\n"; 37 echo "$key=>$val\n"; 40 echo "===Rewind===\n"; 44 echo "$key=>$val\n";
|
H A D | iterator_013.phpt | 6 echo "===Empty===\n"; 12 echo "$key=>$val\n"; 15 echo "===Append===\n"; 21 echo "$key=>$val\n"; 24 echo "===Rewind===\n"; 28 echo "$key=>$val\n"; 31 echo "===Append===\n"; 37 echo "$key=>$val\n"; 40 echo "===Rewind===\n"; 44 echo "$key=>$val\n";
|
/PHP-5.4/tests/lang/ |
H A D | static_basic_001.phpt | 6 echo "\nSame variable used as static and non static.\n"; 8 echo "---------\n"; 10 echo "$a\n"; 12 echo "$a\n"; 24 echo "Unitialised : $a\n"; 25 echo "Initialised to 10: $b\n"; 26 echo "Initialised to 20: $c\n"; 27 echo "Unitialised : $d\n"; 28 echo "Initialised to 30: $e\n"; 40 echo "\nUsing static keyword at global scope\n"; [all …]
|
H A D | bug24951.phpt | 12 echo "Hello from t1 1 "; 13 echo "Hello from t1 2 "; 19 echo "Hello from t2 1 "; 21 echo "Hello from t2 2 "; 27 echo "Hello from t3 1 "; 29 echo "Hello from t3 2 "; 33 t1(); echo "\n"; 34 t2(); echo "\n"; 35 t3(); echo "\n";
|
/PHP-5.4/ext/oci8/tests/ |
H A D | lob_031.phpt | 38 echo " 1. ".$row[0]->tell(). "\n"; 41 echo " 2. ".$row[0]->tell(). "\n"; 44 echo " 3. ".$row[0]->tell(). "\n"; 47 echo " 4. ".$row[0]->tell(). "\n"; 50 echo " 5. ".$row[0]->tell(). "\n"; 54 echo " 6. ".$row[0]->tell(). "\n"; 57 echo " 8. ".$row[0]->tell(). "\n"; 61 echo " 9. ".$row[0]->tell(). "\n"; 64 echo "10. ".$row[0]->tell(). "\n"; 67 echo "11. ".$row[0]->tell(). "\n"; [all …]
|
/PHP-5.4/ext/gd/tests/ |
H A D | jpg2gd.phpt | 17 echo "JPEG to GD1 conversion: "; 18 echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 19 echo "\n"; 21 echo "JPEG to GD2 conversion: "; 22 echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 23 echo "\n"; 25 echo "GD1 to JPEG conversion: "; 26 echo imagejpeg(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed'; 27 echo "\n"; 29 echo "GD2 to JPEG conversion: "; [all …]
|
H A D | png2gd.phpt | 17 echo "PNG to GD1 conversion: "; 18 echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 19 echo "\n"; 21 echo "PNG to GD2 conversion: "; 22 echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 23 echo "\n"; 25 echo "GD1 to PNG conversion: "; 26 echo imagepng(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed'; 27 echo "\n"; 29 echo "GD2 to PNG conversion: "; [all …]
|
/PHP-5.4/ext/ereg/tests/ |
H A D | 005.phpt | 5 echo ereg(".*(is).*(is).*",$a,$registers); 6 echo "\n"; 7 echo $registers[0]; 8 echo "\n"; 9 echo $registers[1]; 10 echo "\n"; 11 echo $registers[2]; 12 echo "\n";
|
/PHP-5.4/Zend/tests/ |
H A D | closure_041.phpt | 11 echo "scoped to A: "; var_dump(isset(A::$priv)); 12 echo "bound: ", isset($this)?get_class($this):"no"; 16 echo "scoped to A: "; var_dump(isset(A::$priv)); 24 echo "scoped to A: "; var_dump(isset(A::$priv)); 41 echo "Before binding", "\n"; 42 $staticUnscoped(); echo "\n"; 43 $nonstaticUnscoped(); echo "\n"; 44 $staticScoped(); echo "\n"; 45 $nonstaticScoped(); echo "\n"; 47 echo "After binding, no instance", "\n"; [all …]
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | money_format_basic1.phpt | 29 echo gettype(money_format('%14#8.2n', $value))."\n"; 33 echo "Format again but with ( for negative values\n"; 34 echo gettype(money_format('%(14#8.2n', $value))."\n"; 38 echo "Format with 0 for padding character\n"; 39 echo gettype(money_format('%=014#8.2n', $value))."\n"; 43 echo "Format again with * for padding character\n"; 44 echo gettype(money_format('%=*14#8.2n', $value))."\n"; 48 echo "Format again but disable grouping character\n"; 49 echo gettype(money_format('%=*^14#8.2n', $value))."\n"; 53 echo "Format again suppress currency symbol\n"; [all …]
|
H A D | md5.phpt | 5 echo md5("")."\n"; 6 echo md5("a")."\n"; 7 echo md5("abc")."\n"; 8 echo md5("message digest")."\n"; 9 echo md5("abcdefghijklmnopqrstuvwxyz")."\n"; 10 echo md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")."\n"; 11 echo md5("12345678901234567890123456789012345678901234567890123456789012345678901234567890")."\n";
|
H A D | strip_tags_basic1.phpt | 18 "<?php echo hello ?>", 19 '<?php echo hello ?>', 20 "<? echo hello ?>", 21 '<? echo hello ?>', 22 "<% echo hello %>", 23 '<% echo hello %>', 24 "<script language=\"PHP\"> echo hello </script>", 38 echo "-- Iteration $iteration --\n"; 43 echo "Done"; 64 string(12) " echo hello " [all …]
|
/PHP-5.4/ext/zip/tests/ |
H A D | oo_extract.phpt | 15 echo "open failed.\n"; 21 echo "failed. mkdir\n"; 25 echo "failed. mkdir foobar\n"; 29 echo "failed. extract foobar/baz\n"; 35 echo "failed. bar file\n"; 37 echo file_get_contents($dirname . '__oo_extract_tmp/bar') . "\n"; 41 echo "failed. foo file\n"; 43 echo file_get_contents($dirname . '__oo_extract_tmp/foo') . "\n"; 50 echo "failed. extract bar file\n"; 58 echo "failed. extract bar file\n"; [all …]
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | sizeof_basic1.phpt | 23 echo "default mode: "; 25 echo "\n"; 26 echo "COUNT_NORMAL mode: "; 28 echo "\n"; 29 echo "COUNT_RECURSIVE mode: "; 31 echo "\n"; 34 echo "default mode: "; 36 echo "\n"; 37 echo "COUNT_NORMAL mode: "; 39 echo "\n"; [all …]
|
/PHP-5.4/ext/sysvsem/tests/ |
H A D | sysv.phpt | 15 echo "Start.\n"; 19 echo "Fail to get semaphore"; 22 echo "Got semaphore $sem_id.\n"; 30 echo "Success acquire semaphore $sem_id.\n"; 34 echo "Fail to attach shared memory.\n"; 47 echo "Write var1 to shared memory.\n"; 56 echo "Write var2 to shared memory.\n"; 63 echo "Read var1=$var1.\n"; 71 echo "Read var2=$var2.\n"; 77 echo "Semaphore $sem_id released.\n"; [all …]
|
/PHP-5.4/ext/phar/tests/ |
H A D | phar_stub.phpt | 24 echo fread($fp, strlen($file)) . "\n"; 32 echo fread($fp, strlen($file)) . "\n"; 47 echo fread($fp, strlen($file)) . "\n"; 53 echo file_get_contents($fname2) . "\n"; 62 echo fread($fp, strlen($file)) . "\n"; 64 echo 'failed - copied booya'; 71 echo fread($fp, strlen($file)) . "\n"; 73 echo 'failed - copied booya'; 86 <?php echo "first stub\n"; __HALT_COMPILER(); ?> 88 <?php echo "third stub\n"; __HALT_COMPILER(); ?> [all …]
|
/PHP-5.4/ext/standard/tests/assert/ |
H A D | assert_variation.phpt | 13 echo "f1 called\n"; 17 echo "f2 called\n"; 21 echo "f3 called\n"; 27 echo "Class assertion failed $line, \"$myev\"\n"; 34 echo"\n"; 41 echo"\n"; 48 echo"\n"; 56 echo"\n"; 58 echo "Reset callback options to use a class method \n"; 63 echo"\n"; [all …]
|
/PHP-5.4/ext/standard/tests/math/ |
H A D | lcg_value_basic.phpt | 6 echo "MATHS test script started\n"; 9 echo "\n lcg_value tests...\n"; 19 echo "FAILED\n"; 21 echo "PASSED\n"; 24 echo "\n lcg_value error cases..spurious args get ignored\n"; 28 echo "FAILED\n"; 30 echo "PASSED\n"; 35 echo "FAILED\n"; 37 echo "PASSED\n"; 40 echo "MATHS test script completed\n";
|