[php-src] PR #13545: Rustify DOMXPath::quote

From: Date: Tue, 27 Feb 2024 22:22:00 +0000
Subject: [php-src] PR #13545: Rustify DOMXPath::quote
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25182@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13545 Author: divinity76 I am fairly certain DOMXPath::quote is bug-free due to the extensive testing done by @nielsdos , quote: >I've let it fuzz to search for crashes for a while now. It tried about 23 million cases and >all seems good. > If anyone is interested, here's the fuzz harness: > https://gist.github.com/nielsdos/44981a753808129b0222f3ef28429c69 Compile & run with: clang tmp.c -O1 -g -o ./tmp -I./main -I./Zend -I. -I./TSRM -fsanitize=fuzzer,address && ./tmp That is impressive, and made me think, what if we take it 1 step further and re-write it in Rust, with it's memory properties? For those not in the know, [Rust](https://en.wikipedia.org/wiki/Rust_(programming_language)) is a memory-safe [high-performance](https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/rust.html) language. The Linux Kernel and the Windows kernel and Mozilla Firefox has adopted Rust for it's performance and safety, and the Chromium browser developers is looking into doing the same for Chromium, Maybe PHP can adopt it too? 😄

« previous php.git-pulls (#25182) next »