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

PHP 7 #122

Open
antic-eye opened this issue Dec 16, 2016 · 1 comment
Open

PHP 7 #122

antic-eye opened this issue Dec 16, 2016 · 1 comment

Comments

@antic-eye
Copy link

Hi folks,

I tried to setup lampcms on a testserver:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

First problem was, that mongo was not identified by phptest.php. phpinfo() says it is installed and enabled so I just commented the test for mongo and phptest says the rest is ok.

Now when I open the index an error is thrown:

2016/12/16 13:03:43 [error] 34365#34365: *215 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Cannot use 'String' as class name as it is reserved in /opt/lampcms/lib/Lampcms/String.php on line 62" while reading response header from upstream, client: ***, server: foo.bar, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "foo.bar:8088"

Xenial is using PHP7. Does LampCMS work with PHP7?

I am using nginx as webserver with php7.0-fpm.

@akshanshjain95
Copy link

String is a reserved keyword in PHP7 and there's a class named String in String.php inside lib/Lampcms, so until that is changed, I don't think LampCMS will work with PHP7.

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

2 participants