Skip to content

Commit 8e5a3d7

Browse files
committed
Release Weakref 0.3.0 with support for PHP7
1 parent 11a3610 commit 8e5a3d7

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

config.w32

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
ARG_ENABLE("weakref", "Weakref support", "no");
44

55
if (PHP_WEAKREF != "no") {
6-
EXTENSION("weakref", "php_weakref.c wr_weakref.c wr_weakmap.c", PHP_WEAKREF_SHARED);
6+
EXTENSION("weakref", "php_weakref.c wr_store.c wr_weakref.c wr_weakmap.c", PHP_WEAKREF_SHARED);
77
}

package.xml

+19-7
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ http://pear.php.net/dtd/package-2.0.xsd">
1515
<email>[email protected]</email>
1616
<active>yes</active>
1717
</lead>
18-
<date>2014-10-08</date>
18+
<date>2016-01-11</date>
1919
<version>
20-
<release>0.2.5</release>
21-
<api>0.2.5</api>
20+
<release>0.3.0</release>
21+
<api>0.3.0</api>
2222
</version>
2323
<stability>
2424
<release>beta</release>
2525
<api>beta</api>
2626
</stability>
2727
<license uri="http://www.php.net/license">PHP</license>
2828
<notes>
29-
- Fix crash when freeing circular weakmap/ref (issues #13)
29+
- Support PHP7 (Big thanks to Julien Pauli for helping with the upgrade) (issue #19)
30+
- Add support for cloning WeakMap
31+
- Iterating WeakMap now yields objects as keys (issue #17)
3032
</notes>
3133
<contents>
3234
<dir name="/">
@@ -37,6 +39,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
3739
<file role='src' name='config.w32'/>
3840
<file role='src' name='php_weakref.c'/>
3941
<file role='src' name='php_weakref.h'/>
42+
<file role='src' name='wr_store.c'/>
43+
<file role='src' name='wr_store.h'/>
4044
<file role='src' name='wr_weakref.c'/>
4145
<file role='src' name='wr_weakref.h'/>
4246
<file role='src' name='wr_weakmap.c'/>
@@ -46,9 +50,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
4650
<dependencies>
4751
<required>
4852
<php>
49-
<min>5.3.0</min>
50-
<max>5.6.0</max>
51-
<exclude>6.0.0</exclude>
53+
<min>7.0.0</min>
5254
</php>
5355
<pearinstaller>
5456
<min>1.4.0b1</min>
@@ -58,6 +60,16 @@ http://pear.php.net/dtd/package-2.0.xsd">
5860
<providesextension>weakref</providesextension>
5961
<extsrcrelease/>
6062
<changelog>
63+
<release>
64+
<stability><release>beta</release><api>beta</api></stability>
65+
<version><release>0.3.0</release><api>0.3.0</api></version>
66+
<date>2016-01-11</date>
67+
<notes>
68+
- Support PHP7 (Big thanks to Julien Pauli for helping with the upgrade) (issue #19)
69+
- Add support for cloning WeakMap
70+
- Iterating WeakMap now yields objects as keys (issue #17)
71+
</notes>
72+
</release>
6173
<release>
6274
<stability><release>beta</release><api>beta</api></stability>
6375
<version><release>0.2.5</release><api>0.2.5</api></version>

php_weakref.c

+2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ PHP_MINIT_FUNCTION(weakref) /* {{{ */
4141
PHP_MINIT(wr_weakref)(INIT_FUNC_ARGS_PASSTHRU);
4242
PHP_MINIT(wr_weakmap)(INIT_FUNC_ARGS_PASSTHRU);
4343
}
44+
/* }}} */
4445

4546
PHP_RINIT_FUNCTION(weakref) /* {{{ */
4647
{
4748
wr_store_init(TSRMLS_C);
4849
return SUCCESS;
4950
}
51+
/* }}} */
5052

5153
PHP_RSHUTDOWN_FUNCTION(weakref) /* {{{ */
5254
{

php_weakref.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <php.h>
2525

26-
#define PHP_WEAKREF_VERSION "0.2.5"
26+
#define PHP_WEAKREF_VERSION "0.3.0"
2727

2828
#ifdef PHP_WIN32
2929
#define WEAKREF_API __declspec(dllexport)

0 commit comments

Comments
 (0)