Skip to content

Commit 9b4d6f4

Browse files
author
Rudi Theunissen
committed
Local development script, v1.5.0
1 parent e1d27d3 commit 9b4d6f4

File tree

9 files changed

+41
-19
lines changed

9 files changed

+41
-19
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
7-
- 7.3
84
- 7.4
5+
- 8.0
6+
- 8.1
7+
- 8.2
8+
- 8.3
99
- nightly
1010

1111
env:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project follows [Semantic Versioning](http://semver.org/).
44

5+
## [1.5.0] - 2023-01-19
6+
- Fix object handlers to support PHP 8.3 (thank you @Majkl578)
7+
58
## [1.4.0] - 2021-02-16
69
- Added support for PHP 8 (thank you @zlodes)
710
- Added support for mpdecimal 2.5+ #48

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM php:8.3-alpine
2+
3+
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/main mpdecimal-dev
4+
5+
RUN apk add --no-cache $PHPIZE_DEPS valgrind
6+
7+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# PHP Decimal Extension
22

3-
[![Build Status](https://travis-ci.org/php-decimal/ext-decimal.svg?branch=master)](https://travis-ci.org/php-decimal/ext-decimal)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/lg5nw5tqgpmv1c33?svg=true)](https://ci.appveyor.com/project/rtheunissen/php-decimal)
5-
[![PECL](https://img.shields.io/badge/PECL-1.4.0-blue.svg)](https://pecl.php.net/package/decimal)
3+
[![PECL](https://img.shields.io/badge/PECL-1.5.0-blue.svg)](https://pecl.php.net/package/decimal)
64

75
Correctly-rounded, arbitrary-precision decimal arithmetic for PHP
86

97
## Documentation
108

11-
See http://php-decimal.io
9+
See https://php-decimal.github.io/
1210

1311
## Dependencies
1412

15-
- PHP 7
13+
- PHP 7 or 8
1614
- [mpdecimal](http://www.bytereef.org/mpdecimal/download.html)
1715

1816
## Install
@@ -27,6 +25,10 @@ Windows users can find *.dll* files under [releases](https://github.com/php-deci
2725

2826
You can do this temporarily using `php -dextension=decimal.so` or by adding `extension=decimal.so` to your INI. If you manage PHP with [phpbrew](https://github.com/phpbrew/phpbrew), you can use `phpbrew ext enable decimal`.
2927

28+
## Local development
29+
30+
Docker: `./develop.sh`
31+
3032
## Tests
3133

3234
```

develop.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker-compose run --rm --build --interactive --tty dev /bin/sh

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
dev:
3+
build:
4+
context: "."
5+
volumes:
6+
- ".:/ext-decimal"
7+
- "./ext-decimal.ini:/usr/local/etc/php/conf.d/ext-decimal.ini"
8+
working_dir: "/ext-decimal"

ext-decimal.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extension=decimal.so

package.xml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,27 @@
22
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
33
<name>decimal</name>
44
<channel>pecl.php.net</channel>
5-
<summary>Arbitrary precision floating-point decimal</summary>
6-
<description>Adds support for correctly-rounded arbitrary precision decimal floating-point arithmetic in PHP 7</description>
5+
<summary>Arbitrary precision decimal arithmetic</summary>
6+
<description>Correctly-rounded arbitrary precision decimal floating-point arithmetic</description>
77
<lead>
88
<name>Rudi Theunissen</name>
99
<user>rtheunissen</user>
1010
<email>rtheunissen@php.net</email>
1111
<active>yes</active>
1212
</lead>
13-
<date>2021-02-16</date>
14-
<time>20:26:11</time>
13+
<date>2024-01-19</date>
14+
<time>21:24:10</time>
1515
<version>
16-
<release>1.4.0</release>
17-
<api>1.4.0</api>
16+
<release>1.5.0</release>
17+
<api>1.5.0</api>
1818
</version>
1919
<stability>
2020
<release>stable</release>
2121
<api>stable</api>
2222
</stability>
2323
<license uri="https://opensource.org/licenses/MIT">MIT License</license>
2424
<notes>
25-
- Added support for PHP 8 (thank you @zlodes)
26-
- Added support for mpdecimal 2.5+
27-
- Fixed internal exception when passing negative decimal places to toFixed
25+
- Fix object handlers for PHP 8.3 (thank you @Majkl578)
2826
</notes>
2927
<contents>
3028
<dir name="/">

php_decimal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include "ext/spl/spl_exceptions.h"
5050
#include "mpdecimal.h"
5151

52-
#define PHP_DECIMAL_VERSION "1.4.0"
52+
#define PHP_DECIMAL_VERSION "1.5.0"
5353

5454
#define PHP_DECIMAL_EXTNAME "decimal"
5555

0 commit comments

Comments
 (0)