/PHP-8.3/Zend/tests/weakrefs/ |
H A D | weakmap_basic_map_behavior.phpt | 6 $map = new WeakMap; 7 var_dump(count($map)); 14 $map[$obj] = $obj2; 16 var_dump($map); 21 $map[$obj] = 42; 22 var_dump($map); 28 var_dump($map); 34 var_dump($map); 40 var_dump($map); 56 $map[$obj2]++; [all …]
|
H A D | weakmap_weakness.phpt | 6 $map = new WeakMap; 10 var_dump($map); 13 $map[$obj] = 2; 14 var_dump($map); 17 var_dump($map); 30 var_dump($map); 34 $map[$obj] = 3; 35 unset($map); 54 unset($map); 58 $map[$map] = $map; [all …]
|
H A D | gh10043-009.phpt | 2 Self-referencing map entry GC - 009 14 $map = new WeakMap(); 16 $map[$obj] = new Value('a'); 17 $map[$map] = $map; 18 $ref = WeakReference::create($map); 21 $map = null;
|
H A D | gh10043-012.phpt | 2 Self-referencing map entry GC - 012 19 $map = new WeakMap(); 21 $map[$obj] = new Value('a'); 22 $map[$map] = new Value2($map); 23 $ref = WeakReference::create($map); 26 $map = null;
|
H A D | weakmap_object_reference.phpt | 6 $map = new WeakMap; 10 $map[$obj] = 1; 11 var_dump(count($map)); 12 var_dump($map); 13 var_dump(isset($map[$obj])); 14 var_dump(!empty($map[$obj])); 15 var_dump($map[$obj]);
|
H A D | weakmap_error_conditions.phpt | 6 $map = new WeakMap; 8 $map[1] = 2; 13 var_dump($map[1]); 18 isset($map[1]); 23 unset($map[1]); 29 $map[] = 1; 34 $map[][1] = 1; 44 var_dump($map->prop); 46 unset($map->prop); 49 $map->prop = 1; [all …]
|
H A D | gh10043-015.phpt | 2 Self-referencing map entry GC - 015 11 $map = new WeakMap(); 13 $map[$obj] = [$obj, $map]; 14 $ref = WeakReference::create($map); 16 $map = null;
|
H A D | gh10043-004.phpt | 2 Self-referencing map entry GC - 004 11 $map = new WeakMap(); 13 $map[$obj] = [$map, $obj]; 14 $ref = WeakReference::create($map); 22 // $map is first in the root buffer 23 $map = null;
|
H A D | weakmap_iteration.phpt | 6 $map = new WeakMap; 9 foreach ($map as $key => $value) { 17 $map[$obj0] = 0; 18 $map[$obj1] = 1; 19 $map[$obj2] = 2; 20 foreach ($map as $key => $value) { 25 foreach ($map as $key => $value) { 31 foreach ($map as $key => &$value) { 34 var_dump($map);
|
H A D | gh10043-016.phpt | 2 Self-referencing map entry GC - 016 9 $map = new WeakMap(); 11 $map[$k1] = [$k1, $map]; 14 $map[$k2] = $k2; 18 var_dump($map);
|
H A D | weakmap_multiple_weakrefs.phpt | 9 $map = new WeakMap; 10 $map[$obj] = 1; 16 var_dump($ref->get(), $map, $map2, $map3); 18 var_dump($ref->get(), $map, $map2, $map3); 19 unset($ref, $map, $map2); 23 $map = new WeakMap; 24 $map[$obj] = 1; 29 unset($ref, $map, $map2, $map3);
|
H A D | gh10043-010.phpt | 2 Self-referencing map entry GC - 010 14 $map = new WeakMap(); 20 $map[$obj2] = [$obj2, $map]; 25 $map[$obj3] = $obj3;
|
H A D | gh10043-003.phpt | 2 Self-referencing map entry GC - 003 11 $map = new WeakMap(); 13 $map[$obj] = [$obj, $map]; 14 $ref = WeakReference::create($map); 24 $map = null;
|
H A D | gh10043-014.phpt | 2 Self-referencing map entry GC - 014 11 $map = new WeakMap(); 13 $map[$obj] = $obj; 19 $map2 = $map; 20 $map = null;
|
H A D | gh10043-006.phpt | 2 Self-referencing map entry GC - 006 11 $map = new WeakMap(); 13 $map[$obj] = $obj; 19 $map2 = $map; 20 $map = null;
|
H A D | gh10043-001.phpt | 2 Self-referencing map entry GC - 001 11 $map = new WeakMap(); 13 $map[$obj] = $obj; 17 var_dump($map); 22 var_dump($map);
|
H A D | gh10043-002.phpt | 2 Self-referencing map entry GC - 002 11 $map = new WeakMap(); 13 $map[$obj] = [$obj]; 17 var_dump($map); 22 var_dump($map);
|
H A D | gh10043-005.phpt | 2 Self-referencing map entry GC - 005 11 $map = new WeakMap(); 14 $map[$obj] = $value; 19 var_dump($map); 27 var_dump($map);
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | bug40685.phpt | 7 $map = array(0, 0x10FFFF, 0, 0xFFFFFF); 8 var_dump(mb_decode_numericentity('&', $map, 'UTF-8')); 9 var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8')); 10 var_dump(mb_decode_numericentity('&#', $map, 'UTF-8')); 11 var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8')); 12 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 13 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 14 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 15 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
/PHP-8.3/ext/pcre/pcre2lib/ |
H A D | pcre2_script_run.c | 90 uint32_t map[FULL_MAPSIZE]; in PRIV() local 181 memcpy(require_map, map, FULL_MAPSIZE * sizeof(uint32_t)); in PRIV() 209 if (MAPBIT(map, ucp_Bopomofo) != 0) chspecial |= FOUND_BOPOMOFO; in PRIV() 210 if (MAPBIT(map, ucp_Hiragana) != 0) chspecial |= FOUND_HIRAGANA; in PRIV() 211 if (MAPBIT(map, ucp_Katakana) != 0) chspecial |= FOUND_KATAKANA; in PRIV() 212 if (MAPBIT(map, ucp_Hangul) != 0) chspecial |= FOUND_HANGUL; in PRIV() 230 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Hiragana) + in PRIV() 231 MAPBIT(map, ucp_Katakana) == 0) return FALSE; in PRIV() 235 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Bopomofo) == 0) return FALSE; in PRIV() 239 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Hangul) == 0) return FALSE; in PRIV() [all …]
|
/PHP-8.3/ext/ffi/tests/ |
H A D | weak_reference_004.phpt | 9 $map = new WeakMap(); 18 $map[$ffi] = 'ffi'; 19 $map[$cdata_value] = 'cdata_value'; 20 $map[$cdata_array] = 'cdata_array'; 21 $map[$cdata_free] = 'cdata_free'; 22 $map[$ctype] = 'ctype'; 24 var_dump(count($map) === 5); 32 var_dump(count($map) === 0);
|
/PHP-8.3/ext/filter/ |
H A D | sanitizing_filters.c | 154 if ((*map)[str[i]]) { in filter_map_apply() 299 filter_map map; in php_filter_email() local 301 filter_map_init(&map); in php_filter_email() 303 filter_map_apply(value, &map); in php_filter_email() 313 filter_map map; in php_filter_url() local 315 filter_map_init(&map); in php_filter_url() 317 filter_map_apply(value, &map); in php_filter_url() 326 filter_map map; in php_filter_number_int() local 328 filter_map_init(&map); in php_filter_number_int() 339 filter_map map; in php_filter_number_float() local [all …]
|
/PHP-8.3/Zend/tests/enum/ |
H A D | weak-map.phpt | 10 $map = new WeakMap(); 11 $map[TestEnum::A] = 'a string'; 12 var_dump($map[TestEnum::A]); 13 var_dump($map[TestEnum::A]);
|
/PHP-8.3/ext/gd/libgd/ |
H A D | gdcache.c | 159 cacheTest (void *map, void *key) in cacheTest() argument 161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest() 167 key_value_t *map; in cacheFetch() local 169 map = (key_value_t *) gdMalloc (sizeof (key_value_t)); in cacheFetch() 170 map->key = *(int *) key; in cacheFetch() 171 map->value = 3; in cacheFetch() 174 return (void *) map; in cacheFetch() 178 cacheRelease (void *map) in cacheRelease() argument 180 gdFree ((char *) map); in cacheRelease()
|
/PHP-8.3/ext/spl/tests/ |
H A D | observer_010.phpt | 8 $map = new SplObjectStorage(); 9 $map[$a] = 'foo'; 10 var_dump($map[$b] ?? null); 11 var_dump($map[$a] ?? null);
|