Skip to content

Commit

Permalink
Fix generate php config bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
oopsdump committed Feb 4, 2017
1 parent 7519b0c commit afb055d
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions wne/Config/PhpConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,17 @@ public void ParseIni()
{
for (var i = 0; i < phpExtName.Length; i++)
{
if (str.StartsWith(";extension=" + phpExtName[i]))
{
if (str.StartsWith(";extension=" + phpExtName[i])) {
PHPExtensions[i] = PHPExtension.Disabled;
break;
}
if (str.StartsWith("extension=" + phpExtName[i]))
{
} else if (str.StartsWith("extension=" + phpExtName[i])) {
PHPExtensions[i] = PHPExtension.Enabled;
break;
}
if (str.StartsWith(";zend_extension=" + phpExtName[i]))
{
} else if (str.StartsWith(";zend_extension=" + phpExtName[i])) {
PHPExtensions[i] = PHPExtension.Disabled | PHPExtension.ZendExt;
break;
}
if (str.StartsWith("zend_extension=" + phpExtName[i]))
{
} else if (str.StartsWith("zend_extension=" + phpExtName[i])) {
PHPExtensions[i] = PHPExtension.Enabled | PHPExtension.ZendExt;
break;
}
if (PHPExtensions[i].HasFlag(PHPExtension.Enabled)) {
UserPHPExtentionValues[i] = true;
}
}
if (str.StartsWith("extension_dir"))
Expand Down

0 comments on commit afb055d

Please sign in to comment.