vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=322892

PHP 7 (vB4)
by Paul M
22 Jun 2016 00:05

For anyone interested in vB4 / PHP7.

http://www.vbulletin.com/forum/forum...4-php7-testing

Paul M 04 Aug 2016 12:09

4.2.5 Alpha 1

http://www.vbulletin.com/forum/forum...bulletin-4-2-5

TheLastSuperman 04 Aug 2016 21:20

+1 thanks Paul! (couldn't like so saying thanks!)

Gio~Logist 05 Aug 2016 16:18

NICE!

final kaoss 05 Aug 2016 18:12

Glad to see vb4 is still being worked on. Maybe we'll see version 4.3 some day :) (I would guess this would be the final release of PHP 7 compatibility, after the new update clears alpha & beta tests).

Paul M 05 Aug 2016 18:34

There wont ever be a 4.3.

webmastersun 06 Aug 2016 15:30

Quote:

Originally Posted by Paul M (Post 2574337)

Good news today.

I wanted to upgrade to PHP7 but because vB4 didn't support it so I have to wait this version

Hope to have stable version soon.

Thanks Paul and cheers,

Paul M 07 Aug 2016 14:09

Well it needs people to actually download and use the Alpha, otherwise any issues are not going to be found.

Pod 21 Aug 2016 21:32

I've begun to play with the 4.2.5 Alpha 2 with PHP 7.0.8. So far, the only problem I've found is about the datastore. The problem is that vB_Datastore_Memcached uses the older "Memcache" [1] extension, which I believe has been dropped from PHP7, instead of the newer "Memcached" [2] (note the final d).

The API of both versions look similar, but are not identical (for instance, i noticed that the set and add methods no longer accept a $flag parameter).

Then, I tried to use the file cache. After getting the permissions of the datastore folder right, it seems to work. With opcache enabled, the filecache might be fast, but I'd rather like to keep Memcached support. Paul, can we expect a vB_Datastore implementation with the Memcached extension in a upcoming alpha? I could give it a try, but since I'm not familiar with vb internals i don't feel confident enough.

On a related note (although I'm not personally affected by that and I didn't test it), in the ACP datastore won't work in PHP7, but there's a very similar extension called ACPu [3] which drops opcode cache (since its available in bundled opcache) but keeps the variable store.

I'll keep testing other areas of the beta.

[1] http://php.net/manual/en/class.memcache.php
[2] http://php.net/manual/en/class.memcached.php
[3] http://php.net/manual/en/book.apcu.php


EDIT: Added this to jira (VBIV-16220) since I couldn't find it already.

Paul M 22 Aug 2016 16:45

You belief seems untrue. I have both Memcache & Memcached available to install for php 7.0, and in fact, only Memcache available for 7.1 atm.

Related, I have updated APC in Alpha 3 to use APCu, as that is still supported, while APC is not.

(APCu is basically just the key/data part of APC, as php 7 now uses a different opcode cache).

xCache is also not supported on php 7.

Pod 22 Aug 2016 19:50

Right, sorry, looks like the package in ondrej's repository is php-memcache (I was expecting php7.0-memcache).

And yeah, mOo seems to have given up on xcache according to his lasts replies in the group (from a year ago): https://groups.google.com/forum/#!forum/xcache

Will do some testing now that I have everything working.

webmastersun 01 Sep 2016 02:44

Really like this topic/update and thanks Paul for making vB4 a new level :up:

Quote:

Originally Posted by Paul M (Post 2574465)
Well it needs people to actually download and use the Alpha, otherwise any issues are not going to be found.

Of course I am waiting for a new server to test vB4 with PHP 7
I could not test it on my running forum, it can appear errors to visitors which i don't want if that happens.

Quote:

Originally Posted by Paul M (Post 2575106)
You belief seems untrue. I have both Memcache & Memcached available to install for php 7.0, and in fact, only Memcache available for 7.1 atm.

Related, I have updated APC in Alpha 3 to use APCu, as that is still supported, while APC is not.

(APCu is basically just the key/data part of APC, as php 7 now uses a different opcode cache).

xCache is also not supported on php 7.

Just want to know about memcached (datastore that vB4 is using), it (memcached) can run with php7? if no, what conditions to run vB4 with memcached on php7?

or do I need to remove datastore memcached when upgraded to php7?

Paul M 01 Sep 2016 11:06

To run memcached you need a server running memcache.
Pretty obviously really so I'm not sure whats unclear about it.

How you set that server up is down to you, all vb cares about is connecting to it.

Unless you have some specific reason for using it then just switch to APCu.
My test set-up is running the new opcache, and apcu, and running very nicely.

Paul M 27 Nov 2016 00:36

4.2.5 Beta 1 has been released today.

Dave 20 Dec 2016 22:11

PHP 7.1 has been released. I just updated PHP on my server to PHP 7.1 and it seems to be running fine and a bit faster. TTFB went down by about 50-100ms.


All times are GMT. The time now is 03:04.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.