Skip to content

Commit 43934bf

Browse files
committed
#133: Sockets [add socket_atmark support](php/php-src#9846)
1 parent b1c37ba commit 43934bf

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"name": "socket_atmark",
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
@@ -1185,7 +1185,12 @@ private function majorReleaseDefinitionProvider(): Generator
11851185
'70', '72',
11861186
'81', '82',
11871187
],
1188-
'functions' => ['41', '42', '43', '54', '55', '70', '72'],
1188+
'functions' => [
1189+
'41', '42', '43',
1190+
'54', '55',
1191+
'70', '72',
1192+
'83',
1193+
],
11891194
'releases' => array_merge(
11901195
['41', '42', '43', '52', '54', '55'],
11911196
self::PHP_RELEASES_7,

tests/Reference/Extension/PhpBundle/Sockets/SocketsExtensionTest.php

Lines changed: 5 additions & 1 deletion
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, sockets extension Reference
1416
*
@@ -22,7 +24,7 @@ class SocketsExtensionTest extends GenericTestCase
2224
/**
2325
* Sets up the shared fixture.
2426
*
25-
* @return void
27+
* @throws Exception
2628
*/
2729
public static function setUpBeforeClass(): void
2830
{
@@ -263,6 +265,8 @@ public static function setUpBeforeClass(): void
263265
self::$optionalfunctions = array(
264266
// requires HAVE_SOCKETPAIR
265267
'socket_create_pair',
268+
// requires HAVE_SOCKATMARK
269+
'socket_atmark',
266270
);
267271

268272
parent::setUpBeforeClass();

0 commit comments

Comments
 (0)