Skip to content

Commit

Permalink
Merge branch 'krakjoe:develop' into build
Browse files Browse the repository at this point in the history
  • Loading branch information
alphp authored Dec 9, 2024
2 parents dfdc810 + 15f808f commit 3262709
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Use `develop` branch for development, use `release` branch for last stable relea

* **Microsoft Windows**: use zip archive from [https://windows.php.net/downloads/pecl/releases/pcov/](https://windows.php.net/downloads/pecl/releases/pcov/)

* **Fedora** 29 and up: use the [php-pecl-pcov](https://apps.fedoraproject.org/packages/php-pecl-pcov) package
* **Fedora** 29 and up: use the [php-pecl-pcov](https://packages.fedoraproject.org/pkgs/php-pecl-pcov/php-pecl-pcov/) package

`dnf install php-pecl-pcov`

Expand Down
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "pecl/pcov",
"type": "php-ext",
"license": "PHP-3.01",
"description": "PCOV - CodeCoverage compatible driver for PHP",
"require": {
"php": ">= 7.1.0"
},
"php-ext": {
"extension-name": "pcov",
"configure-options": [
{
"name": "enable-pcov",
"description": "Enable php coverage support"
}
]
}
}
4 changes: 4 additions & 0 deletions pcov.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ static zend_always_inline zend_bool php_pcov_wants(zend_string *filename) { /* {
ZSTR_VAL(filename), ZSTR_LEN(filename),
#endif
&match, NULL,
#if PHP_VERSION_ID >= 80400
false, 0, 0);
#else
0, 0, 0, 0);
#endif

if (zend_is_true(&match)) {
zend_hash_add_empty_element(
Expand Down
2 changes: 1 addition & 1 deletion php_pcov.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
extern zend_module_entry pcov_module_entry;
#define phpext_pcov_ptr &pcov_module_entry

#define PHP_PCOV_VERSION "1.0.11"
#define PHP_PCOV_VERSION "1.0.13-dev"

#ifdef PHP_WIN32
# define PHP_PCOV_API __declspec(dllexport)
Expand Down

0 comments on commit 3262709

Please sign in to comment.