-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
php/php-src#9406 changed how gen_stub.php generated arginfo for namespaced functions. This was merged in php/php-src@f7d42f6 and included in PHP 8.2.0.
The existing arginfo for PHPC's functions was introduced in 2b03e66 and pre-dates that change. It was likely generated using an RC of PHP 8.2.
The arginfo should be regenerated so we have something produced by a stable PHP release.
This was noticed when introducing new functions in PHPC-2180 and encountering unrelated symbol lookup failures due to the arginfo headers using a different identifier than the actual PHP_FUNCTION() implementations. For example, I observed the following error after regenerating arginfo, recompiling the driver, and attempting to load mongodb.so for the test suite:
undefined symbol: zif_MongoDB_BSON_fromJSON