Skip to content

Fix arg info #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Fix arg info #37

wants to merge 4 commits into from

Conversation

Jon4t4n
Copy link
Contributor

@Jon4t4n Jon4t4n commented Dec 25, 2022

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.

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.

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 patch corrects this by setting the value to zero to match how the
method is implemented.
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.

If we try to invoke `ibase_rollback` with zero arguments, we get the
following error message:

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

This patch corrects this by setting the value to zero to match how the
method is implemented.
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.

If we try to invoke `ibase_commit_ret` with zero arguments, we get the
following error message:

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

This patch corrects this by setting the value to zero to match how the
method is implemented.
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.

If we try to invoke `ibase_rollback_ret` with zero arguments, we get the
following error message:

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

This patch corrects this by setting the value to zero to match how the
method is implemented.
@Jon4t4n
Copy link
Contributor Author

Jon4t4n commented Dec 27, 2022

Closing. This was folded into #39.

@Jon4t4n Jon4t4n closed this Dec 27, 2022
@Jon4t4n Jon4t4n deleted the fix-arg-info branch December 27, 2022 14:17
Copy link
Collaborator

@MartinKoeditz MartinKoeditz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't find any problems. Will merge the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants