Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e6f42c1

Browse files
committed
Fix incorrect casts
1 parent 11937b3 commit e6f42c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎ext/dom/php_dom.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xml
14741474

14751475
if (local) {
14761476
int len = (int) ZSTR_LEN(local);
1477-
if (doc != NULL && (tmp = xmlDictExists(doc->dict, (const xmlChar *)local, len)) != NULL) {
1477+
if (doc != NULL && (tmp = xmlDictExists(doc->dict, (const xmlChar *)ZSTR_VAL(local), len)) != NULL) {
14781478
mapptr->local = BAD_CAST tmp;
14791479
} else {
14801480
mapptr->local = BAD_CAST ZSTR_VAL(zend_string_copy(local));
@@ -1485,7 +1485,7 @@ void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xml
14851485

14861486
if (ns) {
14871487
int len = (int) ZSTR_LEN(ns);
1488-
if (doc != NULL && (tmp = xmlDictExists(doc->dict, (const xmlChar *)ns, len)) != NULL) {
1488+
if (doc != NULL && (tmp = xmlDictExists(doc->dict, (const xmlChar *)ZSTR_VAL(ns), len)) != NULL) {
14891489
mapptr->ns = BAD_CAST tmp;
14901490
} else {
14911491
mapptr->ns = BAD_CAST ZSTR_VAL(zend_string_copy(ns));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /