Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.136.236.39
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
php /
82 /
src /
ext /
intl /
[ HOME SHELL ]
Name
Size
Permission
Action
breakiterator
[ DIR ]
drwxr-xr-x
calendar
[ DIR ]
drwxr-xr-x
collator
[ DIR ]
drwxr-xr-x
common
[ DIR ]
drwxr-xr-x
converter
[ DIR ]
drwxr-xr-x
dateformat
[ DIR ]
drwxr-xr-x
formatter
[ DIR ]
drwxr-xr-x
grapheme
[ DIR ]
drwxr-xr-x
idn
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
msgformat
[ DIR ]
drwxr-xr-x
normalizer
[ DIR ]
drwxr-xr-x
resourcebundle
[ DIR ]
drwxr-xr-x
spoofchecker
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
timezone
[ DIR ]
drwxr-xr-x
transliterator
[ DIR ]
drwxr-xr-x
uchar
[ DIR ]
drwxr-xr-x
CREDITS
119
B
-rw-r--r--
ERROR_CONVENTIONS.md
4.96
KB
-rw-r--r--
config.m4
4.19
KB
-rw-r--r--
config.w32
4.15
KB
-rw-r--r--
intl_common.h
1.67
KB
-rw-r--r--
intl_convert.c
4.8
KB
-rw-r--r--
intl_convert.h
1.24
KB
-rw-r--r--
intl_convertcpp.cpp
2.54
KB
-rw-r--r--
intl_convertcpp.h
1.22
KB
-rw-r--r--
intl_cppshims.h
1.15
KB
-rw-r--r--
intl_data.h
5.33
KB
-rw-r--r--
intl_error.c
6.5
KB
-rw-r--r--
intl_error.h
2.24
KB
-rw-r--r--
php_intl.c
8.71
KB
-rw-r--r--
php_intl.h
2.42
KB
-rw-r--r--
php_intl.stub.php
17.08
KB
-rw-r--r--
php_intl_arginfo.h
51.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : intl_error.c
/* +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | https://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Vadim Savchuk <vsavchuk@productengine.com> | | Dmitry Lakhtyuk <dlakhtyuk@productengine.com> | | Stanislav Malyshev <stas@zend.com> | +----------------------------------------------------------------------+ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <php.h> #include <zend_exceptions.h> #include "php_intl.h" #include "intl_error.h" #include "intl_convert.h" ZEND_EXTERN_MODULE_GLOBALS( intl ) zend_class_entry *IntlException_ce_ptr; /* {{{ Return global error structure. */ static intl_error* intl_g_error_get( void ) { return &INTL_G( g_error ); } /* }}} */ /* {{{ Free mem. */ static void intl_free_custom_error_msg( intl_error* err ) { if( !err && !( err = intl_g_error_get( ) ) ) return; if(err->free_custom_error_message ) { efree( err->custom_error_message ); } err->custom_error_message = NULL; err->free_custom_error_message = 0; } /* }}} */ /* {{{ Create and initialize internals of 'intl_error'. */ intl_error* intl_error_create( void ) { intl_error* err = ecalloc( 1, sizeof( intl_error ) ); intl_error_init( err ); return err; } /* }}} */ /* {{{ Initialize internals of 'intl_error'. */ void intl_error_init( intl_error* err ) { if( !err && !( err = intl_g_error_get( ) ) ) return; err->code = U_ZERO_ERROR; err->custom_error_message = NULL; err->free_custom_error_message = 0; } /* }}} */ /* {{{ Set last error code to 0 and unset last error message */ void intl_error_reset( intl_error* err ) { if( !err && !( err = intl_g_error_get( ) ) ) return; err->code = U_ZERO_ERROR; intl_free_custom_error_msg( err ); } /* }}} */ /* {{{ Set last error message to msg copying it if needed. */ void intl_error_set_custom_msg( intl_error* err, const char* msg, int copyMsg ) { if( !msg ) return; if( !err ) { if( INTL_G( error_level ) ) php_error_docref( NULL, INTL_G( error_level ), "%s", msg ); if( INTL_G( use_exceptions ) ) zend_throw_exception_ex( IntlException_ce_ptr, 0, "%s", msg ); } if( !err && !( err = intl_g_error_get( ) ) ) return; /* Free previous message if any */ intl_free_custom_error_msg( err ); /* Mark message copied if any */ err->free_custom_error_message = copyMsg; /* Set user's error text message */ err->custom_error_message = copyMsg ? estrdup( msg ) : (char *) msg; } /* }}} */ /* {{{ Create output message in format "<intl_error_text>: <extra_user_error_text>". */ zend_string * intl_error_get_message( intl_error* err ) { const char *uErrorName = NULL; zend_string *errMessage = 0; if( !err && !( err = intl_g_error_get( ) ) ) return ZSTR_EMPTY_ALLOC(); uErrorName = u_errorName( err->code ); /* Format output string */ if( err->custom_error_message ) { errMessage = strpprintf(0, "%s: %s", err->custom_error_message, uErrorName ); } else { errMessage = strpprintf(0, "%s", uErrorName ); } return errMessage; } /* }}} */ /* {{{ Set last error code. */ void intl_error_set_code( intl_error* err, UErrorCode err_code ) { if( !err && !( err = intl_g_error_get( ) ) ) return; err->code = err_code; } /* }}} */ /* {{{ Return last error code. */ UErrorCode intl_error_get_code( intl_error* err ) { if( !err && !( err = intl_g_error_get( ) ) ) return U_ZERO_ERROR; return err->code; } /* }}} */ /* {{{ Set error code and message. */ void intl_error_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg ) { intl_error_set_code( err, code ); intl_error_set_custom_msg( err, msg, copyMsg ); } /* }}} */ /* {{{ Set error code and message. */ void intl_errors_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg ) { intl_errors_set_code( err, code ); intl_errors_set_custom_msg( err, msg, copyMsg ); } /* }}} */ /* {{{ */ void intl_errors_reset( intl_error* err ) { if(err) { intl_error_reset( err ); } intl_error_reset( NULL ); } /* }}} */ /* {{{ */ void intl_errors_set_custom_msg( intl_error* err, const char* msg, int copyMsg ) { if(err) { intl_error_set_custom_msg( err, msg, copyMsg ); } intl_error_set_custom_msg( NULL, msg, copyMsg ); } /* }}} */ /* {{{ */ void intl_errors_set_code( intl_error* err, UErrorCode err_code ) { if(err) { intl_error_set_code( err, err_code ); } intl_error_set_code( NULL, err_code ); } /* }}} */ smart_str intl_parse_error_to_string( UParseError* pe ) { smart_str ret = {0}; zend_string *u8str; UErrorCode status; int any = 0; assert( pe != NULL ); smart_str_appends( &ret, "parse error " ); if( pe->line > 0 ) { smart_str_appends( &ret, "on line " ); smart_str_append_long( &ret, (zend_long ) pe->line ); any = 1; } if( pe->offset >= 0 ) { if( any ) smart_str_appends( &ret, ", " ); else smart_str_appends( &ret, "at " ); smart_str_appends( &ret, "offset " ); smart_str_append_long( &ret, (zend_long ) pe->offset ); any = 1; } if (pe->preContext[0] != 0 ) { if( any ) smart_str_appends( &ret, ", " ); smart_str_appends( &ret, "after \"" ); u8str = intl_convert_utf16_to_utf8(pe->preContext, -1, &status ); if( !u8str ) { smart_str_appends( &ret, "(could not convert parser error pre-context to UTF-8)" ); } else { smart_str_append( &ret, u8str ); zend_string_release_ex( u8str, 0 ); } smart_str_appends( &ret, "\"" ); any = 1; } if( pe->postContext[0] != 0 ) { if( any ) smart_str_appends( &ret, ", " ); smart_str_appends( &ret, "before or at \"" ); u8str = intl_convert_utf16_to_utf8(pe->postContext, -1, &status ); if( !u8str ) { smart_str_appends( &ret, "(could not convert parser error post-context to UTF-8)" ); } else { smart_str_append( &ret, u8str ); zend_string_release_ex( u8str, 0 ); } smart_str_appends( &ret, "\"" ); any = 1; } if( !any ) { smart_str_free( &ret ); smart_str_appends( &ret, "no parse error" ); } smart_str_0( &ret ); return ret; }
Close