Re: [PHP-DEV] Arginfo Mismatch For Optional Parameters

2023-07-31 Thread Joseph Montanez
Máté, Thanks! That was the issue :). All of the c code, including arginfo and stubs are auto generated on my end. I didn't know you could use stubs to generate the arg info, so will need to look into it later. Just for reference the following works: ZEND_BEGIN_ARG_INFO_EX(arginfo_vector3__constru

Re: [PHP-DEV] Arginfo Mismatch For Optional Parameters

2023-07-31 Thread Máté Kocsis
Hi, The problem is that your arginfo declares parameters of type double, while you accept the double|null type in ZPP. P.s. i'm not sure based on your message whether you use stubs for declaring symbols, but if that's not the case, then doing so is highly recommended. You can find plenty of examp

[PHP-DEV] Arginfo Mismatch For Optional Parameters

2023-07-31 Thread Joseph Montanez
Hello, I am a little confused about this while working on my extension. I've compiled PHP with --enable-debug and this only produces a fatal error when used with that flag, without debug it runs fine. "Fatal error: Arginfo / zpp mismatch during call of raylib\Vector3::__construct()" Here is the