com php-src: Fix signature and calls: ext/standard/dl.c main/php_ini.c win32/winutil.h
| From: | Anatol Belski | Date: | Tue, 27 Aug 2019 12:34:35 +0000 |
| Subject: | com php-src: Fix signature and calls: ext/standard/dl.c main/php_ini.c win32/winutil.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108084@lists.php.net to get a copy of this message | ||
Commit: 9b5d66bd52c90f37aa39ea6bcab4c46b6121f3d8
Author: Anatol Belski <ab@php.net> Tue, 27 Aug 2019 14:34:14 +0200
Parents: 78e0f85cb58a31a9adebbf7310c739d560e78877
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9b5d66bd52c90f37aa39ea6bcab4c46b6121f3d8
Log:
Fix signature and calls
Changed paths:
M ext/standard/dl.c
M main/php_ini.c
M win32/winutil..h
Diff:
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index ddc87a4..bef2e51 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -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);
diff --git a/main/php_ini.c b/main/php_ini.c
index d508c13..cc2cf16 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -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);
diff --git a/win32/winutil.h b/win32/winutil.h
index 4b1d044..f2faa95 100644
--- a/win32/winutil.h
+++ b/win32/winutil.h
@@ -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