FirebirdSQL / php-firebird

Firebird PHP driver
https://firebirdsql.org/en/php-driver/
Other
66 stars 17 forks source link

Fix arg info #37

Closed Jon4t4n closed 1 year ago

Jon4t4n commented 1 year ago

When running a debug build of PHP, the engine verifies that the info supplied in the ZEND_BEGIN_ARG_INFO_EX macro is correct. The last parameter of the ZEND_BEGIN_ARG_INFO_EX macro is the number of required arguments.

For example, if we try to invoke ibase_commit with zero arguments, we get the following error message:

Fatal error: Arginfo / zpp mismatch during call of ibase_commit() in test.php on line 123

This PR fixes this problem for ibase_commit, ibase_commit_ret, ibase_rollback, and ibase_rollback_ret.

Jon4t4n commented 1 year ago

Closing. This was folded into https://github.com/FirebirdSQL/php-firebird/pull/39.