Another bunch of PHP 7.2 fixes
This commit is contained in:
parent
164a7ab020
commit
f56a2ef140
7 changed files with 11 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ if (is_file($filename)) {
|
|||
$handle = fopen($filename, "r");
|
||||
while (!feof($handle)) {
|
||||
$r = fgets($handle);
|
||||
if (ereg(';', $r)) $last = $r;
|
||||
if (preg_match('#;#', $r)) $last = $r;
|
||||
}
|
||||
fclose($handle);
|
||||
$calc = $last = explode(';', $last);
|
||||
|
|
@ -53,7 +53,7 @@ for($i = 6; $i >= 0; $i--){
|
|||
$handle = fopen($filename, "r");
|
||||
while (!feof($handle)) {
|
||||
$r = fgets($handle);
|
||||
if (ereg(';', $r)) $last = $r;
|
||||
if (preg_match('#;#', $r)) $last = $r;
|
||||
}
|
||||
fclose($handle);
|
||||
$last = explode(';', $last);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if (is_file(FILE_SAV) && !isset($_GET['erase']))
|
|||
$pointeur = opendir($dir);
|
||||
while ($fichier = readdir($pointeur))
|
||||
{
|
||||
if($fichier == '.' || $fichier == '..' || $fichier == '.svn' || ereg("~", $fichier))
|
||||
if($fichier == '.' || $fichier == '..' || $fichier == '.svn' || preg_match("#~#", $fichier))
|
||||
continue;
|
||||
|
||||
if(is_dir($dir.$fichier) && is_readable($dir.$fichier))
|
||||
|
|
@ -115,7 +115,7 @@ else
|
|||
$pointeur = opendir($dir);
|
||||
while ($fichier = readdir($pointeur))
|
||||
{
|
||||
if($fichier == '.' || $fichier == '..' || $fichier == '.svn' || ereg("~", $fichier))
|
||||
if($fichier == '.' || $fichier == '..' || $fichier == '.svn' || preg_match("#~#", $fichier))
|
||||
continue;
|
||||
|
||||
if(is_dir($dir.$fichier) && is_readable($dir.$fichier))
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ else
|
|||
<tbody>';
|
||||
foreach($m[0] as $key => $lign)
|
||||
{
|
||||
if (ereg('array', $m[3][$key]))
|
||||
if (preg_match('#array#', $m[3][$key]))
|
||||
{
|
||||
$exp = "#array \(( '(.{1,10})' => '([^',]{0,1000})',)( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?( '(.{1,10})' => '([^',]{0,1000})',)?#ui";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue