Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 99cc873

Browse files
committed
Drop PHP 7.0 support
1 parent 943710a commit 99cc873

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dist: trusty
44
language: php
55

66
php:
7-
- 7.0
87
- 7.1
98
- nightly
109

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PHP extension for V8 JavaScript engine
44
[![Build Status](https://travis-ci.org/pinepain/php-v8.svg)](https://travis-ci.org/pinepain/php-v8)
55
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/pinepain/php-v8/master/LICENSE)
66

7-
This extension is for PHP 7 only.
7+
**This extension requires PHP >= 7.1**. Last version that supports PHP 7.0 is v0.1.9.
88

99
**This extension is still under heavy development and its public API may change without any warning. Use at your own risk.**
1010

config.m4

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ PHP_ARG_WITH(v8, for V8 Javascript Engine,
22
[ --with-v8 Include V8 JavaScript Engine])
33

44
if test "$PHP_V8" != "no"; then
5+
6+
AC_MSG_CHECKING([Check for supported PHP versions])
7+
PHP_REF_FOUND_VERSION=`${PHP_CONFIG} --version`
8+
PHP_REF_FOUND_VERNUM=`${PHP_CONFIG} --vernum`
9+
10+
if test "$PHP_REF_FOUND_VERNUM" -lt "70100"; then
11+
AC_MSG_ERROR([not supported. PHP version >= 7.1 required (found $PHP_REF_FOUND_VERSION)])
12+
else
13+
AC_MSG_RESULT([supported ($PHP_REF_FOUND_VERSION)])
14+
fi
15+
516
V8_LIB_DIR=""
617
V8_INCLUDE_DIR=""
718

package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
<dependencies>
379379
<required>
380380
<php>
381-
<min>7.0</min>
381+
<min>7.1</min>
382382
</php>
383383
<pearinstaller>
384384
<min>1.4.0</min>

php_v8.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ extern zend_module_entry php_v8_module_entry;
5050
#define PHP_V8_LIBV8_VERSION "undefined"
5151
#endif
5252

53+
#if PHP_VERSION_ID < 70100
54+
// should never get her, but just in case
55+
#error PHP >= 7.1 required
56+
#endif
57+
5358

5459
ZEND_BEGIN_MODULE_GLOBALS(v8)
5560
bool v8_initialized;
@@ -71,10 +76,6 @@ ZEND_END_MODULE_GLOBALS(v8)
7176
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, NULL, allow_null)
7277
#endif
7378

74-
#if PHP_VERSION_ID < 70100
75-
#define zend_get_executed_scope() EG(scope)
76-
#endif
77-
7879
#define PHP_V8_IS_UP_AND_RUNNING() (zend_is_executing() && !CG(unclean_shutdown))
7980

8081
#define PHP_V8_ME(classname, name, flags) PHP_ME(classname, name, arginfo_##name, flags)

scripts/provision/provision.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ echo Provisioning...
55
# Add Ondřej Surý's PPA with co-installable PHP versions:
66
sudo add-apt-repository -y ppa:ondrej/php
77
# Add libv8 PPA:
8-
sudo add-apt-repository ppa:pinepain/libv8-6.1
8+
sudo add-apt-repository ppa:pinepain/libv8-6.2
99

1010
# Let's update packages list:
1111
sudo apt-get update
@@ -19,10 +19,9 @@ sudo apt-get install -y git htop curl pkgconf
1919

2020

2121
# Build and development requirements
22-
sudo apt-get install -y libv8-6.1 libv8-6.1-dev libv8-6.1-dbg
22+
sudo apt-get install -y libv8-6.2 libv8-6.2-dev libv8-6.2-dbg
2323
sudo apt-get install -y dh-make valgrind
2424
sudo apt-get install -y libssl-dev openssl
25-
sudo apt-get install -y php7.0 php7.0-cli php7.0-dev php7.0-fpm
2625
sudo apt-get install -y php7.1 php7.1-cli php7.1-dev php7.1-fpm
2726
sudo apt-get install -y php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev bison libbz2-dev libreadline-dev
2827
sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev

0 commit comments

Comments
 (0)