This commit is contained in:
2026-10-22 14:00:45 +08:00
parent 2a0e7c090d
commit cffe463779
3 changed files with 3 additions and 3 deletions

View File

@@ -308,7 +308,7 @@ def getPhpConf(version):
phpini = mw.readFile(getConf(version))
result = []
for g in gets:
rep = g['name'] + r'\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
rep = g['name'] + r'\s*=\s*(-?[0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
tmp = re.search(rep, phpini)
if not tmp:
continue

View File

@@ -307,7 +307,7 @@ def getPhpConf(version):
phpini = mw.readFile(getConf(version))
result = []
for g in gets:
rep = g['name'] + r'\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
rep = g['name'] + r'\s*=\s*(-?[0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
tmp = re.search(rep, phpini)
if not tmp:
continue

View File

@@ -447,7 +447,7 @@ def getPhpConf(version):
phpini = mw.readFile(getConf(version))
result = []
for g in gets:
rep = g['name'] + r'\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
rep = g['name'] + r'\s*=\s*(-?[0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
tmp = re.search(rep, phpini)
if not tmp:
continue