/PHP-7.4/ext/ffi/tests/ |
H A D | 021.phpt | 2 FFI 021: packed enums 16 test(1, "enum __attribute__((packed)) {a2, b2}"); 24 test(1, "enum __attribute__((packed)) {a8=0, b8=0xff}"); 25 test(2, "enum __attribute__((packed)) {a9=0, b9=0x100}"); 27 test(1, "enum __attribute__((packed)) {a10=-1, b10=0x7f}"); 28 test(2, "enum __attribute__((packed)) {a11=-1, b11=0x80}"); 32 test(2, "enum __attribute__((packed)) {a8=0, b8=0xffff}"); 48 test(1, "enum __attribute__((packed)) {a14=-0x80}"); 49 test(2, "enum __attribute__((packed)) {a14=-0x81}"); 50 test(2, "enum __attribute__((packed)) {a14=-0x8000}"); [all …]
|
H A D | 022.phpt | 25 test_size(5, "struct __attribute__((packed)) {char a; uint32_t b;}"); 26 test_size(5, "struct __attribute__((packed)) {uint32_t a; char b;}"); 39 test_align(1, "union __attribute__((packed)) {char a; uint32_t b;}"); 40 test_align(1, "union __attribute__((packed)) {uint32_t a; char b;}"); 42 test_size(8, "struct {char a __attribute__((packed)); uint32_t b;}"); 43 test_size(5, "struct {char a; uint32_t b __attribute__((packed));}"); 44 test_size(5, "struct {uint32_t a __attribute__((packed)); char b;}"); 45 test_size(8, "struct {uint32_t a; char b __attribute__((packed));}"); 47 test_align(4, "struct {char a __attribute__((packed)); uint32_t b;}"); 49 test_align(1, "struct {uint32_t a __attribute__((packed)); char b;}"); [all …]
|
H A D | 031.phpt | 21 test_size( 1, "struct __attribute__((packed)) {int a:2; int b:2;}"); 23 test_size( 9, "struct __attribute__((packed)) {int a:2; unsigned long long :64; int b:2;}"); 25 test_size( 1, "union __attribute__((packed)) {int a:2; int b:8;}");
|
H A D | 032.phpt | 11 struct __attribute__((packed)) {
|
/PHP-7.4/ext/zlib/tests/ |
H A D | 001.phpt | 8 $packed=gzdeflate($original); 9 echo strlen($packed)." ".strlen($original)."\n"; 10 $unpacked=gzinflate($packed); 15 $packed=gzdeflate($original, 9); 16 echo strlen($packed)." ".strlen($original)."\n"; 17 $unpacked=gzinflate($packed, 40000); 21 $packed=gzdeflate($original); 22 echo strlen($packed)." ".strlen($original)."\n"; 23 $unpacked=gzinflate($packed);
|
H A D | 002.phpt | 8 $packed=gzcompress($original); 9 echo strlen($packed)." ".strlen($original)."\n"; 10 $unpacked=gzuncompress($packed); 15 $packed=gzcompress($original, 9); 16 echo strlen($packed)." ".strlen($original)."\n"; 17 $unpacked=gzuncompress($packed, 40000);
|
H A D | gzinflate_length.phpt | 8 $packed=gzdeflate($original); 9 echo strlen($packed)." ".strlen($original)."\n"; 10 $unpacked=gzinflate($packed, strlen($original)); 13 $unpacked=gzinflate($packed, strlen($original)*10); 16 $unpacked=gzinflate($packed, 1);
|
H A D | 003.phpt | 8 $packed = gzencode($original); 9 echo strlen($packed)." ".strlen($original). "\n"; 10 if (strcmp($original, gzdecode($packed)) == 0) echo "Strings are equal";
|
/PHP-7.4/ext/standard/tests/network/ |
H A D | inet.phpt | 11 $packed = chr(127) . chr(0) . chr(0) . chr(1); 12 var_dump(inet_ntop($packed)); 14 $packed = chr(255) . chr(255) . chr(255) . chr(0); 15 var_dump(inet_ntop($packed)); 34 var_dump(bin2hex($packed = inet_pton($val))); 35 var_dump(inet_ntop($packed));
|
H A D | inet_ipv6.phpt | 8 $packed = str_repeat(chr(0), 15) . chr(1); 9 if (@inet_ntop($packed) === false) { 30 $packed = inet_pton($address); 31 var_dump(inet_ntop($packed));
|
/PHP-7.4/ext/snmp/tests/ |
H A D | ipv6.phpt | 9 $packed = str_repeat(chr(0), 15) . chr(1); 10 if (@inet_ntop($packed) === false) {
|
H A D | bug64124.phpt | 9 $packed = str_repeat(chr(0), 15) . chr(1); 10 if (@inet_ntop($packed) === false) {
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | packed_001.phpt | 2 array_keys() and array_values() w/ packed optimization
|
/PHP-7.4/ext/standard/tests/serialize/ |
H A D | __serialize_007.phpt | 2 No packed -> mixed reallocation while populating __unserialize() array
|
/PHP-7.4/Zend/tests/ |
H A D | foreach_by_ref_repacking_insert.phpt | 2 Perform a packed to hash insert when the iterator is at the end of the array
|
H A D | bug73753.phpt | 2 Bug #73753 Non packed arrays and duplication
|
H A D | objects_033.phpt | 8 // As of PHP 5.4 we use a packed C array to hold properties
|
/PHP-7.4/ext/json/tests/ |
H A D | 009.phpt | 2 json_encode() with non-packed array that should be encoded as an array rather than object
|
/PHP-7.4/ext/opcache/tests/opt/ |
H A D | dce_007.phpt | 28 L1 (3): CV1($a) = INIT_ARRAY 1 (packed) CV0($x) NEXT
|
/PHP-7.4/Zend/ |
H A D | zend_hash.c | 199 static zend_always_inline void zend_hash_real_init_ex(HashTable *ht, int packed) in zend_hash_real_init_ex() argument 203 if (packed) { in zend_hash_real_init_ex() 291 ZEND_API void ZEND_FASTCALL zend_hash_real_init(HashTable *ht, zend_bool packed) in zend_hash_real_init() argument 296 zend_hash_real_init_ex(ht, packed); in zend_hash_real_init() 346 ZEND_API void ZEND_FASTCALL zend_hash_extend(HashTable *ht, uint32_t nSize, zend_bool packed) in zend_hash_extend() argument 354 zend_hash_real_init(ht, packed); in zend_hash_extend() 356 if (packed) { in zend_hash_extend() 1942 …able *source, HashTable *target, uint32_t idx, Bucket *p, Bucket *q, int packed, int static_keys, … in zend_array_dup_element() argument 1947 if (!packed && Z_TYPE_INFO_P(data) == IS_INDIRECT) { in zend_array_dup_element() 1953 } else if (!packed) { in zend_array_dup_element() [all …]
|
H A D | zend_hash.h | 109 ZEND_API void ZEND_FASTCALL zend_hash_real_init(HashTable *ht, zend_bool packed); 114 ZEND_API void ZEND_FASTCALL zend_hash_extend(HashTable *ht, uint32_t nSize, zend_bool packed);
|
H A D | zend_compile.c | 7924 zend_bool packed = 1; in zend_compile_array() local 7985 packed = 0; in zend_compile_array() 7990 if (!packed) { in zend_compile_array()
|
/PHP-7.4/ext/phar/phar/ |
H A D | pharcommand.inc | 464 …ven regular expression are being packed. If -x is given then files matching that regular expressio… 984 …ven regular expression are being packed. If -x is given then files matching that regular expressio…
|
/PHP-7.4/ext/standard/ |
H A D | var_unserializer.re | 693 /* Avoid reallocation due to packed -> mixed conversion. */ 1003 /* we can't convert from packed to hash during unserialization, because
|
/PHP-7.4/ext/ffi/ |
H A D | ffi.c | 6392 _(packed) \
|