From 8d7bc5f10ec38f903a53ca12293266f9161c465b Mon Sep 17 00:00:00 2001 From: Justinas Date: Tue, 14 Jul 2015 17:53:02 +0300 Subject: [PATCH 1/2] Mistyped property for SoapClient options Attachment type is set to wrong class property. It should set "attachment_type" option to "soapOptions" class property, not to "options". Since "soapOptions" is passed to BeSimple\SoapClient\SoapClient constructor and latter to configureMime() where it is being checked for 'attachment_type' option --- src/BeSimple/SoapClient/SoapClientBuilder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BeSimple/SoapClient/SoapClientBuilder.php b/src/BeSimple/SoapClient/SoapClientBuilder.php index 59b5bba3..810953ba 100644 --- a/src/BeSimple/SoapClient/SoapClientBuilder.php +++ b/src/BeSimple/SoapClient/SoapClientBuilder.php @@ -209,7 +209,7 @@ public function withProxy($host, $port, $login = null, $password = null, $auth = */ public function withBase64Attachments() { - $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64; + $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64; return $this; } @@ -221,7 +221,7 @@ public function withBase64Attachments() */ public function withSwaAttachments() { - $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA; + $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA; return $this; } @@ -233,7 +233,7 @@ public function withSwaAttachments() */ public function withMtomAttachments() { - $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM; + $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM; return $this; } From c62ae9827cd66d466c4a8364afee06426184df0e Mon Sep 17 00:00:00 2001 From: Justinas Date: Sun, 26 Jul 2015 12:06:05 +0300 Subject: [PATCH 2/2] Update .travis.yml Added PHP configuration option `always_populate_raw_post_data = -1` for PHP v5.6. Since by default it is set to `0` and if PHP receives POST data with not `Content-type: application/x-www-form-urlencoded` deprecated message is thrown which fails Travis build --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 6458c717..c1c31834 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ before_script: - composer self-update - composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update - composer update --no-interaction --prefer-source + - echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/5.6/etc/php.ini - ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh - ./src/BeSimple/SoapClient/Tests/bin/axis.sh