mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Fix signature and calls
This commit is contained in:
parent
78e0f85cb5
commit
9b5d66bd52
@ -168,7 +168,7 @@ PHPAPI int php_load_extension(char *filename, int type, int start_now)
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (!php_win32_image_compatible(libpath, NULL, &err1)) {
|
||||
if (!php_win32_image_compatible(libpath, &err1)) {
|
||||
php_error_docref(NULL, error_type, err1);
|
||||
efree(err1);
|
||||
efree(libpath);
|
||||
|
@ -341,7 +341,7 @@ static void php_load_zend_extension_cb(void *arg)
|
||||
if (IS_ABSOLUTE_PATH(filename, length)) {
|
||||
#ifdef PHP_WIN32
|
||||
char *err;
|
||||
if (!php_win32_image_compatible(filename, NULL, &err)) {
|
||||
if (!php_win32_image_compatible(filename, &err)) {
|
||||
php_error(E_CORE_WARNING, err);
|
||||
return;
|
||||
}
|
||||
@ -392,7 +392,7 @@ static void php_load_zend_extension_cb(void *arg)
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (!php_win32_image_compatible(libpath, NULL, &err1)) {
|
||||
if (!php_win32_image_compatible(libpath, &err1)) {
|
||||
php_error(E_CORE_WARNING, err1);
|
||||
efree(err1);
|
||||
efree(libpath);
|
||||
|
@ -55,7 +55,7 @@ PHP_WINUTIL_API int php_win32_code_to_errno(unsigned long w32Err);
|
||||
|
||||
PHP_WINUTIL_API char *php_win32_get_username(void);
|
||||
|
||||
PHP_WINUTIL_API BOOL php_win32_image_compatible(const char *img, const char *path, char **err);
|
||||
PHP_WINUTIL_API BOOL php_win32_image_compatible(const char *img, char **err);
|
||||
PHP_WINUTIL_API BOOL php_win32_crt_compatible(const char *img, char **err);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user