@@ -114,15 +114,15 @@ extern swoole_object_array swoole_objects;
114114#define SW_CHECK_RETURN (s ) if(s<0){RETURN_FALSE;}else{RETURN_TRUE;}
115115#define SW_LOCK_CHECK_RETURN (s ) if(s==0){RETURN_TRUE;}else{zend_update_property_long(NULL,getThis(),SW_STRL("errCode"),s);RETURN_FALSE;}
116116
117- #define swoole_php_fatal_error (level , fmt_str , ...) \
117+ #define php_swoole_fatal_error (level , fmt_str , ...) \
118118 php_error_docref(NULL, level, (const char *) (fmt_str), ##__VA_ARGS__)
119119
120- #define swoole_php_error (level , fmt_str , ...) \
120+ #define php_swoole_error (level , fmt_str , ...) \
121121 if (SWOOLE_G(display_errors) || level == E_ERROR) \
122- swoole_php_fatal_error (level, fmt_str, ##__VA_ARGS__)
122+ php_swoole_fatal_error (level, fmt_str, ##__VA_ARGS__)
123123
124- #define swoole_php_sys_error (level , fmt_str , ...) \
125- swoole_php_error (level, fmt_str ", Error: %s[%d]", ##__VA_ARGS__, strerror(errno), errno)
124+ #define php_swoole_sys_error (level , fmt_str , ...) \
125+ php_swoole_error (level, fmt_str ", Error: %s[%d]", ##__VA_ARGS__, strerror(errno), errno)
126126
127127#ifdef SW_USE_OPENSSL
128128#ifndef HAVE_OPENSSL
@@ -450,8 +450,6 @@ ssize_t php_swoole_length_func(swProtocol *protocol, swConnection *conn, char *d
450450int php_swoole_client_onPackage (swConnection * conn , char * data , uint32_t length );
451451zend_bool php_swoole_signal_isset_handler (int signo );
452452
453- int php_coroutine_reactor_can_exit (swReactor * reactor );
454-
455453#ifdef SW_USE_OPENSSL
456454void php_swoole_client_check_ssl_setting (swClient * cli , zval * zset );
457455#endif
@@ -1149,16 +1147,15 @@ static sw_inline void sw_zend_fci_cache_free(void* fci_cache)
11491147}
11501148
11511149//----------------------------------Misc API------------------------------------
1152-
1153- static sw_inline char * sw_php_format_date (char * format , size_t format_len , time_t ts , int localtime )
1150+ static sw_inline char * php_swoole_format_date (char * format , size_t format_len , time_t ts , int localtime )
11541151{
11551152 zend_string * time = php_format_date (format , format_len , ts , localtime );
11561153 char * return_str = estrndup (ZSTR_VAL (time ), ZSTR_LEN (time ));
11571154 zend_string_release (time );
11581155 return return_str ;
11591156}
11601157
1161- static sw_inline char * sw_php_url_encode (char * value , size_t value_len , int * exten )
1158+ static sw_inline char * php_swoole_url_encode (char * value , size_t value_len , int * exten )
11621159{
11631160 zend_string * str = php_url_encode (value , value_len );
11641161 * exten = ZSTR_LEN (str );
@@ -1167,7 +1164,7 @@ static sw_inline char* sw_php_url_encode(char *value, size_t value_len, int* ext
11671164 return return_str ;
11681165}
11691166
1170- static sw_inline char * sw_http_build_query (zval * zdata , size_t * length , smart_str * formstr )
1167+ static sw_inline char * php_swoole_http_build_query (zval * zdata , size_t * length , smart_str * formstr )
11711168{
11721169 if (php_url_encode_hash_ex (HASH_OF (zdata ), formstr , NULL , 0 , NULL , 0 , NULL , 0 , NULL , NULL , (int ) PHP_QUERY_RFC1738 ) == FAILURE )
11731170 {
@@ -1186,7 +1183,7 @@ static sw_inline char* sw_http_build_query(zval *zdata, size_t *length, smart_st
11861183 return formstr -> s -> val ;
11871184}
11881185
1189- static sw_inline zend_string * sw_get_debug_print_backtrace (zend_long options , zend_long limit )
1186+ static sw_inline zend_string * php_swoole_get_debug_print_backtrace (zend_long options , zend_long limit )
11901187{
11911188 SW_PHP_OB_START (zoutput ) {
11921189 zval fcn , args [2 ];
@@ -1195,7 +1192,8 @@ static sw_inline zend_string* sw_get_debug_print_backtrace(zend_long options, ze
11951192 ZVAL_LONG (& args [1 ], limit );
11961193 sw_zend_call_function_ex (& fcn , NULL , 2 , args , & zoutput );
11971194 zval_ptr_dtor (& fcn );
1198- } SW_PHP_OB_END ();
1195+ }
1196+ SW_PHP_OB_END ();
11991197 if (UNEXPECTED (Z_TYPE_P (& zoutput ) != IS_STRING ))
12001198 {
12011199 return NULL ;
0 commit comments