Skip to content

Commit 594c220

Browse files
committed
Fixed issue #1041 (Fix build in OSX with --enable-dtrace)
1 parent 47af238 commit 594c220

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Zend/zend.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,13 +1059,17 @@ static void zend_error_va_list(int type, const char *format, va_list args)
10591059
}
10601060

10611061
#ifdef HAVE_DTRACE
1062-
if(DTRACE_ERROR_ENABLED()) {
1062+
if (DTRACE_ERROR_ENABLED()) {
10631063
char *dtrace_error_buffer;
1064+
#if !defined(HAVE_NORETURN) || defined(HAVE_NORETURN_ALIAS)
10641065
va_start(args, format);
1066+
#endif
10651067
zend_vspprintf(&dtrace_error_buffer, 0, format, args);
10661068
DTRACE_ERROR(dtrace_error_buffer, (char *)error_filename, error_lineno);
10671069
efree(dtrace_error_buffer);
1070+
#if !defined(HAVE_NORETURN) || defined(HAVE_NORETURN_ALIAS)
10681071
va_end(args);
1072+
#endif
10691073
}
10701074
#endif /* HAVE_DTRACE */
10711075

0 commit comments

Comments
 (0)