OSDN Git Service

BugTrack2/369 Support PHP7 - Remove '& new Class' notation
authorumorigu <umorigu@gmail.com>
Mon, 4 Jan 2016 03:19:26 +0000 (12:19 +0900)
committerumorigu <umorigu@gmail.com>
Mon, 4 Jan 2016 03:19:26 +0000 (12:19 +0900)
commitb1489f40b55e74dec22f0066bfb07bf1e835132c
tree6c4c32d3f071bed12a8d31317feeb79184629299
parent4752aff02f23103dde268ec5de6e1426218ae70f
BugTrack2/369 Support PHP7 - Remove '& new Class' notation

Backward incompatible change of PHP7:

New objects cannot be assigned by reference
 The result of the new statement can no longer be assigned to a variable

http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.new-by-ref

Deprecated code:

```
class C {}
$c =& new C;
```

Solution:

```
class C {}
$c = new C;
```

These code changes will cause PHP4 imconpatibility in some cases.
lib/config.php
lib/convert_html.php
lib/func.php
lib/link.php
plugin/attach.inc.php
plugin/map.inc.php
plugin/tracker.inc.php