Nette & PHPNG – not working

Notice: This thread is very old.
zener
Member | 17
+
0
-

Hi, I wanted to test new PHP version (5.7 – PHPNG). I read it should be much more faster than older version. So I installed new version of PHP, copied my project (in Nette) and… ERROR :-(

I have the newer (not dev) version of Nette – 2.2.3. Does Nette support PHPNG or not?

enumag
Member | 2118
+
0
-

I guess nobody tested it yet. If you can provide more information about the error, we can fix it.

Jan Tvrdík
Nette guru | 2595
+
0
-

There is no such think as „PHP 5.7 – PHPNG“, the master version is 7.0.0-dev.

Milo
Nette Core | 1256
+
0
-

Latte has been failing due to bug 68919. Master is very unstable. Sometimes is OK, sometimes is not.

EDIT: By “Master” I mean PHP master branch.

Filip Procházka
Moderator | 4668
+
0
-

Nobody cares that an error happened, we care what error happened. If it's not a secret, would you tell us please? :)

Last edited by Filip Procházka (2014-10-16 22:06)

Jan Tvrdík
Nette guru | 2595
+
0
-

The only problem I know about is in Finder and is fixed in 2.2.1-dev and 2.3.0-dev.
https://github.com/…97cba8f0884e

David Grudl
Nette Core | 7777
+
0
-

Does Nette support PHPNG or not?

No.

zener
Member | 17
+
0
-

Thanks all for answers…

Jan Tvrdík wrote:

There is no such think as „PHP 5.7 – PHPNG“, the master version is 7.0.0-dev.

PHP Version 5.7.0-dev; Screen of phpinfo – http://pasteboard.co/ZZgHxJL.png

Jan Tvrdík wrote:

The only problem I know about is in Finder and is fixed in 2.2.1-dev and 2.3.0-dev.
https://github.com/…97cba8f0884e

Yes, I found this problem and applied changes. But Nette is still not working.

Filip Procházka wrote:

Nobody cares that an error happened, we care what error happened. If it's not a secret, would you tell us please? :)

I think the problem is in Latte. When I have wrong code, Tracy works fine, it shows error page etc. In cache folder are generated PHP files but the last line ends before generated HTML code. Here is sample of generated file:
http://pastebin.com/cg88XSxx

Jan Tvrdík
Nette guru | 2595
+
0
-

Why do you use snapshot which is more than 2 months old?

zener
Member | 17
+
0
-

How I wrote… It's the latest stable version of Nette. I downloaded it from https://nette.org/en/packages. Do you think if I will download version from Git, the situation will be better (it will work)?

Milo
Nette Core | 1256
+
0
-

@zener We all are talking about PHP master branch. You are using old PHP build. Compile the new one where the mentioned bug is fixed.

zener
Member | 17
+
0
-

Oh, sorry, my mistake :) Ok, I will update PHP version and I will try it again. I will let you know.

zener
Member | 17
+
0
-

Hi again :) I updated PHP, now I have PHP 7.0.0-dev from GIT. But I still have a problem. Tracy throw this exception Call to undefined method Nette\DI\ServiceDefinition::setImplement(). I uploaded the whole error page, it's available here:
http://up.youcan.cz/…xception.htm

Milo
Nette Core | 1256
+
+5
-

@zener PHP master is very unstable. Try it tomorrow, it can work. Try it next week, it can fail again. That's the reason why Nette does not support it yet.

When PHP 7 alfa or beta will be released, it is time to distinguish between Nette bugs and PHP bugs.

If you still want PHP-dev to work :), ihmo, the best thing you can do is to run tests for all nette repositories with PHP-dev, search for obvious PHP BC breaks/crashes and report PHP bugs.

Majkl578
Moderator | 1364
+
+2
-

Don't use highly unstable php-next, which doesn't even have a roadmap or set of changes, you are shooting yourself in the foot. Simple as that.
If you are having a mood for experimenting, try HHVM, there, you can reliably play with nightly.

Jan Tvrdík
Nette guru | 2595
+
+3
-

@zener: Regarding the error – you need to enable opcache.save_comments.

zener
Member | 17
+
0
-

Jan Tvrdík wrote:

@zener: Regarding the error – you need to enable opcache.save_comments.

Wow, it's really working. I updated that value and error is gone :)

But output is still a blank page (without error). Template is not generated in cache, so I ended with PHP-ng for now. It's really not working yet.

Milo
Nette Core | 1256
+
+1
-

@zoner I've reported few PHP bugs recently and Nette Sandbox works correctly on 4b892 commit (without opcache).