PHP 7 - Prime Links
Re: PHP 7
I don't have php 7 installed so it would be difficult for me to do this.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
-
- Former Team Member
- Posts: 2991
- Joined: Fri May 06, 2005 5:58 pm
- Location: Redding, CA
Re: PHP 7
i just updated my board to phpBB 3.2.0 as well as PHP 7.0.12 and had to make the following change to the Prime Links Extension...
open /ext/primehalo/primelinks/event/listener.php
find
replace with
it now seems to work fine for me again
open /ext/primehalo/primelinks/event/listener.php
find
Code: Select all
$text = preg_replace('/&#(\d+);/me', 'chr($1)', $text); // Decimal notation
$text = preg_replace('/&#x([a-f0-9]+);/mei', 'chr(0x$1)', $text); // Hex notation
Code: Select all
$text = preg_replace_callback('/&#(\d+);/m', function($matches){ // Decimal notation
return utf8_encode(chr($matches[1]));
}, $text);
$text = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($matches){ // Hex notation
return utf8_encode(chr($matches[1]));
}, $text);
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm
Re: PHP 7
prime links must instal on event ?spaceace wrote:i just updated my board to phpBB 3.2.0 as well as PHP 7.0.12 and had to make the following change to the Prime Links Extension...
open /ext/primehalo/primelinks/event/listener.php
findreplace withCode: Select all
$text = preg_replace('/&#(\d+);/me', 'chr($1)', $text); // Decimal notation $text = preg_replace('/&#x([a-f0-9]+);/mei', 'chr(0x$1)', $text); // Hex notation
it now seems to work fine for me againCode: Select all
$text = preg_replace_callback('/&#(\d+);/m', function($matches){ // Decimal notation return utf8_encode(chr($matches[1])); }, $text); $text = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($matches){ // Hex notation return utf8_encode(chr($matches[1])); }, $text);
i can't find directory /primelinks/event/listener.php
-
- Registered User
- Posts: 5
- Joined: Wed Mar 08, 2017 7:34 pm
Re: PHP 7
you would need to download the Prime Links extension from primehalo's website. then you would have to apply the above fix that i added if you are running PHP 7 on your serverblogxkomo wrote:prime links must instal on event ?
i can't find directory /primelinks/event/listener.php
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm
Re: PHP 7
I have included this change into v1.1.4 which is available on my website.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
-
- Former Team Member
- Posts: 2991
- Joined: Fri May 06, 2005 5:58 pm
- Location: Redding, CA
Re: PHP 7
Will this extension work with 3.3?
-
- Registered User
- Posts: 806
- Joined: Tue Aug 14, 2007 12:40 pm
Re: PHP 7
YesWWu777 wrote:Will this extension work with 3.3?
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
-
- Former Team Member
- Posts: 2991
- Joined: Fri May 06, 2005 5:58 pm
- Location: Redding, CA