Skip to content

Commit 7f4d0a1

Browse files
committed
Sync error messages
1 parent a7083c9 commit 7f4d0a1

35 files changed

+90
-96
lines changed

cmake/Zend/cmake/Fibers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ block()
192192
message(CHECK_FAIL "no")
193193
message(
194194
FATAL_ERROR
195-
"Fibers are not available on this platform, ucontext.h not found"
195+
"Fibers are not available on this platform, <ucontext.h> not found."
196196
)
197197
endif()
198198
message(CHECK_PASS "yes, ucontext")

cmake/cmake/ConfigureChecks.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ php_search_libraries(
619619
TARGET php_config INTERFACE
620620
)
621621
if(NOT HAVE_INET_NTOP)
622-
message(FATAL_ERROR "Cannot find inet_ntop which is required.")
622+
message(FATAL_ERROR "Cannot find 'inet_ntop()' which is required.")
623623
endif()
624624

625625
# The inet_pton() is mostly in C library (Solaris 11.4, illumos...)
@@ -787,7 +787,7 @@ endif()
787787
# Check GCOV.
788788
if(PHP_GCOV)
789789
if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU")
790-
message(FATAL_ERROR "GCC is required for using PHP_GCOV='ON'")
790+
message(FATAL_ERROR "GCC is required for using PHP_GCOV='ON'.")
791791
endif()
792792

793793
if(CMAKE_C_COMPILER_LAUNCHER MATCHES "ccache")

cmake/cmake/Flags.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ endif()
182182
if(PHP_MEMORY_SANITIZER AND PHP_ADDRESS_SANITIZER)
183183
message(
184184
FATAL_ERROR
185-
"MemorySanitizer and AddressSanitizer are mutually exclusive"
185+
"MemorySanitizer and AddressSanitizer are mutually exclusive."
186186
)
187187
endif()
188188

@@ -228,7 +228,7 @@ if(PHP_MEMORY_SANITIZER)
228228
message(CHECK_PASS "Success")
229229
else()
230230
message(CHECK_FAIL "Failed")
231-
message(FATAL_ERROR "MemorySanitizer is not available")
231+
message(FATAL_ERROR "MemorySanitizer is not available.")
232232
endif()
233233
endif()
234234

@@ -276,7 +276,7 @@ if(PHP_ADDRESS_SANITIZER)
276276
message(CHECK_PASS "Success")
277277
else()
278278
message(CHECK_FAIL "Failed")
279-
message(FATAL_ERROR "AddressSanitizer is not available")
279+
message(FATAL_ERROR "AddressSanitizer is not available.")
280280
endif()
281281
endif()
282282

@@ -411,7 +411,7 @@ if(PHP_UNDEFINED_SANITIZER)
411411
message(CHECK_PASS "Success")
412412
else()
413413
message(CHECK_FAIL "Failed")
414-
message(FATAL_ERROR "UndefinedBehaviorSanitizer is not available")
414+
message(FATAL_ERROR "UndefinedBehaviorSanitizer is not available.")
415415
endif()
416416
endif()
417417

cmake/cmake/Requirements.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
1616
FATAL_ERROR
1717
"Using unsupported compiler: Oracle Developer Studio.\n"
1818
"Please, install a compatible C compiler such as GNU C or Clang. You can "
19-
"set CMAKE_C_COMPILER (and CMAKE_CXX_COMPILER) to the compiler path on the "
20-
"system."
19+
"set 'CMAKE_C_COMPILER' (and 'CMAKE_CXX_COMPILER') variables to the "
20+
"compiler path on the system."
2121
)
2222
endif()
2323

@@ -40,7 +40,7 @@ cmake_pop_check_state()
4040

4141
if(PHP_IS_EBCDIC)
4242
message(CHECK_FAIL "EBCDIC")
43-
message(FATAL_ERROR "PHP does not support EBCDIC targets")
43+
message(FATAL_ERROR "PHP does not support EBCDIC targets.")
4444
else()
4545
message(CHECK_PASS "ASCII")
4646
endif()

cmake/cmake/modules/FindCclient.cmake

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,25 +296,23 @@ if(Cclient_INCLUDE_DIR AND Cclient_LIBRARY)
296296
string(
297297
APPEND
298298
_reason
299-
"Sanity check failed: utf8_mime2text() has new signature, but "
300-
"U8T_CANONICAL is missing. This should not happen. Check CMake logs for "
301-
"additional information. "
299+
"Sanity check failed: 'utf8_mime2text()' has new signature, but "
300+
"'U8T_CANONICAL' is missing. This should not happen. "
302301
)
303302
elseif(NOT HAVE_NEW_MIME2TEXT AND _HAVE_U8T_DECOMPOSE)
304303
string(
305304
APPEND
306305
_reason
307-
"Sanity check failed: utf8_mime2text() has old signature, but "
308-
"U8T_CANONICAL is present. This should not happen. Check CMake logs for "
309-
"additional information."
306+
"Sanity check failed: 'utf8_mime2text()' has old signature, but "
307+
"'U8T_CANONICAL' is present. This should not happen. "
310308
)
311309
else()
312310
set(_cclient_sanity_check_2 TRUE)
313311
endif()
314312
endif()
315313

316314
if(NOT _cclient_sanity_check_2)
317-
string(APPEND _reason "Sanity check failed: mail_newbody() not found. ")
315+
string(APPEND _reason "Sanity check failed: 'mail_newbody()' not found. ")
318316
endif()
319317

320318
################################################################################

cmake/cmake/modules/FindDTrace.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,27 @@ function(dtrace_target)
138138
)
139139

140140
if(parsed_UNPARSED_ARGUMENTS)
141-
message(FATAL_ERROR "Bad arguments: ${parsed_UNPARSED_ARGUMENTS}")
141+
message(FATAL_ERROR "Unrecognized arguments: ${parsed_UNPARSED_ARGUMENTS}")
142142
endif()
143143

144144
if(parsed_KEYWORDS_MISSING_VALUES)
145145
message(FATAL_ERROR "Missing values for: ${parsed_KEYWORDS_MISSING_VALUES}")
146146
endif()
147147

148148
if(NOT ARGV0)
149-
message(FATAL_ERROR "dtrace_target expects a target name")
149+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects a target name.")
150150
endif()
151151

152152
if(NOT parsed_INPUT)
153-
message(FATAL_ERROR "dtrace_target expects an input filename")
153+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects an input filename.")
154154
endif()
155155

156156
if(NOT parsed_HEADER)
157-
message(FATAL_ERROR "dtrace_target expects a header filename")
157+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects a header filename.")
158158
endif()
159159

160160
if(NOT parsed_SOURCES)
161-
message(FATAL_ERROR "dtrace_target expects a list of source files")
161+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects source files.")
162162
endif()
163163

164164
if(NOT IS_ABSOLUTE "${parsed_INPUT}")

cmake/cmake/modules/FindMC.cmake

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,26 @@ function(mc_target)
160160
)
161161

162162
if(parsed_UNPARSED_ARGUMENTS)
163-
message(FATAL_ERROR "Bad arguments: ${parsed_UNPARSED_ARGUMENTS}")
163+
message(FATAL_ERROR "Unrecognized arguments: ${parsed_UNPARSED_ARGUMENTS}")
164164
endif()
165165

166166
if(parsed_KEYWORDS_MISSING_VALUES)
167167
message(FATAL_ERROR "Missing values for: ${parsed_KEYWORDS_MISSING_VALUES}")
168168
endif()
169169

170170
if(NOT parsed_NAME)
171-
message(FATAL_ERROR "mc_target expects a target name")
171+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects a target name.")
172172
endif()
173173

174174
if(NOT parsed_INPUT)
175-
message(FATAL_ERROR "mc_target expects an input filename")
175+
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} expects an input filename.")
176176
endif()
177177

178178
if(NOT MC_FOUND)
179-
message(WARNING "[MC][${parsed_NAME}] Message compiler is missing. Skipping")
179+
message(
180+
WARNING
181+
"[MC][${parsed_NAME}] Message compiler is missing. Skipping."
182+
)
180183
return()
181184
endif()
182185

cmake/cmake/modules/PHP/AddCustomCommand.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function(php_add_custom_command)
6969
)
7070

7171
if(parsed_UNPARSED_ARGUMENTS)
72-
message(FATAL_ERROR "Bad arguments: ${parsed_UNPARSED_ARGUMENTS}")
72+
message(FATAL_ERROR "Unrecognized arguments: ${parsed_UNPARSED_ARGUMENTS}")
7373
endif()
7474

7575
if(NOT ARGV0)

cmake/cmake/modules/PHP/CheckAttribute.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ function(_php_check_attribute what attribute result)
9292
)
9393

9494
if(parsed_UNPARSED_ARGUMENTS)
95-
message(FATAL_ERROR "Bad arguments: ${parsed_UNPARSED_ARGUMENTS}")
95+
message(FATAL_ERROR "Unrecognized arguments: ${parsed_UNPARSED_ARGUMENTS}")
9696
endif()
9797

9898
if(NOT ARGC EQUAL 3)
99-
message(FATAL_ERROR "Missing arguments")
99+
message(FATAL_ERROR "Missing arguments.")
100100
endif()
101101

102102
if(NOT what MATCHES "^(function|variable)$")
@@ -118,7 +118,7 @@ function(_php_check_attribute what attribute result)
118118
cmake_language(CALL _php_check_attribute_get_${what}_code ${attribute} code)
119119

120120
if(NOT code)
121-
message(FATAL_ERROR "Unsupported attribute '${attribute}'")
121+
message(FATAL_ERROR "Unsupported attribute '${attribute}'.")
122122
endif()
123123

124124
check_source_compiles(C "${code}" ${result})

cmake/cmake/modules/PHP/CheckCompilerFlag.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ function(php_check_compiler_flag lang flag result)
5858
)
5959

6060
if(parsed_UNPARSED_ARGUMENTS)
61-
message(FATAL_ERROR "Bad arguments: ${parsed_UNPARSED_ARGUMENTS}")
61+
message(FATAL_ERROR "Unrecognized arguments: ${parsed_UNPARSED_ARGUMENTS}")
6262
endif()
6363

6464
if(NOT ARGC EQUAL 3)
65-
message(FATAL_ERROR "Missing arguments")
65+
message(FATAL_ERROR "Missing arguments.")
6666
endif()
6767

6868
if(NOT CMAKE_REQUIRED_QUIET)

0 commit comments

Comments
 (0)