[php-src] PR #13266: Implement "support doc comments for internal classes and functions"

From: Date: Mon, 29 Jan 2024 08:14:08 +0000
Subject: [php-src] PR #13266: Implement "support doc comments for internal classes and functions"
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24914@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13266 Author: kocsismate Fixes #13130 **This is an early preview yet, I did not yet have time to deal with the core (Zend, opcache) related changes so there will be test failures. I also have to verify that that the arginfo files are generated properly (most probably they are not yet).** The biggest change of this PR (besides changing the internal structures of functions and classes) is how function entries are generated by gen_stub.php: so far the higher level macros were used (ZEND_ME , ZEND_FALIAS etc.), but since the variation have already started to skyrocket, I decided to go with the ZEND_RAW_FENTRY macro which is the lowest level... As we now have a decent framework for generating the arginfo.h file by taking into account older PHP versions as well, I think this change is less problematic... A random example: ``` #if (PHP_VERSION_ID >= 80400) ZEND_RAW_FENTRY("zend_test_zend_ini_parse_quantity", zif_zend_test_zend_ini_parse_quantity, arginfo_zend_test_zend_ini_parse_quantity, 0, NULL) #else ZEND_RAW_FENTRY("zend_test_zend_ini_parse_quantity", zif_zend_test_zend_ini_parse_quantity, arginfo_zend_test_zend_ini_parse_quantity, 0) ``` (NULL stands for the doc_comment in the function entry generated for PHP 8.4+).

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