summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-02-19 14:34:43 +0100
committerRemi Collet <remi@remirepo.net>2020-02-19 14:34:43 +0100
commit3407e148f90cc766ae72069a2b84ba3649736796 (patch)
tree3972281b51edd3e388ef37af4366f89a5df35f32
parentb033e42fe5a28f06250c32a7daa22c3093572cb7 (diff)
add the gcc10 patch
-rw-r--r--php-5.6.40-gcc10.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/php-5.6.40-gcc10.patch b/php-5.6.40-gcc10.patch
new file mode 100644
index 0000000..16beddb
--- /dev/null
+++ b/php-5.6.40-gcc10.patch
@@ -0,0 +1,30 @@
+diff -up ./Zend/zend_dtrace.c.old ./Zend/zend_dtrace.c
+--- ./Zend/zend_dtrace.c.old 2020-02-19 14:06:05.624224596 +0100
++++ ./Zend/zend_dtrace.c 2020-02-19 14:07:50.842731017 +0100
+@@ -23,6 +23,10 @@
+ #include "zend_dtrace.h"
+
+ #ifdef HAVE_DTRACE
++ZEND_API zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
++ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC);
++ZEND_API void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data_ptr, zend_fcall_info *fci, int return_value_used TSRMLS_DC);
++
+ /* PHP DTrace probes {{{ */
+ static inline const char *dtrace_get_executed_filename(TSRMLS_D)
+ {
+diff -up ./Zend/zend_dtrace.h.old ./Zend/zend_dtrace.h
+--- ./Zend/zend_dtrace.h.old 2020-02-19 14:06:10.641201059 +0100
++++ ./Zend/zend_dtrace.h 2020-02-19 14:08:17.710604949 +0100
+@@ -30,9 +30,9 @@ extern "C" {
+ #endif
+
+ #ifdef HAVE_DTRACE
+-ZEND_API zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
+-ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC);
+-ZEND_API void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data_ptr, zend_fcall_info *fci, int return_value_used TSRMLS_DC);
++ZEND_API extern zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
++ZEND_API extern void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC);
++ZEND_API extern void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data_ptr, zend_fcall_info *fci, int return_value_used TSRMLS_DC);
+
+ ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC);
+ ZEND_API void dtrace_execute_ex(zend_execute_data *execute_data TSRMLS_DC);