Error when selecting random email item
BattleKing
Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
- Joined
- May 24, 2020
- Messages
- 3,529
- Points
- 523
Reputation:
- By BattleKing
(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)
Transliterator::transliterate -- transliterator_transliterate — Transliterate a string
https://www.php.net/manual/de/transliterator.transliterate.php
here the code which is causing the error:
PHP:
$emails[$i] = preg_replace(
"/[^A-Za-z0-9.!?]/",
'',
transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', $usernames[$i])
) . $domain;
↑View previous replies…
skittelsIt works fine with PHP7.4.27
BattleKing
Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
- Joined
- May 24, 2020
- Messages
- 3,529
- Points
- 523
Reputation:
- By BattleKing
How to add compatibility for php 7.x? Randomized email works only with php 8.1