Skip to content

Made PHP7 compatible#40

Open
adryx92 wants to merge 3 commits into
realtimeprojects:masterfrom
adryx92:master
Open

Made PHP7 compatible#40
adryx92 wants to merge 3 commits into
realtimeprojects:masterfrom
adryx92:master

Conversation

@adryx92

@adryx92 adryx92 commented Jan 24, 2018

Copy link
Copy Markdown

No description provided.

@ruymbeke

Copy link
Copy Markdown

Thank you ! You may also consider using "function_exists" to make it backward compatible with older versions of PHP as done below:

//eregi and ereg have been removed from PHP7
if (! function_exists('eregi')) {
function eregi($pattern, $string)
{
$new_pattern = '/'.addcslashes($pattern, '/').'/i';
return preg_match($new_pattern, $string);
} }

if (! function_exists('ereg')) {
function ereg($pattern, $string)
{
$new_pattern = '/'.addcslashes($pattern, '/').'/';
return preg_match($new_pattern, $string);
} }

@adryx92

adryx92 commented Mar 22, 2019

Copy link
Copy Markdown
Author

It seems that this project is completely abandoned.

@frocelu

frocelu commented Jun 21, 2021

Copy link
Copy Markdown

I just fix some bugs and make compatible for PHP 7
You guys can get the branch on my repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants