1
Mamba
PHP 7.2 RELEASED
  • 2017/12/1 10:44

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


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

2
aquaportail
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).

3
aquaportail
Re: PHP 7.2 RELEASED


4
Mamba
Re: PHP 7.2 RELEASED
  • 2019/1/25 20:14

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


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

5
aquaportail
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

6
Mamba
Re: PHP 7.2 RELEASED
  • 2019/1/26 6:37

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


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

7
Mamba
Re: PHP 7.2 RELEASED
  • 2019/1/30 4:28

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


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

8
aquaportail
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).

9
Mamba
Re: PHP 7.2 RELEASED
  • 2019/1/30 11:40

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


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

10
aquaportail
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>

Login

Who's Online

59 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 59


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits