Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 49) sorted by relevance

12

/PHP-7.4/ext/json/
H A Djson.c150 json_globals->error_code = 0; in PHP_GINIT_FUNCTION()
202 JSON_G(error_code) = encoder.error_code; in php_json_encode_ex()
216 switch(error_code) { in php_json_get_error_msg()
254 JSON_G(error_code) = error_code; in php_json_decode_ex()
256 zend_throw_exception(php_json_exception_ce, php_json_get_error_msg(error_code), error_code); in php_json_decode_ex()
288 JSON_G(error_code) = encoder.error_code; in PHP_FUNCTION()
294 if (encoder.error_code != PHP_JSON_ERROR_NONE) { in PHP_FUNCTION()
296 …w_exception(php_json_exception_ce, php_json_get_error_msg(encoder.error_code), encoder.error_code); in PHP_FUNCTION()
329 JSON_G(error_code) = PHP_JSON_ERROR_NONE; in PHP_FUNCTION()
334 JSON_G(error_code) = PHP_JSON_ERROR_SYNTAX; in PHP_FUNCTION()
[all …]
H A Dphp_json_encoder.h30 php_json_error_code error_code; member
H A Djson_encoder.c145 encoder->error_code = PHP_JSON_ERROR_RECURSION; in php_json_encode_array()
232 encoder->error_code = PHP_JSON_ERROR_DEPTH; in php_json_encode_array()
332 encoder->error_code = PHP_JSON_ERROR_UTF8; in php_json_escape_string()
479 encoder->error_code = PHP_JSON_ERROR_RECURSION; in php_json_encode_serializable_object()
557 encoder->error_code = PHP_JSON_ERROR_INF_OR_NAN; in php_json_encode_zval()
586 encoder->error_code = PHP_JSON_ERROR_UNSUPPORTED_TYPE; in php_json_encode_zval()
H A Dphp_json.h91 php_json_error_code error_code; variable
/PHP-7.4/ext/intl/spoofchecker/
H A Dspoofchecker_main.c32 zval *error_code = NULL; in PHP_METHOD() local
35 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|z", &text, &text_len, &error_code)) { in PHP_METHOD()
48 if (error_code) { in PHP_METHOD()
49 zval_ptr_dtor(error_code); in PHP_METHOD()
50 ZVAL_LONG(error_code, ret); in PHP_METHOD()
64 zval *error_code = NULL; in PHP_METHOD() local
68 &s2, &s2_len, &error_code)) { in PHP_METHOD()
83 if (error_code) { in PHP_METHOD()
84 zval_ptr_dtor(error_code); in PHP_METHOD()
85 ZVAL_LONG(error_code, ret); in PHP_METHOD()
/PHP-7.4/ext/dom/
H A Ddomexception.c41 void php_dom_throw_error_with_message(int error_code, char *error_message, int strict_error) /* {{{… in php_dom_throw_error_with_message() argument
44 zend_throw_exception(dom_domexception_class_entry, error_message, error_code); in php_dom_throw_error_with_message()
52 void php_dom_throw_error(int error_code, int strict_error) in php_dom_throw_error() argument
56 switch (error_code) in php_dom_throw_error()
110 php_dom_throw_error_with_message(error_code, error_message, strict_error); in php_dom_throw_error()
H A Dphp_dom.h107 void php_dom_throw_error(int error_code, int strict_error);
108 void php_dom_throw_error_with_message(int error_code, char *error_message, int strict_error);
/PHP-7.4/ext/pdo/
H A Dphp_pdo_error.h27 strlcpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \
33 #define PDO_STMT_CLEAR_ERR() strcpy(stmt->error_code, PDO_ERR_NONE)
34 #define PDO_HANDLE_DBH_ERR() if (strcmp(dbh->error_code, PDO_ERR_NONE)) { pdo_handle_error(dbh, …
35 #define PDO_HANDLE_STMT_ERR() if (strcmp(stmt->error_code, PDO_ERR_NONE)) { pdo_handle_error(stmt…
H A Dpdo_dbh.c69 pdo_error_type *pdo_err = &dbh->error_code; in pdo_raise_impl_error()
83 pdo_err = &stmt->error_code; in pdo_raise_impl_error()
129 pdo_error_type *pdo_err = &dbh->error_code; in pdo_handle_error()
141 pdo_err = &stmt->error_code; in pdo_handle_error()
1004 RETURN_STRING(dbh->query_stmt->error_code); in PHP_METHOD()
1007 if (dbh->error_code[0] == '\0') { in PHP_METHOD()
1015 RETURN_STRING(dbh->error_code); in PHP_METHOD()
1038 add_next_index_string(return_value, dbh->query_stmt->error_code); in PHP_METHOD()
1039 if(!strncmp(dbh->query_stmt->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE))) goto fill_array; in PHP_METHOD()
1041 add_next_index_string(return_value, dbh->error_code); in PHP_METHOD()
[all …]
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_error_string_basic.phpt13 $error_code = $m[1];
14 if (isset($expected_errors[$error_code])) {
15 $expected_errors[$error_code] = true;
17 $all_errors[$error_code] = $error_string;
24 foreach ($expected_errors as $error_code => $error_code_found) {
27 echo "$name: no error code $error_code\n";
/PHP-7.4/main/streams/
H A Dphp_stream_transport.h53 int *error_code
71 int *error_code
159 int error_code; member
H A Dtransports.c59 int *error_code in _php_stream_xport_create()
145 timeout, &error_text, error_code)) { in _php_stream_xport_create()
223 int *error_code in php_stream_xport_connect() argument
243 if (error_code) { in php_stream_xport_connect()
244 *error_code = param.outputs.error_code; in php_stream_xport_connect()
/PHP-7.4/main/
H A Dnetwork.c311 int *error_code) argument
324 if (error_code) {
325 *error_code = error;
379 if (error_code) {
380 *error_code = error;
500 if (error_code) {
501 *error_code = err;
729 int *error_code, argument
764 if (error_code) {
765 *error_code = error;
[all …]
H A Dphp_network.h246 int *error_code, char *bindto, unsigned short bindport, long sockopts
255 int *error_code);
261 int socktype, long sockopts, zend_string **error_string, int *error_code
270 int *error_code,
/PHP-7.4/ext/intl/tests/
H A Dnormalizer_get_raw_decomposition.phpt28 $error_code = intl_get_error_code();
39 $result .= "error info: '$error_message' ($error_code)\n";
H A Dnormalizer_normalize_kc_cf.phpt67 $error_code = intl_get_error_code();
73 . "\terror info: '$error_message' ($error_code)\n"
77 $error_code = intl_get_error_code();
81 . "\terror info: '$error_message' ($error_code)\n"
/PHP-7.4/ext/pdo_odbc/
H A Dodbc_driver.c66 pdo_error_type *pdo_err = &dbh->error_code; in pdo_odbc_error()
72 pdo_err = &stmt->error_code; in pdo_odbc_error()
166 strcpy(dbh->error_code, stmt->error_code); in odbc_handle_preparer()
212 strcpy(dbh->error_code, stmt->error_code); in odbc_handle_preparer()
/PHP-7.4/ext/date/lib/
H A Dtimelib.c48 const char *timelib_get_error_message(int error_code) in timelib_get_error_message() argument
52 if (error_code >= 0 && error_code < entries) { in timelib_get_error_message()
53 return timelib_error_messages[error_code]; in timelib_get_error_message()
H A Dtimelib.h285 int error_code; member
404 …timelib_tzinfo* (*timelib_tz_get_wrapper)(char *tzname, const timelib_tzdb *tzdb, int *error_code);
685 timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb, int *error_code);
773 const char *timelib_get_error_message(int error_code);
H A Dparse_tz.c494 timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb, int *error_code) in timelib_parse_tzfile() argument
507 *error_code = TIMELIB_ERROR_UNSUPPORTED_VERSION; in timelib_parse_tzfile()
519 *error_code = TIMELIB_ERROR_CORRUPT_NO_64BIT_PREAMBLE; in timelib_parse_tzfile()
526 *error_code = transitions_result; in timelib_parse_tzfile()
531 *error_code = types_result; in timelib_parse_tzfile()
543 *error_code = TIMELIB_ERROR_NO_SUCH_TIMEZONE; in timelib_parse_tzfile()
/PHP-7.4/ext/pdo_oci/
H A Doci_driver.c65 pdo_error_type *pdo_err = &dbh->error_code; in _oci_error()
70 pdo_err = &stmt->error_code; in _oci_error()
177 strcpy(dbh->error_code, stmt->error_code); in _oci_error()
270 strcpy(dbh->error_code, stmt->error_code); in oci_handle_preparer()
623 sb4 error_code = 0; in pdo_oci_check_liveness() local
650 OCIErrorGet (H->err, (ub4)1, NULL, &error_code, NULL, 0, OCI_HTYPE_ERROR); in pdo_oci_check_liveness()
652 if (error_code == 1010) { in pdo_oci_check_liveness()
/PHP-7.4/ext/pdo_firebird/
H A Dfirebird_statement.c185 strcpy(stmt->error_code, "HY000"); in firebird_stmt_fetch()
529 strcpy(stmt->error_code, "HY093"); in firebird_stmt_param_hook()
555 strcpy(stmt->error_code, "HY093"); in firebird_stmt_param_hook()
609 strcpy(stmt->error_code, "HY000"); in firebird_stmt_param_hook()
617 strcpy(stmt->error_code, "HY105"); in firebird_stmt_param_hook()
661 strcpy(stmt->error_code, "HY105"); in firebird_stmt_param_hook()
673 strcpy(stmt->error_code, "HY105"); in firebird_stmt_param_hook()
723 strcpy(stmt->error_code, "HY105"); in firebird_stmt_param_hook()
730 strcpy(stmt->error_code, "HY105"); in firebird_stmt_param_hook()
H A Dfirebird_driver.c40 pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code; in _firebird_error() local
42 strcpy(*error_code, "HY000"); in _firebird_error()
371 strcpy(dbh->error_code, "01004"); in firebird_alloc_prepare_stmt()
/PHP-7.4/Zend/tests/
H A Dbug38047.phpt14 function kalus_error_handler($error_code, $error_string, $filename, $line, $symbols) {
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c139 PCRE_G(error_code) = preg_code; in pcre_handle_exec_error()
281 pcre_globals->error_code = PHP_PCRE_NO_ERROR; in PHP_GINIT_FUNCTION()
1270 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_match_impl()
1277 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_match_impl()
1479 if (PCRE_G(error_code) == PHP_PCRE_NO_ERROR) { in php_pcre_match_impl()
1647 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_replace_impl()
1897 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_replace_func_impl()
2563 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_split_impl()
2702 if (PCRE_G(error_code) != PHP_PCRE_NO_ERROR) { in php_pcre_split_impl()
2911 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_grep_impl()
[all …]

Completed in 102 milliseconds

12