/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | character_data.h | 44 size_t offset, size_t count);
|
/php-src/ext/dom/lexbor/lexbor/encoding/ |
H A D | decode.c | 1550 lxb_char_t first, second, third, offset; in lxb_encoding_decode_gb18030() local 1661 offset = (second < 0x7F) ? 0x40 : 0x41; in lxb_encoding_decode_gb18030() 1667 pointer = (first - 0x81) * 190 + (second - offset); in lxb_encoding_decode_gb18030() 2983 lxb_char_t first, second, third, offset; in lxb_encoding_decode_gb18030_single() local 3054 offset = (second < 0x7F) ? 0x40 : 0x41; in lxb_encoding_decode_gb18030_single() 3060 pointer = (first - 0x81) * 190 + (second - offset); in lxb_encoding_decode_gb18030_single()
|
/php-src/ext/dom/lexbor/lexbor/html/tokenizer/ |
H A D | state.h | 101 #define lxb_html_tokenizer_state_token_set_end_down(tkz, v_end, offset) \ argument 104 v_end, offset); \
|
/php-src/ext/dom/lexbor/patches/ |
H A D | 0001-Expose-line-and-column-information-for-use-in-PHP.patch | 77 + /* Other characters can be mapped back to the unicode codepoint offset because UTF…
|
/php-src/ext/dom/ |
H A D | nodelist.c | 257 ZVAL_DEREF(offset); in dom_modern_nodelist_get_index() 259 if (Z_TYPE_P(offset) == IS_LONG) { in dom_modern_nodelist_get_index() 261 ret.lval = Z_LVAL_P(offset); in dom_modern_nodelist_get_index() 262 } else if (Z_TYPE_P(offset) == IS_DOUBLE) { in dom_modern_nodelist_get_index() 264 ret.lval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_modern_nodelist_get_index() 265 } else if (Z_TYPE_P(offset) == IS_STRING) { in dom_modern_nodelist_get_index() 267 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), lval)) { in dom_modern_nodelist_get_index() 272 ret.str = Z_STR_P(offset); in dom_modern_nodelist_get_index() 283 if (UNEXPECTED(!offset)) { in dom_modern_nodelist_read_dimension() 288 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(offset); in dom_modern_nodelist_read_dimension() [all …]
|
H A D | nodelist.h | 36 dom_nodelist_dimension_index dom_modern_nodelist_get_index(const zval *offset); 37 zval *dom_modern_nodelist_read_dimension(zend_object *object, zval *offset, int type, zval *rv);
|
H A D | php_dom.c | 2186 if (UNEXPECTED(!offset)) { in dom_nodelist_read_dimension() 2191 ZVAL_DEREF(offset); in dom_nodelist_read_dimension() 2211 zend_long offset; in dom_nodelist_has_dimension() local 2217 return offset >= 0 && offset < php_dom_get_nodelist_length(php_dom_obj_from_obj(object)); in dom_nodelist_has_dimension() 2278 if (UNEXPECTED(!offset)) { in dom_nodemap_read_dimension() 2283 ZVAL_DEREF(offset); in dom_nodemap_read_dimension() 2309 zend_long offset; in dom_nodemap_has_dimension() local 2320 if (UNEXPECTED(!offset)) { in dom_modern_nodemap_read_dimension() 2327 ZVAL_DEREF(offset); in dom_modern_nodemap_read_dimension() 2365 return offset >= 0 && offset < php_dom_get_namednodemap_length(obj); in dom_modern_nodemap_has_dimension() [all …]
|
H A D | php_dom.stub.php | 543 public function substringData(int $offset, int $count) {} argument 546 public function insertData(int $offset, string $data): bool {} argument 549 public function deleteData(int $offset, int $count): bool {} argument 552 public function replaceData(int $offset, int $count, string $data): bool {} argument 919 public function splitText(int $offset) {} argument 1411 public function substringData(int $offset, int $count): string {} argument 1413 public function insertData(int $offset, string $data): void {} argument 1414 public function deleteData(int $offset, int $count): void {} argument 1415 public function replaceData(int $offset, int $count, string $data): void {} argument 1432 public function splitText(int $offset): Text {} argument
|
H A D | php_dom_arginfo.h | 180 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 185 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 190 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 195 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 492 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 839 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 848 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 853 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 858 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) 872 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
|
H A D | text.c | 109 zend_long offset; in PHP_METHOD() local 114 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &offset) == FAILURE) { in PHP_METHOD() 119 if (offset < 0) { in PHP_METHOD() 131 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length) { in PHP_METHOD() 138 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD() 139 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
|
H A D | xml_document.c | 311 size_t offset = php_stream_tell(stream); in php_new_dom_dump_node_to_file() local 315 return status < 0 ? status : (zend_long) offset; in php_new_dom_dump_node_to_file()
|
/php-src/ext/dom/tests/ |
H A D | DOMCharacterData_deleteData_error_002.phpt | 2 DOMCharacterData::deleteData() with offset exceeding string size.
|
H A D | DOMComment_insertData_basic.phpt | 11 //correct offset
|
H A D | DOMComment_insertData_error1.phpt | 11 //Negative offset 18 echo "Throws DOMException for -ve offset\n"; 24 Throws DOMException for -ve offset
|
H A D | DOMComment_insertData_error2.phpt | 11 //offset to large 18 echo "Throws DOMException for offset too large\n"; 24 Throws DOMException for offset too large
|
H A D | DOMComment_replaceData_error1.phpt | 11 //Negative offset 18 echo "Throws DOMException for -ve offset\n"; 24 Throws DOMException for -ve offset
|
H A D | DOMComment_replaceData_error2.phpt | 11 //offset to large 18 echo "Throws DOMException for offset too large\n"; 24 Throws DOMException for offset too large
|
H A D | DOMNamedNodeMap_edge_case_offset.phpt | 29 Cannot access DOMNamedNodeMap without offset
|
H A D | bug67949.phpt | 29 $offset = ['test']; 30 var_dump($offset); 31 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 35 $offset = &$something; 37 var_dump($offset); 38 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 41 $offset = 'test'; 42 var_dump($offset); 43 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 68 --- testing offset not a long: array --- [all …]
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | HTMLCollection_dimension_errors.phpt | 31 Cannot access offset of type bool on Dom\HTMLCollection 32 Cannot access offset of type bool in isset or empty
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | CharacterData_insertData_negative_offset.phpt | 2 insertData() negative offset
|
H A D | CharacterData_insertData_negative_offset_mod32.phpt | 2 insertData() negative offset (mod 32)
|
H A D | NamedNodeMap_dimensions.phpt | 61 Cannot access offset of type bool on Dom\NamedNodeMap 63 Cannot access offset of type null on Dom\NamedNodeMap
|
H A D | NodeList_dimensions.phpt | 61 Cannot access offset of type bool on Dom\NodeList 63 Cannot access offset of type null on Dom\NodeList 73 Cannot access offset of type string on Dom\NodeList 75 Cannot access offset of type string on Dom\NodeList
|
H A D | Text_splitText_edge_case.phpt | 23 Dom\Text::splitText(): Argument #1 ($offset) must be greater than or equal to 0
|