Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected 'new' (T_NEW) in /var/www/html/phpdoctor/classes/phpDoctor.php on line 561 #79

Open
jamjar919 opened this issue Apr 20, 2017 · 3 comments

Comments

@jamjar919
Copy link

jamjar919 commented Apr 20, 2017

PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/html/phpdoctor/classes/phpDoctor.php on line 561

Relevant lines reads:

$rootDoc =& new rootDoc($this);

New clone from Github repo on Ubuntu 16.04.

@jamjar919
Copy link
Author

Running PHP version 7.0.15-0ubuntu0.16.04.4

@jamjar919
Copy link
Author

Looking at the docs in Migrating from PHP 5.6.x to PHP 7.0.x, It appears this is a PHP 7 issue - Under the section 'New objects cannot be assigned by reference', the line $c =& new C; is added as example of invalid code.

@jamjar919
Copy link
Author

Blindly tried to fix in https://github.com/jamjar919/phpdoctor but produces duplicate output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant