Skip to content

Commit 5b2784a

Browse files
committed
#133: Posix [add posix_eaccess](php/php-src#10917)
1 parent 82675d5 commit 5b2784a

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"name": "posix_eaccess",
4+
"ext_min": "8.3.0alpha1",
5+
"php_min": "8.3.0alpha1"
6+
}
7+
]

src/Application/Command/Init/InitHandler.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,12 @@ private function majorReleaseDefinitionProvider(): Generator
10071007

10081008
yield 'posix' => [
10091009
'constants' => ['51', '70'],
1010-
'functions' => ['40', '42', '51', '52', '70'],
1010+
'functions' => [
1011+
'40', '42',
1012+
'51', '52',
1013+
'70',
1014+
'83',
1015+
],
10111016
'releases' => array_merge(
10121017
['40', '42', '51', '52'],
10131018
self::PHP_RELEASES_7,

tests/Reference/Extension/PhpBundle/Posix/PosixExtensionTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;
1111

12+
use Exception;
13+
1214
/**
1315
* Unit tests for PHP_CompatInfo_Db, posix extension Reference
1416
*
@@ -19,4 +21,18 @@
1921
*/
2022
class PosixExtensionTest extends GenericTestCase
2123
{
24+
/**
25+
* Sets up the shared fixture.
26+
*
27+
* @throws Exception
28+
*/
29+
public static function setUpBeforeClass(): void
30+
{
31+
self::$optionalfunctions = [
32+
// Requires HAVE_EACCESS
33+
'posix_eaccess',
34+
];
35+
36+
parent::setUpBeforeClass();
37+
}
2238
}

0 commit comments

Comments
 (0)