[php-src] PR #19359: ZPP: Reduce code bloat for Z_PARAM_STR

From: Date: Mon, 04 Aug 2025 01:57:28 +0000
Subject: [php-src] PR #19359: ZPP: Reduce code bloat for Z_PARAM_STR
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32777@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19359 Author: Girgias This idea is based on @nielsdos previous PR to reduce code bloat: https://github.com/php/php-src/pull/18436 To do so we create a specialized function to handle parameters that only accept strings and not null such that we can assign the zend_string to the destination directly. I don't actually know how to get the assembly, so this might be completely off the marks, but it's late, and the idea came to me an hour ago, and I couldn't let it go. For reference we have 772 usages of Z_PARAM_STR (found using git grep -o "Z_PARAM_STR" | wc -l) This approach should also work for the "path" and "C string" version, and more generally for the pure HashTable and object FZPP specifier

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