[pkg-php-pear] Bug#860336: parse error in Request.php
thh at inter.net
Sat Aug 12 18:07:43 UTC 2017
On Fri, 14 Apr 2017 20:20:05 +0300, Juha Heinanen wrote:
> When I try to open a web page implemented using PHP, I get error
> [Fri Apr 14 20:04:15.147463 2017] [:error] [pid 977] [client ::1:48700] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/HTTP/Request.php on line 412
> The offending line is here:
> function setURL($url)
> $this->_url = &new Net_URL($url, $this->_useBrackets);
> This page used to work on Jessie, but now fails on Stretch.
That is due to a backwards incompatible change in PHP 7.0, see
| The result of the new statement can no longer be
| assigned to a variable by reference:
I've attached a patch, but it would be better to switch to
HTTP/Request2, I think.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2222 bytes
Desc: not available
More information about the pkg-php-pear