Skip to content
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

dba_open("non-existing", "c-", "flatfile") segfaults #9155

Closed
cmb69 opened this issue Jul 26, 2022 · 0 comments
Closed

dba_open("non-existing", "c-", "flatfile") segfaults #9155

cmb69 opened this issue Jul 26, 2022 · 0 comments

Comments

@cmb69
Copy link
Member

cmb69 commented Jul 26, 2022

Description

The following code:

<?php
@unlink("foo");
dba_open("foo", "c-", "flatfile");

Resulted in a segfault.

PHP Version

PHP-8.0+

Operating System

Windows

@cmb69 cmb69 self-assigned this Jul 26, 2022
cmb69 added a commit to cmb69/php-src that referenced this issue Jul 26, 2022
We must not assume that the lock file has been opened.
cmb69 added a commit that referenced this issue Jul 27, 2022
* PHP-8.0:
  Fix GH-9155: dba_open("non-existing", "c-", "flatfile") segfaults
@cmb69 cmb69 closed this as completed in a442e29 Jul 27, 2022
cmb69 added a commit that referenced this issue Jul 27, 2022
* PHP-8.1:
  Fix GH-9155: dba_open("non-existing", "c-", "flatfile") segfaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@cmb69 and others