Skip to content

Commit fc7ab48

Browse files
committed
#133: Posix [add posix_eaccess](php/php-src#10917)
1 parent cfb3d9f commit fc7ab48

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
@@ -951,7 +951,12 @@ private function majorReleaseDefinitionProvider(): Generator
951951

952952
yield 'posix' => [
953953
'constants' => ['51', '70'],
954-
'functions' => ['40', '42', '51', '52', '70'],
954+
'functions' => [
955+
'40', '42',
956+
'51', '52',
957+
'70',
958+
'83',
959+
],
955960
'releases' => array_merge(
956961
['40', '42', '51', '52'],
957962
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)