Skip to content

Commit 7db32ad

Browse files
authored
Refactor dba_(p)open() to be more sensible (#7610)
Actually use ZPP Throw ValueErrors for invalid values Use dedicated struc members for file permission and map size instead of a zval stack
1 parent a6cc76e commit 7db32ad

22 files changed

+293
-262
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ PHP 8.2 UPGRADE NOTES
7777
========================================
7878

7979
- DBA
80+
. dba_open() and dba_popen() now have the following enforced function signature
81+
dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0)
8082
. dba_fetch()'s optional skip argument is now at the end in line with
8183
PHP userland semantics its signature now is:
8284
dba_fetch(string|array $key, $dba, int $skip = 0): string|false

0 commit comments

Comments
 (0)