Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 15, 2025

No description provided.

@Girgias Girgias force-pushed the pgsql-abstract-class branch 2 times, most recently from 4755ad0 to 7726761 Compare October 15, 2025 13:15
@Girgias Girgias force-pushed the pgsql-abstract-class branch from 4db2580 to dc642e8 Compare October 15, 2025 14:25
@Girgias Girgias marked this pull request as ready for review October 15, 2025 14:25
@Girgias Girgias requested a review from devnexen as a code owner October 15, 2025 14:25
@Girgias
Copy link
Member Author

Girgias commented Oct 15, 2025

@devnexen do you know why Windows fails, it says there is an issue with the CLEAN section of the test

@devnexen
Copy link
Member

I have no real idea honestly.

} catch(Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}

Copy link
Member

Choose a reason for hiding this comment

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

nit: would it be possible to add the closing tag ?

Copy link
Member

Choose a reason for hiding this comment

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

Might also be the reason windows is confused

$result = pg_query($db, $sql);
var_dump(pg_fetch_object($result, NULL, 'E'));
} catch(Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe try without this last PHP_EOL wdyt ?


ZVAL_COPY_VALUE(&dataset, return_value);
object_init_ex(return_value, ce);
if (UNEXPECTED(EG(exception))) {
Copy link
Member

Choose a reason for hiding this comment

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

Check the return value of object_init_ex instead

object_init_ex(return_value, ce);
if (UNEXPECTED(EG(exception))) {
zval_ptr_dtor(&dataset);
zval_ptr_dtor(return_value);
Copy link
Member

Choose a reason for hiding this comment

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

Drop this line , zval_ptr_dtor of the return value followed by a return statement is always wrong.

Copy link
Member

Choose a reason for hiding this comment

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

In fact, zval_ptr_dtor(&dataset); should also be dropped as dataset is a borrow of the return value.

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.

3 participants