-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from dshanske/octfixes
October Fixes
- Loading branch information
Showing
38 changed files
with
1,570 additions
and
1,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules/* | |
sass/.sass-cache/* | ||
sass/svg/intermediate/* | ||
sass/symbol/* | ||
vendor/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,108 @@ | ||
sudo: false | ||
dist: trusty | ||
language: php | ||
dist: precise | ||
sudo: required | ||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
php: | ||
- 5.3 | ||
- 5.6 | ||
- 7 | ||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
after_success: curl -L https://raw.githubusercontent.com/miya0001/travis2wpplugin/master/deploy.sh | ||
| bash | ||
env: | ||
matrix: | ||
- WP_VERSION=latest WP_MULTISITE=0 | ||
global: | ||
- WP_TRAVISCI=travis:phpunit | ||
- SVN_REPO: https://plugins.svn.wordpress.org/indieweb-post-kinds/ | ||
- GH_REF: https://github.com/dshanske/indieweb-post-kinds.git | ||
- secure: SKEHj0zThPfUhTyTKtgNuzqPp+uvdUUcMWT0ZqyARjnOGII6dO2UDzQIUc5WolgFd/HYIFfaDzBd3+FPdDTunPiwIHxIYcyr2EjvEQLJYM1zqTAUtjEPpztemKRtrnbNd1TQgWIIqIaNk//WuYkuW7+vc/HsyyTm6PGEbHK6zj11UG8ZYT8ru/Sw+PxHebwlz3d+8H6iEvFSX/rkc1kMpntwNMoFYb9PgwhkvtJ6KkVRKu4uMCkXf6BnlVqJSAGdTn+XckDeY+pwgsWGIAPakLD9MKxAq2MMqfmCxTK8uMN3VBetlbbkT7JMaYyU95gw3+3QrcPLlmRLNdbiuguD39J820wjtflEUNCJ3Heg8JF0q4z/69s6n3LEinDxtJNesK/0G//nYjsLaKXARFfnvLSRbhZvxeePsmEWTxEGt9KvoW7iD/vnwYmf1aYeobwBfkCkvA7t5FSNUTMvI8yo33DWdOyFKdWRL0V2JaaOh0H81kaXOEBayplmDfdbNX7y77/bLU863V0JkORSsJNv7ZGl8zR77ja/s1Ep0F3d43QhIoQk40w8SckpLEx+2bUs3J2jNpBeike5cut7RuSPTt7G2AiipTfmPa666f+CsmfNAjd2MYFfB2NL5ZHwjmOuxYE6hicdKt2vwOjLa31hLY/u3bT8s346w+DzIPZmItU= | ||
matrix: | ||
include: | ||
- php: 7.2 | ||
- php: 7.1 | ||
- php: 7.0 | ||
- php: 5.6 | ||
env: WP_VERSION=latest WP_MULTISITE=1 WP_PULUGIN_DEPLOY=1 | ||
- php: 5.6 | ||
env: WP_PULUGIN_DEPLOY=1 | ||
- php: 5.6 | ||
env: WP_TRAVISCI=travis:phpcs | ||
- php: 5.5 | ||
- php: 5.4 | ||
- php: 5.3 | ||
dist: precise | ||
before_script: | ||
- export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- | | ||
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then | ||
composer global require "phpunit/phpunit=5.7.*" | ||
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then | ||
composer global require "phpunit/phpunit=4.8.*" | ||
# Remove Xdebug for a huge performance increase: | ||
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then | ||
phpenv config-rm xdebug.ini | ||
else | ||
echo "xdebug.ini does not exist" | ||
fi | ||
- bash bin/install-wp-tests.sh wordpress root '' localhost $WP_VERSION | ||
script: phpunit | ||
- | | ||
# Export Composer's global bin dir to PATH: | ||
composer config --list --global | ||
export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` | ||
- | | ||
# Install the specified version of PHPUnit depending on the PHP version: | ||
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then | ||
case "$TRAVIS_PHP_VERSION" in | ||
7.2|7.1|7.0|nightly) | ||
echo "Using PHPUnit 6.x" | ||
composer global require "phpunit/phpunit:^6" | ||
;; | ||
5.6|5.5|5.4|5.3) | ||
echo "Using PHPUnit 4.x" | ||
composer global require "phpunit/phpunit:^4" | ||
;; | ||
5.2) | ||
# Do nothing, use default PHPUnit 3.6.x | ||
echo "Using default PHPUnit, hopefully 3.6" | ||
;; | ||
*) | ||
echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" | ||
exit 1 | ||
;; | ||
esac | ||
fi | ||
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then | ||
composer install | ||
fi | ||
- mysql --version | ||
- phpenv versions | ||
- php --version | ||
- php -m | ||
- which phpunit | ||
- phpunit --version | ||
- curl --version | ||
- grunt --version | ||
- git --version | ||
- svn --version | ||
- locale -a | ||
before_install: | ||
- export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- | | ||
if [[ ! -z "$WP_VERSION" ]] ; then | ||
set -e | ||
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION | ||
set +e | ||
fi | ||
script: | ||
- | | ||
if [[ ! -z "$WP_VERSION" ]] ; then | ||
# Run the build because otherwise there will be a bunch of warnings about | ||
# failed `stat` calls from `filemtime()`. | ||
echo Running with the following versions: | ||
php -v | ||
phpunit --version | ||
# Run PHPUnit tests | ||
phpunit || exit 1 | ||
WP_MULTISITE=1 phpunit || exit 1 | ||
fi | ||
- | | ||
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then | ||
./vendor/bin/phpcs -p -s -v -n --standard=./phpcs.ruleset.xml --extensions=php | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This directory contains patches required to build | ||
older versions of PHP on trusty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- ext/dom/node.c 2012-08-06 17:49:48.826716692 +0800 | ||
+++ ext/dom/node.c 2012-08-06 17:52:47.633484660 +0800 | ||
@@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA | ||
RETVAL_FALSE; | ||
} else { | ||
if (mode == 0) { | ||
+#ifdef LIBXML2_NEW_BUFFER | ||
+ ret = xmlOutputBufferGetSize(buf); | ||
+#else | ||
ret = buf->buffer->use; | ||
+#endif | ||
if (ret > 0) { | ||
+#ifdef LIBXML2_NEW_BUFFER | ||
+ RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret, 1); | ||
+#else | ||
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1); | ||
+#endif | ||
} else { | ||
RETVAL_EMPTY_STRING(); | ||
} | ||
--- ext/dom/documenttype.c 2012-08-06 18:02:16.019640870 +0800 | ||
+++ ext/dom/documenttype.c 2012-08-06 18:06:16.612228905 +0800 | ||
@@ -205,7 +205,13 @@ int dom_documenttype_internal_subset_rea | ||
if (buff != NULL) { | ||
xmlNodeDumpOutput (buff, NULL, (xmlNodePtr) intsubset, 0, 0, NULL); | ||
xmlOutputBufferFlush(buff); | ||
+ | ||
+#ifdef LIBXML2_NEW_BUFFER | ||
+ ZVAL_STRINGL(*retval, xmlOutputBufferGetContent(buff), | ||
+ xmlOutputBufferGetSize(buff), 1); | ||
+#else | ||
ZVAL_STRINGL(*retval, buff->buffer->content, buff->buffer->use, 1); | ||
+#endif | ||
(void)xmlOutputBufferClose(buff); | ||
return SUCCESS; | ||
} | ||
--- ext/simplexml/simplexml.c 2012-08-06 18:10:44.621017026 +0800 | ||
+++ ext/simplexml/simplexml.c 2012-08-06 18:12:48.016270419 +0800 | ||
@@ -1417,7 +1417,12 @@ SXE_METHOD(asXML) | ||
|
||
xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding); | ||
xmlOutputBufferFlush(outbuf); | ||
+#ifdef LIBXML2_NEW_BUFFER | ||
+ RETVAL_STRINGL((char *)xmlOutputBufferGetContent(outbuf), | ||
+ xmlOutputBufferGetSize(outbuf), 1); | ||
+#else | ||
RETVAL_STRINGL((char *)outbuf->buffer->content, outbuf->buffer->use, 1); | ||
+#endif | ||
xmlOutputBufferClose(outbuf); | ||
} | ||
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- ext/openssl/xp_ssl.c | ||
+++ ext/openssl/xp_ssl.c | ||
@@ -328,10 +328,12 @@ static inline int php_openssl_setup_cryp | ||
sslsock->is_client = 1; | ||
method = SSLv23_client_method(); | ||
break; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
case STREAM_CRYPTO_METHOD_SSLv2_CLIENT: | ||
sslsock->is_client = 1; | ||
method = SSLv2_client_method(); | ||
break; | ||
+#endif | ||
case STREAM_CRYPTO_METHOD_SSLv3_CLIENT: | ||
sslsock->is_client = 1; | ||
method = SSLv3_client_method(); | ||
@@ -348,10 +350,12 @@ static inline int php_openssl_setup_cryp | ||
sslsock->is_client = 0; | ||
method = SSLv3_server_method(); | ||
break; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
case STREAM_CRYPTO_METHOD_SSLv2_SERVER: | ||
sslsock->is_client = 0; | ||
method = SSLv2_server_method(); | ||
break; | ||
+#endif | ||
case STREAM_CRYPTO_METHOD_TLS_SERVER: | ||
sslsock->is_client = 0; | ||
method = TLSv1_server_method(); | ||
@@ -629,9 +633,11 @@ static inline int php_openssl_tcp_sockop | ||
case STREAM_CRYPTO_METHOD_SSLv23_CLIENT: | ||
sock->method = STREAM_CRYPTO_METHOD_SSLv23_SERVER; | ||
break; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
case STREAM_CRYPTO_METHOD_SSLv2_CLIENT: | ||
sock->method = STREAM_CRYPTO_METHOD_SSLv2_SERVER; | ||
break; | ||
+#endif | ||
case STREAM_CRYPTO_METHOD_SSLv3_CLIENT: | ||
sock->method = STREAM_CRYPTO_METHOD_SSLv3_SERVER; | ||
break; | ||
@@ -911,9 +917,11 @@ php_stream *php_openssl_ssl_socket_facto | ||
if (strncmp(proto, "ssl", protolen) == 0) { | ||
sslsock->enable_on_connect = 1; | ||
sslsock->method = STREAM_CRYPTO_METHOD_SSLv23_CLIENT; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
} else if (strncmp(proto, "sslv2", protolen) == 0) { | ||
sslsock->enable_on_connect = 1; | ||
sslsock->method = STREAM_CRYPTO_METHOD_SSLv2_CLIENT; | ||
+#endif | ||
} else if (strncmp(proto, "sslv3", protolen) == 0) { | ||
sslsock->enable_on_connect = 1; | ||
sslsock->method = STREAM_CRYPTO_METHOD_SSLv3_CLIENT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4", | ||
"wimg/php-compatibility": "dev-master", | ||
"wp-coding-standards/wpcs": "dev-master" | ||
}, | ||
"scripts": { | ||
"lint": "phpcs" | ||
} | ||
} |
Oops, something went wrong.