1
0
Fork 0

Add support-nts flag for php-ext section (#12127)

* Add support-nts flag for php-ext section

Ref: https://github.com/ThePHPF/pie-design/pull/25

* Update php-ext getter/setter definition with support-nts
pull/12103/head^2
James Titcumb 2024-09-25 09:12:58 +01:00 committed by GitHub
parent c8bd0e6278
commit dfee3dec57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -311,6 +311,12 @@
"example": false,
"default": true
},
"support-nts": {
"type": "boolean",
"description": "Does this package support non-Thread Safe mode",
"example": false,
"default": true
},
"configure-options": {
"type": "array",
"description": "These configure options make up the flags that can be passed to ./configure when installing the extension.",

View File

@ -595,7 +595,7 @@ class Package extends BasePackage
/**
* Sets the list of paths added to PHP's include path.
*
* @param array{extension-name?: string, priority?: int, support-zts?: bool, configure-options?: list<array{name: string, description?: string}>}|null $phpExt List of directories.
* @param array{extension-name?: string, priority?: int, support-zts?: bool, support-nts?: bool, configure-options?: list<array{name: string, description?: string}>}|null $phpExt List of directories.
*/
public function setPhpExt(?array $phpExt): void
{

View File

@ -326,7 +326,7 @@ interface PackageInterface
/**
* Returns the settings for php extension packages
*
* @return array{extension-name?: string, priority?: int, support-zts?: bool, configure-options?: list<array{name: string, description?: string}>}|null
* @return array{extension-name?: string, priority?: int, support-zts?: bool, support-nts?: bool, configure-options?: list<array{name: string, description?: string}>}|null
*/
public function getPhpExt(): ?array;