# Patch for Zend engine linker error

- Thread: https://externals.io/message/3743
- Original archive: https://news-web.php.net/php.internals/3743
- Started by Vesselin Atanasov on 2003-08-05T23:43:16+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3743 — Vesselin Atanasov — 2003-08-05T23:43:16+00:00

URL: https://externals.io/message/3743#3743

Hello.
The lastest CVS fails to compile under Linux. An error occurs because the
linker cannot find the "empty_fcall_info_cache" symbol.

diff -ruN php5-200308051930.orig/Zend/zend_execute_API.c
php5-200308051930/Zend/zend_execute_API.c
--- php5-200308051930.orig/Zend/zend_execute_API.c      2003-08-05
11:07:15.000000000 +0000
+++ php5-200308051930/Zend/zend_execute_API.c   2003-08-06
01:59:20.000000000 +0000
@@ -37,11 +37,11 @@
 ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
 ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr,
int return_value_used TSRMLS_DC);

+ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
0 };
+
 #ifdef ZEND_WIN32
 #include <process.h>
 /* true global */
-ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
0 };
-
 static WNDCLASS wc;
 static HWND timeout_window;
 static HANDLE timeout_thread_event;

---

## #3744 — Jani Taskinen — 2003-08-05T23:55:28+00:00

URL: https://externals.io/message/3743#3744 · In reply to: #3743

Fixed, thanks for the patch.
    
    --Jani
    



>Hello.
>The lastest CVS fails to compile under Linux. An error occurs because the
>linker cannot find the "empty_fcall_info_cache" symbol.
>
>diff -ruN php5-200308051930.orig/Zend/zend_execute_API.c
>php5-200308051930/Zend/zend_execute_API.c
>--- php5-200308051930.orig/Zend/zend_execute_API.c      2003-08-05
>11:07:15.000000000 +0000
>+++ php5-200308051930/Zend/zend_execute_API.c   2003-08-06
>01:59:20.000000000 +0000
>@@ -37,11 +37,11 @@
> ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
> ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr,
>int return_value_used TSRMLS_DC);
>
>+ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
>0 };
>+
> #ifdef ZEND_WIN32
> #include <process.h>
> /* true global */
>-ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
>0 };
>-
> static WNDCLASS wc;
> static HWND timeout_window;
> static HANDLE timeout_thread_event;

---

## #3755 — Zeev Suraski — 2003-08-06T07:35:09+00:00

URL: https://externals.io/message/3743#3755 · In reply to: #3743

Thanks, it's fixed now...

Zeev

At 02:43 06/08/2003, Vesselin Atanasov wrote:
>Hello.
>The lastest CVS fails to compile under Linux. An error occurs because the
>linker cannot find the "empty_fcall_info_cache" symbol.
>
>diff -ruN php5-200308051930.orig/Zend/zend_execute_API.c
>php5-200308051930/Zend/zend_execute_API.c
>--- php5-200308051930.orig/Zend/zend_execute_API.c      2003-08-05
>11:07:15.000000000 +0000
>+++ php5-200308051930/Zend/zend_execute_API.c   2003-08-06
>01:59:20.000000000 +0000
>@@ -37,11 +37,11 @@
>  ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
>  ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr,
>int return_value_used TSRMLS_DC);
>
>+ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
>0 };
>+
>  #ifdef ZEND_WIN32
>  #include <process.h>
>  /* true global */
>-ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL,
>0 };
>-
>  static WNDCLASS wc;
>  static HWND timeout_window;
>  static HANDLE timeout_thread_event;
