mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
fix windows crash
This commit is contained in:
@@ -19,6 +19,12 @@ class decimal extends Extension
|
|||||||
'zend_module_entry decimal_module_entry',
|
'zend_module_entry decimal_module_entry',
|
||||||
'zend_module_entry php_decimal_module_entry'
|
'zend_module_entry php_decimal_module_entry'
|
||||||
);
|
);
|
||||||
|
FileSystem::replaceFileStr(
|
||||||
|
$this->source_dir . '/config.w32',
|
||||||
|
'ARG_WITH("decimal", "for decimal support", "no");',
|
||||||
|
'ARG_WITH("decimal", "for decimal support", "no");' . "\n" .
|
||||||
|
'ADD_EXTENSION_DEP("decimal", "json");'
|
||||||
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,13 +29,5 @@ class libmpdec extends WindowsLibraryBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
copy($makefile_dir . '\mpdecimal.h', BUILD_INCLUDE_PATH . '\mpdecimal.h');
|
copy($makefile_dir . '\mpdecimal.h', BUILD_INCLUDE_PATH . '\mpdecimal.h');
|
||||||
|
|
||||||
// Disable dllimport for static linking: the header defaults to
|
|
||||||
// __declspec(dllimport) when _DLL is defined, idk if php builds with /MD
|
|
||||||
FileSystem::replaceFileStr(
|
|
||||||
BUILD_INCLUDE_PATH . '\mpdecimal.h',
|
|
||||||
'#elif defined(_DLL)',
|
|
||||||
'#elif 0'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user