/PHP-5.3/tests/strings/ |
H A D | 001.phpt | 16 echo("failed 1\n"); 18 echo("failed 2\n"); 20 echo("failed 3\n"); 22 echo("failed 4\n"); 24 echo("passed\n"); 32 echo("failed 1\n"); 34 echo("failed 2\n"); 36 echo("passed\n"); 49 echo("passed\n"); 56 echo("passed\n"); [all …]
|
/PHP-5.3/ext/date/tests/ |
H A D | bug33414-2.phpt | 5 print "TZ=Pacific/Rarotonga - wrong day.\n"; 11 print "wanted=Tuesday 00:00:00\n\n"; 19 print "wanted=Tuesday 00:00:00\n\n"; 27 print "wanted=Monday 00:00:00\n\n"; 35 print "wanted=Monday 00:00:00\n\n"; 43 print "wanted=Monday 00:00:00\n\n"; 51 print "wanted=Tuesday 00:00:00\n\n"; 59 print "wanted=Wednesday 00:00:00\n\n"; 61 print "TZ=Pacific/Fakaofo - wrong day.\n"; 67 print "wanted=Saturday 00:00:00\n\n"; [all …]
|
H A D | bug27719.phpt | 11 echo "$a ".date("m/d/y h:i:s\n",$a); 12 echo "$b ".date("m/d/y h:i:s\n",$b); 13 echo "$c ".date("m/d/y h:i:s\n",$c); 14 echo "\n"; 19 echo "$a ".date("m/d/y h:i:s\n",$a); 20 echo "$b ".date("m/d/y h:i:s\n",$b); 21 echo "$c ".date("m/d/y h:i:s\n",$c); 22 echo "\n"; 30 echo "\n"; 38 echo "\n"; [all …]
|
H A D | bug33415-2.phpt | 13 print "wanted=Wednesday 00:00:00\n\n"; 21 print "wanted=Thursday 00:30:00\n\n"; 30 print "wanted=Thursday 00:00:00\n\n"; 39 print "wanted=Saturday 00:00:00\n\n"; 47 print "wanted=Thursday 03:00:00\n\n"; 56 print "wanted=Sunday 00:00:00\n\n"; 64 print "wanted=Sunday 00:30:00\n\n"; 73 print "wanted=Tuesday 00:00:00\n\n"; 82 print "wanted=Monday 00:00:00\n\n"; 90 print "wanted=Sunday 02:00:00\n\n"; [all …]
|
/PHP-5.3/ext/gmp/tests/ |
H A D | 021.phpt | 16 $n = gmp_init("8127346234"); 18 $n = gmp_init("8127346234"); 19 var_dump(gmp_strval(gmp_gcd("7623456735",$n))); 20 $n = gmp_init("8127346234"); 21 var_dump(gmp_strval(gmp_gcd($n,$n))); 22 $n = gmp_init("8127346234"); 23 var_dump(gmp_strval(gmp_gcd($n,0))); 24 var_dump(gmp_gcd($n,$n,1)); 25 var_dump(gmp_gcd($n,array(),1)); 26 var_dump(gmp_gcd(array(),$n,1)); [all …]
|
/PHP-5.3/ext/standard/tests/general_functions/ |
H A D | 001.phpt | 10 echo("passed\n"); 12 echo("failed!\n"); 18 echo("passed\n"); 20 echo("failed!\n"); 26 echo("passed\n"); 28 echo("failed!\n"); 34 echo("passed\n"); 36 echo("failed!\n"); 42 echo("passed\n"); 44 echo("failed!\n"); [all …]
|
H A D | debug_zval_dump_v.phpt | 43 echo "\n-- Value of \$first_var: --\n"; 49 echo "\n-- Value of \$ref_first_var --\n"; 51 echo "\n-- Value of \$first_var --\n"; 58 echo "\n-- Value of \$ref_first_var --\n"; 60 echo "\n-- Value of \$first_var --\n"; 67 echo "\n-- Value of \$var_1: (before referencing) --\n"; 69 echo "\n-- Value of \$var_2: (referencing var_1) --\n"; 71 echo "\n-- Value of \$var_3: (referencing var_2) --\n"; 78 echo "\n-- Value of \$var_2: --\n"; 80 echo "\n-- Value of \$var_3: --\n"; [all …]
|
/PHP-5.3/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_byte4.c | 95 int n; in mbfl_filt_conv_byte4be_wchar() local 100 filter->cache = n; in mbfl_filt_conv_byte4be_wchar() 104 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar() 107 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4be_wchar() 108 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar() 128 int n; in mbfl_filt_conv_byte4le_wchar() local 132 n = (c & 0xff); in mbfl_filt_conv_byte4le_wchar() 133 filter->cache = n; in mbfl_filt_conv_byte4le_wchar() 136 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4le_wchar() 137 filter->cache |= n; in mbfl_filt_conv_byte4le_wchar() [all …]
|
H A D | mbfilter_ucs2.c | 127 int n, endian; in mbfl_filt_conv_ucs2_wchar() local 133 n = c & 0xff; in mbfl_filt_conv_ucs2_wchar() 137 filter->cache = n; in mbfl_filt_conv_ucs2_wchar() 144 n = c & 0xff; in mbfl_filt_conv_ucs2_wchar() 146 n |= filter->cache; in mbfl_filt_conv_ucs2_wchar() 147 if (n == 0xfffe) { in mbfl_filt_conv_ucs2_wchar() 169 int n; in mbfl_filt_conv_ucs2be_wchar() local 174 filter->cache = n; in mbfl_filt_conv_ucs2be_wchar() 205 int n; in mbfl_filt_conv_ucs2le_wchar() local 209 n = c & 0xff; in mbfl_filt_conv_ucs2le_wchar() [all …]
|
/PHP-5.3/ext/standard/tests/array/ |
H A D | array_rand_variation6.phpt | 21 \n 31 hello\tworld\nhello\nworld\n 54 echo "\n-- with default parameters --\n"; 57 echo "\n-- with num_req = 1 --\n"; 60 echo "\n-- with num_req = 3 --\n"; 63 echo "\n-- with num_req = 6 --\n"; 73 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 76 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 81 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" 83 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*" [all …]
|
/PHP-5.3/tests/lang/ |
H A D | execution_order.phpt | 18 echo "\r\n"; 25 echo "\r\n"; 32 echo "\r\n"; 39 echo "\r\n"; 44 echo "\r\n"; 51 echo "\r\n"; 64 echo "\r\n"; 69 echo "\r\n"; 77 echo "\r\n"; 83 echo "\r\n"; [all …]
|
/PHP-5.3/ext/standard/tests/serialize/ |
H A D | 001.phpt | 31 echo "__sleep called\n"; 37 echo "__wakeup called\n"; 42 echo serialize(NULL)."\n"; 45 echo serialize(1)."\n"; 46 echo serialize(0)."\n"; 47 echo serialize(-1)."\n"; 51 echo serialize(1.0)."\n"; 52 echo serialize(0.0)."\n"; 60 echo "$data\n"; 66 echo "$data\n"; [all …]
|
/PHP-5.3/ext/standard/tests/file/ |
H A D | 001.phpt | 16 echo "test.file exists\n"; 18 echo "test.file does not exist\n"; 23 echo "test.file exists\n"; 25 echo "test.file does not exist\n"; 30 echo "test.link exists\n"; 32 echo "test.link does not exist\n"; 35 echo "test.file is a symlink\n"; 40 echo "test.link is a symlink\n"; 45 echo "test.file exists\n"; 73 echo "test.file is readable\n"; [all …]
|
H A D | 001-win32.phpt | 16 echo "test.file exists\n"; 18 echo "test.file does not exist\n"; 23 echo "test.file exists\n"; 25 echo "test.file does not exist\n"; 28 echo "test.file is a symlink\n"; 33 echo "test.file exists\n"; 35 echo "test.file does not exist\n"; 48 echo "test.file is writeable\n"; 53 echo "test.file is readable\n"; 63 echo "../file is a directory\n"; [all …]
|
/PHP-5.3/ext/sqlite/libsqlite/src/ |
H A D | encode.c | 127 if( n<=0 ){ in sqlite_encode_binary() 136 m = n; in sqlite_encode_binary() 148 return n+m+1; in sqlite_encode_binary() 152 for(i=0; i<n; i++){ in sqlite_encode_binary() 161 assert( j==n+m+1 ); in sqlite_encode_binary() 207 n = rand() % (i+1); in main() 210 for(j=k=0; j<n; j++){ in main() 218 nByteIn += n; in main() 229 m = (256*n + 1262)/253; in main() 242 if( j!=n ){ in main() [all …]
|
/PHP-5.3/ext/mbstring/tests/ |
H A D | mb_detect_order.phpt | 16 ($r === TRUE) ? print "OK_AUTO\n" : print "NG_AUTO\n"; 17 print implode(', ', mb_detect_order()) . "\n"; 22 ($r === TRUE) ? print "OK_STR\n" : print "NG_STR\n"; 23 print implode(', ', mb_detect_order()) . "\n"; 32 ($r === TRUE) ? print "OK_ARRAY\n" : print "NG_ARRAY\n"; 33 print implode(', ', mb_detect_order()) . "\n"; 36 print "== INVALID PARAMETER ==\n"; 39 ($r === FALSE) ? print "OK_BAD_STR\n" : print "NG_BAD_STR\n"; 40 print implode(', ', mb_detect_order()) . "\n"; 44 ($r === FALSE) ? print "OK_BAD_ARRAY\n" : print "NG_BAD_ARRAY\n"; [all …]
|
/PHP-5.3/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";
|
/PHP-5.3/ext/spl/tests/ |
H A D | heap_001.phpt | 11 echo "Exception: ".$e->getMessage()."\n"; 21 echo $h->count()."\n"; 22 echo $h->extract()."\n"; 23 echo $h->extract()."\n"; 24 echo $h->extract()."\n"; 25 echo $h->extract()."\n"; 26 echo $h->extract()."\n"; 27 echo $h->count()."\n"; 29 echo "--\n"; 36 echo $h->extract()."\n"; [all …]
|
/PHP-5.3/ext/standard/tests/strings/ |
H A D | bug53021.phpt | 6 echo "double quotes variations:", "\n"; 7 echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n"; 8 echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n"; 9 echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n"; 10 echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n"; 11 echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n"; 12 echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n"; 14 echo "\nsingle quotes variations:", "\n"; 15 echo html_entity_decode("'", ENT_NOQUOTES, 'UTF-8'), "\n"; 16 echo html_entity_decode("'", ENT_QUOTES, 'UTF-8'), "\n"; [all …]
|
/PHP-5.3/ext/hash/tests/ |
H A D | hash_file_basic1.phpt | 35 echo "adler32: " . hash_file('adler32', $file) . "\n"; 36 echo "crc32: " . hash_file('crc32', $file) . "\n"; 37 echo "gost: " . hash_file('gost', $file). "\n"; 39 echo "md2: " . hash_file('md2', $file). "\n"; 40 echo "md4: " . hash_file('md4', $file). "\n"; 41 echo "md5: " . hash_file('md5', $file). "\n"; 46 echo "sha1: " . hash_file('sha1', $file). "\n"; 47 echo "sha256: " . hash_file('sha256', $file). "\n"; 48 echo "sha384: " . hash_file('sha384', $file). "\n"; 49 echo "sha512: " . hash_file('sha512', $file). "\n"; [all …]
|
H A D | hash_hmac_basic.phpt | 14 echo "*** Testing hash_hmac() : basic functionality ***\n"; 19 echo "adler32: " . hash_hmac('adler32', $content, $key) . "\n"; 20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n"; 21 echo "gost: " . hash_hmac('gost', $content, $key) . "\n"; 23 echo "md2: " . hash_hmac('md2', $content, $key) . "\n"; 24 echo "md4: " . hash_hmac('md4', $content, $key) . "\n"; 25 echo "md5: " . hash_hmac('md5', $content, $key) . "\n"; 30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 31 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n"; 32 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n"; [all …]
|
/PHP-5.3/ext/interbase/tests/ |
H A D | interbase.inc | 41 echo "--- $table_name ---\n"; 44 echo join("\t",$r)."\t\n"; 47 echo "---\n"; 52 echo "--- $table_name ---\n"; 54 echo join("\t",$r)."\t\n"; 56 echo "---\n"; 63 echo join("\t",$r)."\t\n"; 66 echo "---\n"; 103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1); 115 $n = "-" .$n; [all …]
|
H A D | 007.phpt | 31 echo "insert\n"; 78 echo " CHAR[$i] fail:\n"; 83 echo " DATE[$i] fail\n"; 126 echo "select\n"; 137 echo "CHAR fail\n"; 144 echo "DATE fail\n"; 150 echo "DECIMAL fail\n"; 156 echo "INTEGER fail\n"; 162 echo "NUMERIC fail\n"; 168 echo "SMALLINT fail\n"; [all …]
|
/PHP-5.3/ext/calendar/tests/ |
H A D | jdtojewish.phpt | 8 var_dump(jdtojewish(gregoriantojd(10,28,2002))."\r\n". 9 jdtojewish(gregoriantojd(10,28,2002),true)."\r\n". 10 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n". 11 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM)."\r\n". 12 …ojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH+CAL_JEWISH_ADD_ALAFIM)."\r\n". 13 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n". 14 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n". 15 …wish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n". 16 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM)."\r\n". 17 …,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n");
|
/PHP-5.3/Zend/tests/ |
H A D | bug32290.phpt | 12 echo __METHOD__ . "($i)\n"; 18 echo __METHOD__ . "($i)\n"; 24 echo __METHOD__ . "($i)\n"; 30 echo __METHOD__ . "($i)\n"; 36 echo __METHOD__ . "($i)\n"; 45 echo __METHOD__ . "($i)\n"; 85 echo "===A===\n"; 87 echo "\n===B===\n"; 89 echo "\n===C===\n"; 91 echo "\n===D===\n"; [all …]
|