xoops forums

Mamba

Moderator
Posted on: 2017/12/1 10:44
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#1

PHP 7.2 RELEASED

Great news: PHP 7.2 has been released

The speed improvement is clearly visible, as you can see from these benchmarks.

Make sure that you start transition to XOOPS 2.5.9 and PHP 7.2
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

aquaportail

Just popping in
Posted on: 1/25 7:07
aquaportail
aquaportail (Show more)
Just popping in
Posts: 20
Since: 2007/7/18
#2

Re: PHP 7.2 RELEASED

Hi,
I'm testing Xoops 2.5.9 with .10 upgrade on php 7.3.0 and I get some errors for compatibility.

The principal error is the deprecated function "create_function" in Smarty Compiler Class (file /class/smarty/Smarty_Compiler.class.php on line 265 -with preg_replace_callback- see http://php.net/manual/en/function.create-function.php ).
Is any patch code available to correct this?

Another incompatibility occurs in the same file on line 559 with the "each" function wich is also deprecated (in "list(, $block) = each($this->_folded_blocks);").

---
Another problem exists in NewBB 4.33: Notification: XoopsObjectTree::$_tree is deprecated, accessed from /modules/newbb/class/tree.php line 72 (and 64, 73), in file /class/tree.php ligne 307

Is it possible to fix it?

Thank's Mamba.

---
Notice: I'm going to change my old Xoops 2.0.1x to 2.5.10 (to upgrade PHP et SQL versions) on aquaportail.com (french site).

aquaportail

Just popping in
Posted on: 1/25 9:19
aquaportail
aquaportail (Show more)
Just popping in
Posts: 20
Since: 2007/7/18
#3

Re: PHP 7.2 RELEASED

Sorry, i've found answers: https://github.com/XOOPS/XoopsCore25/c ... e59ba27f3269efc590599a0af

Mamba

Moderator
Posted on: 1/25 20:14
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#4

Re: PHP 7.2 RELEASED

You might also help us by testing the upcoming NewBB 5.0:
https://github.com/mambax7/newbb5
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

aquaportail

Just popping in
Posted on: 1/26 5:03
aquaportail
aquaportail (Show more)
Just popping in
Posts: 20
Since: 2007/7/18
#5

Re: PHP 7.2 RELEASED

HI,
i've installed newbb 5 but it's actually impossible to create a new post and impossible to read a post.

I send you one PM to give you total access to testing online.

Here is the screen when I try to create a new subject.

Resized Image

Mamba

Moderator
Posted on: 1/26 6:37
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#6

Re: PHP 7.2 RELEASED

OK, I just responded to you via PM, please check...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Mamba

Moderator
Posted on: 1/30 4:28
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#7

Re: PHP 7.2 RELEASED

OK, you found a bug! Thank you!

New BB was looking for a Tag module, and couldn't find it.

It is now fixed (incl. your site) - please check.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

aquaportail

Just popping in
Posted on: 1/30 10:34
aquaportail
aquaportail (Show more)
Just popping in
Posts: 20
Since: 2007/7/18
#8

Re: PHP 7.2 RELEASED

Everything is good! Thank's a lot. It's great.

Notice my site is around 850 000 unique visitors per month, so I must disable some functionnalities (vote, stats, comments, online!!! ...) to get some ... speed.

The first thing I'll modify is the USERS table (old columns totaly obsolete are erased and the counter of messages is transfered in a new table for performances' reasons).

Mamba

Moderator
Posted on: 1/30 11:40
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#9

Re: PHP 7.2 RELEASED

I'm glad to hear that everything works now!

PHP 7 and a lot of memory should give you the speed that you need

But please feel free to fork on GitHub the NewBB 5 and/or XOOPS and submit improvements!

We always like contributors to XOOPS!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

aquaportail

Just popping in
Posted on: 1/30 18:09
aquaportail
aquaportail (Show more)
Just popping in
Posts: 20
Since: 2007/7/18
#10

Re: PHP 7.2 RELEASED

I send you PM... (2 errors in admin of newBB5).

I've integrated a counter of characters and words for HTML area: it could be usefull.

<div id='compteurmessage' style='color:red'>0 word 0 character</div

<
script>function Compter(id){
var 
txt=document.getElementById(id).value;var chaine=document.getElementById(id).value
var 
nombreCaractere=txt.replace(/[/?w+]/g,'').length;
var array = 
chaine.split(/bw+b/);
var 
nombreMots=array.length-1;
var 
msg222=' '+nombreMots+' words | '+nombreCaractere' chars.';
document.getElementById('compteur'+id).innerHTMLmsg222; }</script>

<
textarea id="message" name="message" onkeyup="Compter('message');" spellcheck="true" rows="12" cols="70"></textarea>