Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 217) sorted by last modified time

123456789

/php-src/ext/curl/tests/
H A Dcurl_pushfunction_trampoline.phpt45 if (false !== $info && $info['msg'] == CURLMSG_DONE) {
/php-src/ext/curl/
H A Dmulti.c290 add_assoc_long(return_value, "msg", tmp_msg->msg); in PHP_FUNCTION()
/php-src/ext/libxml/
H A Dlibxml.c604 error_copy.message = (char*)xmlStrdup((const xmlChar*)msg); in _php_list_set_error_structure()
626 php_error_docref(NULL, E_WARNING, "%s", msg); in php_libxml_ctx_error_level()
630 void php_libxml_issue_error(int level, const char *msg) in php_libxml_issue_error() argument
633 _php_list_set_error_structure(NULL, msg, 0, 0); in php_libxml_issue_error()
635 php_error_docref(NULL, level, "%s", msg); in php_libxml_issue_error()
644 size_t len = vspprintf(&buf, 0, msg, ap); in php_libxml_internal_error_handler_ex()
822 va_start(args, msg); in php_libxml_pretend_ctx_error_ex()
844 va_start(args, msg); in php_libxml_ctx_error()
852 va_start(args, msg); in php_libxml_ctx_warning()
869 va_start(args, msg); in php_libxml_error_handler()
[all …]
H A Dphp_libxml.h162 PHP_LIBXML_API void php_libxml_error_handler(void *ctx, const char *msg, ...);
163 PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx, const char *msg, ...);
164 … void php_libxml_pretend_ctx_error_ex(const char *file, int line, int column, const char *msg,...);
165 PHP_LIBXML_API void php_libxml_ctx_error(void *ctx, const char *msg, ...);
166 …bxml_error_handler_va(php_libxml_error_level error_type, void *ctx, const char *msg, va_list args);
169 PHP_LIBXML_API void php_libxml_issue_error(int level, const char *msg);
/php-src/ext/reflection/
H A Dphp_reflection.c103 #define _DO_THROW(msg) \ argument
104 zend_throw_exception(reflection_exception_ptr, msg, 0);
/php-src/Zend/
H A Dzend_API.c1128 static ZEND_COLD void zend_parse_parameters_debug_error(const char *msg) { in zend_parse_parameters_debug_error() argument
1134 ZSTR_VAL(active_function->common.function_name), msg); in zend_parse_parameters_debug_error()
H A Dzend_alloc.c395 static void stderr_last_error(char *msg) in stderr_last_error() argument
401 fprintf(stderr, "\n%s: [0x%08lx]\n", msg, err); in stderr_last_error()
404 fprintf(stderr, "\n%s: [0x%08lx] %s\n", msg, err, buf); in stderr_last_error()
H A Dzend_execute.c875 smart_str msg = {0}; in zend_match_unhandled_error() local
881 smart_str_appends(&msg, zend_zval_type_name(value)); in zend_match_unhandled_error()
884 smart_str_0(&msg); in zend_match_unhandled_error()
889 smart_str_free(&msg); in zend_match_unhandled_error()
1684 const char *msg = NULL; in zend_wrong_string_offset_error() local
1697 msg = "Cannot create references to/from string offsets"; in zend_wrong_string_offset_error()
1708 msg = "Cannot use string offset as an array"; in zend_wrong_string_offset_error()
1711 msg = "Cannot use string offset as an object"; in zend_wrong_string_offset_error()
1714 msg = "Cannot increment/decrement string offsets"; in zend_wrong_string_offset_error()
1721 ZEND_ASSERT(msg != NULL); in zend_wrong_string_offset_error()
[all …]
/php-src/ext/opcache/jit/ir/
H A Dir.c867 #define IR_FOLD_ERROR(msg) do { \ argument
868 IR_ASSERT(0 && (msg)); \
/php-src/ext/tidy/
H A Dtidy.c209 static void TIDY_CALL php_tidy_panic(ctmbstr msg) in php_tidy_panic() argument
211 php_error_docref(NULL, E_ERROR, "Could not allocate memory for tidy! (Reason: %s)", (char *)msg); in php_tidy_panic()
/php-src/Zend/tests/type_declarations/union_types/
H A Dtype_checking_strict.phpt34 $msg = $e->getMessage();
35 $msg = strstr($msg, ', called in', true);
36 $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
37 echo $msg;
H A Dtype_checking_weak.phpt32 $msg = $e->getMessage();
33 $msg = strstr($msg, ', called in', true);
34 $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
35 echo $msg;
/php-src/Zend/tests/
H A Dbug61767.phpt5 set_error_handler(function($code, $msg, $file = null, $line = null) {
6 echo "Error handler called ($msg)\n";
7 throw new \ErrorException($msg, $code, 0, $file, $line);
H A Dbug74164.phpt8 set_error_handler(function ($type, $msg) {
9 throw new \Exception($msg);
/php-src/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c527 const char * const msg = "Authentication data too long. " in php_mysqlnd_auth_write() local
529 SET_CLIENT_ERROR(error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, msg); in php_mysqlnd_auth_write()
530 php_error_docref(NULL, E_WARNING, "%s", msg); in php_mysqlnd_auth_write()
H A Dmysqlnd_ps.c682 char * msg; in MYSQLND_METHOD() local
683 mnd_sprintf(&msg, 0, "No data supplied for %u parameter%s in prepared statement", in MYSQLND_METHOD()
685 SET_CLIENT_ERROR(stmt->error_info, CR_PARAMS_NOT_BOUND, UNKNOWN_SQLSTATE, msg); in MYSQLND_METHOD()
686 if (msg) { in MYSQLND_METHOD()
687 mnd_sprintf_free(msg); in MYSQLND_METHOD()
H A Dmysqlnd_connection.c731 char * msg; local
732 …mnd_sprintf(&msg, 0, "Unknown error while trying to connect via %s", transport.s ? transport.s : c…
733 SET_CLIENT_ERROR(conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, msg);
734 mnd_sprintf_free(msg);
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c465 const char *msg, const size_t msg_len) /* {{{ */ in php_firebird_set_error() argument
506 } else if (msg && msg_len) { in php_firebird_set_error()
508 einfo->errmsg = pestrndup(msg, einfo->errmsg_length, dbh->is_persistent); in php_firebird_set_error()
/php-src/ext/zend_test/tests/
H A Dobserver_call_user_func_02.phpt14 public static function myMethod(string $msg)
16 echo 'MyClass::myMethod ' . $msg . PHP_EOL;
20 function my_function(string $msg)
22 echo 'my_function ' . $msg . PHP_EOL;
H A Dobserver_call_user_func_04.phpt14 public static function myMethod(string $msg)
16 echo 'MyClass::myMethod ' . $msg . PHP_EOL;
20 function my_function(string $msg)
22 echo 'my_function ' . $msg . PHP_EOL;
/php-src/ext/opcache/jit/
H A Dzend_jit.c3222 char *msg = php_win32_error_to_msg(err); in zend_jit_unprotect()
3223 fprintf(stderr, "VirtualProtect() failed [%u] %s\n", err, msg); in zend_jit_unprotect()
3224 php_win32_error_msg_free(msg); in zend_jit_unprotect()
3249 char *msg = php_win32_error_to_msg(err); in zend_jit_protect()
3250 fprintf(stderr, "VirtualProtect() failed [%u] %s\n", err, msg); in zend_jit_protect()
3251 php_win32_error_msg_free(msg); in zend_jit_protect()
3492 char *msg = php_win32_error_to_msg(err); in zend_jit_startup() local
3493 fprintf(stderr, "VirtualProtect() failed [%u] %s\n", err, msg); in zend_jit_startup()
3494 php_win32_error_msg_free(msg); in zend_jit_startup()
3501 char *msg = php_win32_error_to_msg(err); in zend_jit_startup() local
[all …]
/php-src/ext/xsl/
H A Dphp_xsl.c224 const char *msg, in xsl_try_output_replaced_error_message() argument
231 const char *msg_replace_location = strstr(msg, search); in xsl_try_output_replaced_error_message()
233 …php_libxml_ctx_error(ctx, "%.*s%s%s", (int) (msg_replace_location - msg), msg, replace, msg_replac… in xsl_try_output_replaced_error_message()
241 #define XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE(ctx, msg, args, search, replace) \ argument
242 xsl_try_output_replaced_error_message(ctx, msg, args, "" search, sizeof("" search) - 1, "" replace)
246 static void xsl_libxslt_error_handler(void *ctx, const char *msg, ...) in xsl_libxslt_error_handler() argument
249 va_start(args, msg); in xsl_libxslt_error_handler()
251 if (strcmp(msg, "%s") == 0) { in xsl_libxslt_error_handler()
261 php_libxml_error_handler_va(PHP_LIBXML_ERROR, ctx, msg, args); in xsl_libxslt_error_handler()
/php-src/ext/pdo/
H A Dpdo_dbh.c72 const char *msg; in pdo_raise_impl_error() local
90 msg = pdo_sqlstate_state_to_description(*pdo_err); in pdo_raise_impl_error()
91 if (!msg) { in pdo_raise_impl_error()
92 msg = "<<Unknown error>>"; in pdo_raise_impl_error()
96 spprintf(&message, 0, "SQLSTATE[%s]: %s: %s", *pdo_err, msg, supp); in pdo_raise_impl_error()
98 spprintf(&message, 0, "SQLSTATE[%s]: %s", *pdo_err, msg); in pdo_raise_impl_error()
131 const char *msg = "<<Unknown>>"; in pdo_handle_error() local
146 msg = pdo_sqlstate_state_to_description(*pdo_err); in pdo_handle_error()
147 if (!msg) { in pdo_handle_error()
148 msg = "<<Unknown error>>"; in pdo_handle_error()
[all …]
/php-src/ext/phar/
H A Dphar.c439 #define MAPPHAR_ALLOC_FAIL(msg) \ argument
444 spprintf(error, 0, msg, fname);\
448 #define MAPPHAR_FAIL(msg) \ argument
456 MAPPHAR_ALLOC_FAIL(msg)
/php-src/sapi/fpm/tests/
H A Dtester.inc1536 * @param string|null $msg
1538 private function message($msg)
1540 if ($msg !== null) {
1541 echo "$msg\n";
1558 * @param string $msg Error message.
1564 private function error(string $msg, ?\Exception $exception = null, bool $prefix = true): bool
1566 $this->error = $prefix ? 'ERROR: ' . $msg : ltrim($msg);

Completed in 143 milliseconds

123456789