Skip to content

Commit a103251

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: dom: Fix missing NUL byte check on C14NFile()
2 parents 3ad5799 + 8ad5915 commit a103251

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PHP NEWS
1616
(ndossche)
1717
. Fixed bug GH-20395 (querySelector and querySelectorAll requires elements
1818
in $selectors to be lowercase). (ndossche)
19+
. Fix missing NUL byte check on C14NFile(). (ndossche)
1920

2021
- Opcache:
2122
. Fixed bug GH-20329 (opcache.file_cache broken with full interned string

ext/dom/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{
21262126
}
21272127
} else {
21282128
if (zend_parse_parameters(ZEND_NUM_ARGS(),
2129-
"s|bba!a!", &file, &file_len, &exclusive,
2129+
"p|bba!a!", &file, &file_len, &exclusive,
21302130
&with_comments, &xpath_array, &ns_prefixes) == FAILURE) {
21312131
RETURN_THROWS();
21322132
}

0 commit comments

Comments
 (0)