Zen Cart Logo

ZenCart and HHVM

Views: 2,160

Results 1 to 7 of 7
13 May 2015, 7:44 AM
#1
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

ZenCart and HHVM

I have just succesfully installed ZenCart on HHVM. And it's blazing fast (after the first JIT run) :laugh:

There was quite alot of tweaking in the database connection and query system... Mostly stuff that was silenced with error supression operator @

Anyone else played around with HHVM?

I'm using HHVM 3.7.0 through nginx fastcgi.

I'll play around with it a little and see what happens.

13 May 2015, 4:32 PM
#2
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,885
Plugin Contributions:
3

Re: ZenCart and HHVM

Nice :)

Maybe you could share some more detail of the changes you needed to make and php/zc version you used.

It's a while since I tried Zen Cart with HHVM. (I think it was HHVM version 3.3.1 and Ubuntu is on 3.7 now)

Ian

If I get a chance I'll throw up a Digital Ocean droplet with nginx/hhvm in the next week or so.

16 May 2015, 10:47 AM
#3
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

Re: ZenCart and HHVM

I'll post a patch next week if I have the time. :)

Some of the stuff was in the database classes... where some functions returned true instead of a result object, and the true value was given as a parameter to some other functions that didn't accept it ... and most of the stuff was silenced with the @ operator, so had to remove all of them to see what was going on.

Also there was one flush() call which was failing without any errors. Might be a hhvm php parity problem.

16 May 2015, 10:53 AM
#4
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,885
Plugin Contributions:
3

Re: ZenCart and HHVM

No problem.

Was talking with Chris(DrByte) and he mentioned that Laravel Homestead will run v1.6.0 out of the box and also supports hhvm/nginx so might use that as a quick way of running stuff locally in a vm. Would be nice to get habitat to support that.

pasi:

I'll post a patch next week if I have the time. :)

Some of the stuff was in the database classes... where some functions returned true instead of a result object, and the true value was given as a parameter to some other functions that didn't accept it ... and most of the stuff was silenced with the @ operator, so had to remove all of them to see what was going on.

Also there was one flush() call which was failing without any errors. Might be a hhvm php parity problem.

16 May 2015, 1:02 PM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: ZenCart and HHVM

wilt:

No problem.

Was talking with Chris(DrByte) and he mentioned that Laravel Homestead will run v1.6.0 out of the box and also supports hhvm/nginx so might use that as a quick way of running stuff locally in a vm. Would be nice to get habitat to support that.

Hmm... very promising indeed. Seems like we are cooking on (natural) gas and not on LPG :P

22 Oct 2015, 11:36 AM
#6
krynn30 avatar

krynn30

New Zenner

Join Date:
May 2014
Posts:
1
Plugin Contributions:
0

Re: ZenCart and HHVM

Hello, I started to move zencart 1.5.4 to hhvm and got immediately problems you described in the previous posts (now facing the query class returning boolean instead of a resultset).
Could you give some hints how you solved that or the file patch if it's ready? (All of us are fully busy so I'm just asking :P)

Thanks,
Marco

pasi:

I'll post a patch next week if I have the time. :)

Some of the stuff was in the database classes... where some functions returned true instead of a result object, and the true value was given as a parameter to some other functions that didn't accept it ... and most of the stuff was silenced with the @ operator, so had to remove all of them to see what was going on.

Also there was one flush() call which was failing without any errors. Might be a hhvm php parity problem.

23 Oct 2015, 10:21 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ZenCart and HHVM

We're preparing a v1.5.5 release which currently seems to work fine with HHVM, at least under basic preliminary testing.