From: Konrad Rosenbaum Date: Sat, 19 Nov 2016 15:20:14 +0000 (+0100) Subject: compatibility with PHP 7 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c3ce03861e7e94ee5a87b8cb506b120af4d74348;p=web%2Fkonrad%2Fpack.git compatibility with PHP 7 Change-Id: I7da86e58efe71d437ccb420abb44d42cd4455040 --- diff --git a/phpbase/transaction.php b/phpbase/transaction.php index e28fe6f..a43bad6 100644 --- a/phpbase/transaction.php +++ b/phpbase/transaction.php @@ -158,6 +158,7 @@ class WobTransactionBase { /*low level XML parsing*/ global $HTTP_RAW_POST_DATA; if(isset($HTTP_RAW_POST_DATA))$txt=$HTTP_RAW_POST_DATA;else $txt=""; + if($txt=="")$txt=file_get_contents("php://input"); $xml=new DOMDocument; if(!$xml->loadXML($txt))$this->xmlParserError(); if($this->messageEncoding()==self::WobEncoding){