[php-src] PR #15705: Generated arginfo header files: remove empty zend_function_entry arrays

From: Date: Sun, 01 Sep 2024 22:25:52 +0000
Subject: [php-src] PR #15705: Generated arginfo header files: remove empty zend_function_entry arrays
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28349@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15705 Author: DanielEScherzer When a class (or enum) has no methods, rather than using an array that only contains ZEND_FE_END, use NULL for the functions. The implementation of class registration for internal classes, do_register_internal_class() in zend_API.c, already skips classes where the functions are NULL. By removing these unneeded arrays, we can reduce the size of the header files, while also removing an unneeded call to zend_register_functions() for each internal class with no extra methods.

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