Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/php-src/ext/ffi/tests/
H A D032.phpt38 -5 => 3-bit int 3, 3-bit uint 3
39 -4 => 3-bit int -4, 3-bit uint 4
40 -3 => 3-bit int -3, 3-bit uint 5
41 -2 => 3-bit int -2, 3-bit uint 6
43 0 => 3-bit int 0, 3-bit uint 0
44 1 => 3-bit int 1, 3-bit uint 1
45 2 => 3-bit int 2, 3-bit uint 2
46 3 => 3-bit int 3, 3-bit uint 3
47 4 => 3-bit int -4, 3-bit uint 4
48 5 => 3-bit int -3, 3-bit uint 5
[all …]
/php-src/ext/mbstring/tests/
H A Dother_encodings.phpt13 // "7bit". This is not a real text encoding.
14 var_dump(mb_convert_encoding("ABC", "7bit", "ASCII"));
15 var_dump(mb_convert_encoding("\x80", "7bit", "ASCII"));
16 var_dump(mb_convert_encoding("ABC", "8bit", "7bit"));
17 var_dump(mb_check_encoding(chr(255), '7bit'));
19 echo "7bit done\n";
21 // "8bit"
22 var_dump(mb_convert_encoding("\x01\x00", "8bit", "UTF-16BE")); // codepoints over 0xFF are illegal …
23 echo "8bit done\n";
32 7bit done
[all …]
H A Dbug81298.phpt2 Bug #81298: mb_detect_encoding() segfaults when 7bit encoding is specified
8 var_dump(mb_detect_encoding("foobar.", "7bit"));
9 var_dump(mb_detect_encoding("foobar.", "7bit,ascii"));
10 var_dump(mb_detect_encoding("foobar.", "7bit,ascii,utf8"));
H A Dgh10648.phpt11 'JIS X 0201 7bit kana with escape sequence' => '1b2849311b2842', // 'ア' in JIS
12 'JIS X 0201 7bit kana with SO/SI' => '0e310f', // 'ア' in JIS
13 'JIS X 0201 8bit kana' => 'b1', // 'ア' in JIS
14 'JIS X 0201 7bit kana with SO and ESC' => '0e311b2842', // 'ア' in JIS
15 'JIS X 0201 7bit kana with ESC and SI' => '1b2849310f', // 'ア' in JIS
57 JIS X 0201 7bit kana with escape sequence
67 JIS X 0201 7bit kana with SO/SI
77 JIS X 0201 8bit kana
87 JIS X 0201 7bit kana with SO and ESC
97 JIS X 0201 7bit kana with ESC and SI
H A Dbug81693.phpt2 Bug #81693 (mb_check_encoding(7bit) segfaults)
7 var_dump(mb_check_encoding('Hello world', '7bit'));
H A Dbug77025.phpt8 var_dump(mb_strpos('Hello', 'e', 0, '8bit'));
9 var_dump(mb_stripos('Hello', 'e', 0, '8bit'));
H A Dmb_list_encodings.phpt7 var_dump(in_array("7bit", mb_list_encodings()));
8 var_dump(in_array("8bit", mb_list_encodings()));
/php-src/ext/standard/tests/strings/
H A Dbug47842.phpt2 Bug #47842 sscanf() does not support 64-bit values
12 echo "sscanf 32-bit signed int '2147483647' (2^31)-1 = ",$int,"\n";
14 echo "sscanf 32-bit unsign int '4294967295' (2^32)-1 = ",$int,"\n";
17 echo "sscanf 64-bit signed int '9223372036854775807' (2^63)-1 = ",$int,"\n";
19 echo "sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = ",$int,"\n";
28 sscanf 32-bit signed int '2147483647' (2^31)-1 = 2147483647
29 sscanf 32-bit unsign int '4294967295' (2^32)-1 = 4294967295
30 sscanf 64-bit signed int '9223372036854775807' (2^63)-1 = 9223372036854775807
31 sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = 18446744073709551615
32 printf 64-bit signed int '9223372036854775807' (2^63)-1 = 9223372036854775807
[all …]
H A Dpack64_32.phpt2 64bit pack()/unpack() tests
6 die("skip 32bit test only");
55 64-bit format codes are not available for 32-bit versions of PHP
56 64-bit format codes are not available for 32-bit versions of PHP
57 64-bit format codes are not available for 32-bit versions of PHP
58 64-bit format codes are not available for 32-bit versions of PHP
59 64-bit format codes are not available for 32-bit versions of PHP
60 64-bit format codes are not available for 32-bit versions of PHP
61 64-bit format codes are not available for 32-bit versions of PHP
62 64-bit format codes are not available for 32-bit versions of PHP
/php-src/ext/pdo_mysql/tests/
H A Dbug75177.phpt2 PDO MySQL Bug #75177 Type 'bit' is fetched as unexpected string
16 $pdo->query("CREATE TABLE test_75177 (`bit` BIT(8)) ENGINE=InnoDB");
17 $pdo->query("INSERT INTO test_75177 (`bit`) VALUES (1), (0b011), (0b01100)");
22 var_dump($i["bit"]);
28 var_dump($i["bit"]);
/php-src/ext/hash/tests/
H A Dhash_serialize_003.phpt205 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDA7aTo0O2E6MDp7fX0=", /* 64-bit fast LE */
206 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDE7aTo0O2E6MDp7fX0=", /* 32-bit fast LE */
211 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDA7aTo0O2E6MDp7fX0=", /* 64-bit fast LE */
212 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDE7aTo0O2E6MDp7fX0=", /* 32-bit fast LE */
217 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDA7aTo0O2E6MDp7fX0=", /* 64-bit fast LE */
218 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDE7aTo0O2E6MDp7fX0=", /* 32-bit fast LE */
223 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDA7aTo0O2E6MDp7fX0=", /* 64-bit fast LE */
224 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiO2k6MTtpOjI1O31pOjM7aToxMDE7aTo0O2E6MDp7fX0=", /* 32-bit fast LE */
/php-src/ext/standard/tests/math/
H A Dbug30695.phpt2 Bug #30695 (32 bit issues)
5 if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
16 case !($char_code & 0xffffff80): // 7 bit
19 case !($char_code & 0xfffff800): // 11 bit
23 case !($char_code & 0xffff0000): // 16 bit
28 case !($char_code & 0xffe00000): // 21 bit
34 case !($char_code & 0xfc000000): // 26 bit
41 default: // 31 bit
/php-src/ext/random/tests/03_randomizer/methods/
H A DnextInt_64_engine_on_32_platform.phpt2 Random: Randomizer: nextInt(): Throws for 64 bit engines on 32 bit platforms
4 <?php if (PHP_INT_SIZE == 8) die("skip 32-bit only"); ?>
/php-src/ext/gd/tests/
H A Dimageinterlace_variation2.phpt2 Testing setting the interlace bit off with imageinterlace() of GD library
13 //setting the interlace bit to on
16 //setting de interlace bit to off
H A Dbug66005.phpt2 Bug #66005 (imagecopy does not support 1bit transparency on truecolor images)
22 // 24 bit with transparent color
25 // 32 bit with full alpha channel
/php-src/ext/pdo_sqlite/tests/
H A Dbug_63916-2.phpt2 Bug #63916 PDO::PARAM_INT casts to 32bit int internally even on 64bit builds in pdo_sqlite
7 if (PHP_INT_SIZE > 4) die('skip 32-bit only');
/php-src/Zend/tests/
H A Dbug70173.phpt2 Bug #70173 (ZVAL_COPY_VALUE_EX broken for 32bit Solaris Sparc)
5 if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
H A Dzend_signed_multiply-32bit.phpt2 Zend signed multiply 32-bit
4 <?php if ((1 << 31) > 0) print "skip Running on 64-bit target"; ?>
H A Dzend_signed_multiply-64bit.phpt2 Zend signed multiply 64-bit, variation 1
4 <?php if ((1 << 31) < 0) print "skip Running on 32-bit target"; ?>
H A Dbug62097.phpt2 Bug #62097: fix for bug #54547 is wrong for 32-bit machines
6 die('skip for system with 32-bit wide longs only');
/php-src/ext/gd/libgd/
H A Dgd_xbm.c44 int bit, x = 0, y = 0; in gdImageCreateFromXbm() local
142 for (bit = 1; bit <= max_bit; bit = bit << 1) { in gdImageCreateFromXbm()
143 gdImageSetPixel(im, x++, y, (b & bit) ? 1 : 0); in gdImageCreateFromXbm()
/php-src/tests/lang/constants/
H A DPHP_INT_32bit.phpt2 Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (32-bit)
5 die("skip this test is for 32-bit platforms only"); ?>
H A DPHP_INT_64bit.phpt2 Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (64-bit)
5 die("skip this test is for 64-bit platforms only"); ?>
/php-src/ext/opcache/tests/jit/
H A Dadd_012.phpt2 JIT ADD: 012 register allocation for 64-bit constant
8 <?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
/php-src/ext/xml/tests/
H A Dbug81481.phpt2 Bug #81481 (xml_get_current_byte_index limited to 32-bit numbers on 64-bit builds)
14 if (PHP_INT_SIZE != 8) die("skip 64-bit only");

Completed in 46 milliseconds

12345678910>>...22