Skip to content

Make the $enable parameter of odbc_autocommit() nullable #11909

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

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

kocsismate
Copy link
Member

No description provided.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

It's one of those functions

RETURN_THROWS();
}

if (!(conn = (odbc_connection *)zend_fetch_resource2(Z_RES_P(pv_conn), "ODBC-Link", le_conn, le_pconn))) {
RETURN_THROWS();
}

if (ZEND_NUM_ARGS() > 1) {
if (!pv_onoff_is_null) {
Copy link
Member

Choose a reason for hiding this comment

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

Minor nit, but can you change the RETVAL_TRUE to RETURN_TRUE

@Girgias
Copy link
Member

Girgias commented Aug 8, 2023

Windows failure is legit, seems like the default value is different

kocsismate and others added 3 commits August 8, 2023 13:42
@kocsismate kocsismate merged commit 038b2ae into php:master Aug 8, 2023
@kocsismate kocsismate deleted the odbc-autocommit-default branch August 8, 2023 13:32
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants