Skip to content
This repository was archived by the owner on Jul 7, 2018. It is now read-only.

Commit 5240d14

Browse files
committed
Prepare 0.4.3 release
1 parent 0b68118 commit 5240d14

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

package.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
<email>[email protected]</email>
1717
<active>yes</active>
1818
</lead>
19-
<date>2017-03-05</date>
20-
<time>22:14:32</time>
19+
<date>2017-06-30</date>
20+
<time>17:52:14</time>
2121
<version>
22-
<release>0.4.2</release>
23-
<api>0.4.2</api>
22+
<release>0.4.3</release>
23+
<api>0.4.3</api>
2424
</version>
2525
<stability>
2626
<release>stable</release>
2727
<api>stable</api>
2828
</stability>
2929
<license uri="https://opensource.org/licenses/mit">The MIT License (MIT)</license>
3030
<notes>
31-
This is a maintenance release which drops PHP &lt; 7.0.3 support.
31+
- add PHP 7.2 compatibility support (Remi Collet &lt;[email protected]&gt;)
3232
</notes>
3333
<contents>
3434
<dir name="/">

php_ref.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ extern zend_module_entry php_ref_module_entry;
1919
#define phpext_ref_ptr &php_ref_module_entry
2020

2121
#ifndef PHP_REF_VERSION
22-
#define PHP_REF_VERSION "0.5.0"
22+
#define PHP_REF_VERSION "0.4.3"
2323
#endif
2424

2525
#ifndef PHP_REF_REVISION
26-
#define PHP_REF_REVISION "dev"
26+
#define PHP_REF_REVISION "release"
2727
#endif
2828

2929
#if PHP_VERSION_ID < 70003

scripts/refresh-package-xml.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,14 @@
9999

100100
$package = preg_replace("/{$start}.+{$end}/s", implode("\n", $files), $package);
101101

102-
file_put_contents('package-new.xml', $package);
102+
$datetime = new DateTime();
103+
$package = preg_replace("/\<date\>.+\<\/date\>/", '<date>' . $datetime->format('Y-m-d') . '</date>', $package);
104+
$package = preg_replace("/\<time\>.+\<\/time\>/", '<time>' . $datetime->format('H:i:s') . '</time>', $package);
105+
106+
107+
$new_package_filename = 'package-new.xml';
108+
if (isset($argv[1]) && '-f' == $argv[1]) {
109+
$new_package_filename = 'package.xml';
110+
}
111+
112+
file_put_contents($new_package_filename, $package);

0 commit comments

Comments
 (0)