8000 DOMXPath::quote(string $str): string by divinity76 · Pull Request #13456 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

DOMXPath::quote(string $str): string #13456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Feb 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
oops
  • Loading branch information
divinity76 committed Feb 21, 2024
commit bedc0d026682481c7f98c141dbd6ef3d5648568e
1 change: 0 additions & 1 deletion ext/dom/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ PHP_METHOD(DOMXPath, quote) {
// need to do the concat() trick published by Robert Rossney at https://stackoverflow.com/a/1352556/1067003
// first lets calculate the length (probably faster than repeated reallocs)
output_len = strlen("concat(");
size_t i;
for (size_t i = 0; i < input_len; ++i) {
uintptr_t bytesUntilSingleQuote =
(uintptr_t)memchr(input + i, '\'', input_len - i);
Expand Down
0