1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00

Merge pull request #41 from alexAubin/patch-1

Stretch compatibility : create ereg() if it does not exists
This commit is contained in:
Jeff 2018-01-17 18:13:26 +01:00 committed by GitHub
commit 6f996f7d1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,12 @@
<?php
if (!function_exists('ereg')) {
function ereg($pattern, $subject, &$matches = array())
{
return preg_match('/'.$pattern.'/', $subject, $matches);
}
}
function arguments($argv) {
$_ARG = array();
foreach ($argv as $arg) {