author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
323,346 | 16.06.2020 17:39:28 | -28,800 | 6d4834560cbfeeeacdf3ba865e53ff17455afab2 | remove hard drive info from get_hw_hash column / remove os/unit abstract class | [
{
"change_type": "RENAME",
"old_path": "core/lib/os/unit/darwin.php",
"new_path": "core/lib/os/darwin.php",
"diff": "* limitations under the License.\n*/\n-namespace core\\lib\\os\\unit;\n-\n-use core\\lib\\os\\unit;\n+namespace core\\lib\\os;\n/**\n* Class darwin\n*\n- * @package core\\lib\\os\\uni... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove hard drive info from get_hw_hash column / remove os/unit abstract class |
323,346 | 17.06.2020 12:05:13 | -28,800 | 5579e7122cb5a18d093f86a2d6fe573432db6a8a | make core as a globle module | [
{
"change_type": "MODIFY",
"old_path": "api.php.example",
"new_path": "api.php.example",
"diff": "* limitations under the License.\n*/\n-//Set error_reporting level\n-error_reporting(E_ALL);\n-\n//Load main script\n-require __DIR__ . '/core/ns.php';\n+require __DIR__ . '/core/sys.php';\n/**\n* Regis... | PHP | Apache License 2.0 | jerry-shaw/nervsys | make core as a globle module |
323,346 | 17.06.2020 17:32:25 | -28,800 | e97794380932591bc13d19623ac59f66d7d8e8bc | fix ROOT path detection error | [
{
"change_type": "MODIFY",
"old_path": "core/sys.php",
"new_path": "core/sys.php",
"diff": "@@ -51,7 +51,7 @@ define('APP_PATH', 'app');\ndefine('ENTRY_SCRIPT', $entry_script);\n//Define ROOT path\n-define('ROOT', is_dir($parent_path = (dirname($entry_path = dirname($entry_script)) . DIRECTORY_SEPAR... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix ROOT path detection error |
323,346 | 19.06.2020 16:45:02 | -28,800 | 81cd3d81b0913561f6f0f336140cf6c7ca8f50c1 | move example code from root to doc/example | [
{
"change_type": "DELETE",
"old_path": "app/app.ini",
"new_path": null,
"diff": "-; NervSys Setting Example\n-; Rewrite file location: ROOT/app/app.ini\n-; Copy all modified keys including section keys to rewrite file\n-\n-[SYS]\n-; System TimeZone\n-timezone = PRC\n-\n-; Enable/disable automatic ca... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move example code from root to doc/example |
323,346 | 19.06.2020 16:50:55 | -28,800 | 24665b17492e18c683db3da8ec004352ba120373 | Bump version & update doc files | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable version: 7.4.0\n+Stable version: 7.4.5\nExtension version: 3.0\n## About Nervsys\n@@ -23,6 +23,9 @@ PHP **7.2+** and above. Any kind of web server or running under CLI mode.\n3. Client for progra... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Bump version & update doc files |
323,346 | 21.07.2020 15:51:06 | -28,800 | ab5abf9c89732e6682c6c78b7160e52a90b6f4c3 | fix output data content-type | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -212,6 +212,7 @@ final class io\n//Build full result\n$result = json_encode(!empty($error) ? $error + ['data' => $data] : $data, JSON_FORMAT);\n+ header('Content-Type: application/json; chars... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix output data content-type |
323,346 | 26.11.2020 17:08:32 | -28,800 | f6a95419b4df58d351e9e6567dff7614b5fffe69 | Fix ReflectionParameter::getClass() is deprecated under PHP8 | [
{
"change_type": "MODIFY",
"old_path": "Core/Reflect.php",
"new_path": "Core/Reflect.php",
"diff": "@@ -137,25 +137,18 @@ class Reflect extends Factory\n$info['default'] = $parameter->getDefaultValue();\n}\n- //Get param type\n- $info['has_type'] = $parameter->hasType();\n- if ($info['has_type']) {\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix ReflectionParameter::getClass() is deprecated under PHP8 |
323,346 | 29.11.2020 13:15:53 | -28,800 | d083fd2b2c8eec6432f923fc420bdffaa1c3d379 | Remove "open_root_exec" property and related functions | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Router.php",
"new_path": "Core/Lib/Router.php",
"diff": "@@ -36,7 +36,6 @@ class Router extends Factory\npublic array $cgi_stack;\npublic array $cli_stack;\npublic array $cli_mapping = [];\n- public bool $open_root_exec = false;\n/**\n* Router constru... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove "open_root_exec" property and related functions |
323,346 | 29.11.2020 13:26:18 | -28,800 | 14774bb1346f2459353ed95dccf03388a6929b83 | Set full NS struct to be executable (CGI always redirect to api path) | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Router.php",
"new_path": "Core/Lib/Router.php",
"diff": "@@ -92,12 +92,8 @@ class Router extends Factory\n{\n$cmd_list = ['cli' => [], 'cgi' => []];\n- if ('' === $c\n- //Always prevent system invoke attacks\n- || false !== strpos($c, '/NS')\n- || fal... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Set full NS struct to be executable (CGI always redirect to api path) |
323,346 | 30.11.2020 17:00:45 | -28,800 | 5ed9876abf7849d174a9868b857be2cf7549edd7 | New MPC logic using pipe | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "namespace Ext;\n+use Core\\Execute;\nuse Core\\Factory;\nuse Core\\Lib\\App;\n+use Core\\Lib\\Error;\nuse Core\\Lib\\IOUnit;\n+use Core\\Lib\\Router;\nuse Core\\OSUnit;\n+use Core\\Reflect;\n/**\n* Class ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | New MPC logic using pipe |
323,346 | 30.11.2020 22:19:22 | -28,800 | 1ed5e1f0bd573fd3335cbfdf6767148b99db7e3e | Add job balance & ticket system to MPC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -41,12 +41,15 @@ class libMPC extends Factory\nprivate IOUnit $io_unit;\nprivate OSUnit $os_unit;\n+ public int $proc_idx = 0;\npublic int $proc_cnt = 10;\npublic string $php_path = '';\npublic string ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add job balance & ticket system to MPC |
323,346 | 02.12.2020 14:12:25 | -28,800 | 337629fd1a5f3409867a720d7abf53a94a82ad60 | Prevent daemonProc to be ghost process | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -186,8 +186,8 @@ class libMPC extends Factory\nwhile (true) {\n$stdin = fgets(STDIN);\n- //Receive exit code\n- if ('exit' === ($stdin = trim($stdin))) {\n+ //Receive error and exit code\n+ if (false =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Prevent daemonProc to be ghost process |
323,346 | 02.12.2020 14:49:40 | -28,800 | 50638aa0a92b5764f493a91e0c0a00b19ee51fea | Prevent pipe blocking under high job pressure | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -141,7 +141,19 @@ class libMPC extends Factory\n//Communicate via STDIN\nfwrite($this->pipe_list[$idx][0], json_encode($data, JSON_FORMAT) . PHP_EOL);\n- unset($c, $data, $idx);\n+ //Check & read from ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Prevent pipe blocking under high job pressure |
323,346 | 02.12.2020 17:57:45 | -28,800 | 57668a3eae5827d7ce5754f7686521bf5a67fe2c | Remove useless appPath related logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -38,7 +38,6 @@ class App extends Factory\npublic string $script_path = '';\npublic string $api_path = 'api';\n- public string $app_path = 'app';\npublic string $inc_path = 'inc';\npublic string $cl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove useless appPath related logic |
323,346 | 02.12.2020 22:03:09 | -28,800 | 7260e72d05e73cc485f5fc30ac4b3c682d7dd6e7 | Remove setForProc as it failed under windows | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -208,7 +208,7 @@ class Execute extends Factory\n//Create process\n$process = proc_open(\n- $os_unit->setEnvPath()->setForProc()->fetchCmd(),\n+ $os_unit->setEnvPath()->fetchCmd(),\n[\n['pipe', 'r']... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove setForProc as it failed under windows |
323,346 | 02.12.2020 22:20:53 | -28,800 | 354cc6f5489ac33d597d21aa64209a07cfc82c9d | Fix write logs under the root of driver when no app class was loaded | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -67,6 +67,11 @@ class App extends Factory\n//Get absolute entry path\n$this->entry_path = dirname($this->script_path);\n+ //Create default log path\n+ if ('' === $this->root_path) {\n+ $this->creat... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix write logs under the root of driver when no app class was loaded |
323,346 | 03.12.2020 13:37:51 | -28,800 | 40797334c670d4de2c58eacb5e8b9ec8b4f303cb | Improve root path detection logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -64,13 +64,19 @@ class App extends Factory\n$this->script_path = getcwd() . DIRECTORY_SEPARATOR . $this->script_path;\n}\n- //Get absolute entry path\n+ //Get entry path\n$this->entry_path = dirnam... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve root path detection logic |
323,346 | 03.12.2020 20:28:48 | -28,800 | 213db22fadebacf122c1265038ae822e80bb112a | include path logic modified | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -78,6 +78,9 @@ class App extends Factory\n//Create global log path\n$this->createLogPath($this->root_path);\n+ //Set default include path\n+ set_include_path($this->root_path . DIRECTORY_SEPARATOR ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | include path logic modified |
323,346 | 03.12.2020 21:02:33 | -28,800 | 613e4fb998dd929eff26ed988d47f9abc4e96e72 | Remove useless function and property | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -45,7 +45,6 @@ class App extends Factory\npublic bool $is_cli = false;\npublic bool $is_tls = false;\n- public bool $auto_call = false;\npublic bool $core_debug = false;\n/**\n@@ -142,21 +141,6 @@ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove useless function and property |
323,346 | 03.12.2020 21:20:13 | -28,800 | 6eadaf7eba344eb5a1e13d6d426ad11002c40e67 | improve autoload function in libCoreApi | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCoreApi.php",
"new_path": "Ext/libCoreApi.php",
"diff": "@@ -48,13 +48,10 @@ class libCoreApi extends Factory\n$path = App::new()->root_path . DIRECTORY_SEPARATOR . $pathname;\nspl_autoload_register(\n- function (string $class) use ($path): void\n+ stat... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve autoload function in libCoreApi |
323,346 | 06.12.2020 13:47:41 | -28,800 | 8127491af015f21d4fc3e8f7c9a493aa229ecbbb | Change return type of libErrno::load from void to self | [
{
"change_type": "MODIFY",
"old_path": "Ext/libErrno.php",
"new_path": "Ext/libErrno.php",
"diff": "@@ -46,6 +46,7 @@ class libErrno extends Factory\n{\n$this->path = App::new()->root_path . DIRECTORY_SEPARATOR . $pathname;\n$this->multi_lang = &$multi_lang;\n+\nunset($pathname, $multi_lang);\n}\n@@... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change return type of libErrno::load from void to self |
323,346 | 06.12.2020 21:23:16 | -28,800 | cf615ac7e336ff9b05d175adc29928efa3f54987 | Try to fix data missing on jobs in the beginning | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -172,14 +172,14 @@ class libMPC extends Factory\n//Read STDOUT data\nif ($status['running']) {\n- while (0 < (fstat($this->pipe_list[$idx][1]))['size'] && 0 < $this->job_count[$idx]--) {\n+ while (0 < ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Try to fix data missing on jobs in the beginning |
323,346 | 06.12.2020 22:30:45 | -28,800 | 9bc6c3e38e1a0d88e6acd7df4a1b9f108d458013 | Try using random ticket instead of int | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -50,7 +50,7 @@ class libMPC extends Factory\npublic array $proc_list = [];\npublic array $pipe_list = [];\n- public array $job_count = [];\n+ public array $job_queue = [];\npublic array $job_result = [... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Try using random ticket instead of int |
323,346 | 07.12.2020 15:46:37 | -28,800 | ce040f5da65f2f4c7fb12969ab7c3ceaaea1ce90 | Using another way to generate ticket | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -50,16 +50,10 @@ class libMPC extends Factory\npublic array $proc_list = [];\npublic array $pipe_list = [];\n- public array $job_queue = [];\n- public array $job_result = [];\n- /**\n- * libMPC constru... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using another way to generate ticket |
323,346 | 07.12.2020 16:35:41 | -28,800 | b11423d0f6f3344d72e65d9ac21c2b46555df0e4 | Fix output data error on the same mtk | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -46,6 +46,7 @@ class libMPC extends Factory\npublic int $proc_idx = 0;\npublic int $proc_cnt = 10;\n+ public int $buf_size = 4096;\npublic string $php_path = '';\npublic array $proc_list = [];\n@@ -55,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix output data error on the same mtk |
323,346 | 07.12.2020 16:45:58 | -28,800 | e33afd639f1c6e4a5fdd05a3777e501e3002fe63 | Remove mtk reset logic as it caused data mismatched (pointer overwritten?) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -136,11 +136,6 @@ class libMPC extends Factory\n//Get current job count and increase\n$job_count = ++$this->job_count[$this->proc_idx];\n- //Reset job mtk when it becomes large enough\n- if ($this->buf... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove mtk reset logic as it caused data mismatched (pointer overwritten?) |
323,346 | 08.12.2020 23:06:29 | -28,800 | b0023655f851d38c142ef8b7dfec0671f1b83c5a | Add full WebSocket server support (need improved) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -151,7 +151,7 @@ class libSocket extends Factory\n}\n$this->lib_mpc = libMPC::new()->setPhpPath(OSUnit::new()->getPhpPath())->start();\n- $this->clients = $this->master = [$this->genId() => $sock... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add full WebSocket server support (need improved) |
323,346 | 09.12.2020 10:57:55 | -28,800 | 86c5bd5e7da374e63bb1529cbb26ab5849f18991 | Change MPC::fetch return type to string compatible (raw string or json from array) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -57,7 +57,7 @@ class libMPC extends Factory\npublic array $job_result = [];\n/**\n- * Set pipe buffer size (default 4096 byte, block when overflow, set carefully)\n+ * Set pipe buffer size (default 409... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change MPC::fetch return type to string compatible (raw string or json from array) |
323,346 | 09.12.2020 12:28:58 | -28,800 | c43a012f22b594c4d07c07ed9e069fa4379b841c | Fix message NOT encoded under websocket | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -502,7 +502,7 @@ class libSocket extends Factory\n//Send message\nforeach ($send_tk as $sock_id => $stk) {\n- $this->sendMsg($sock_id, $this->lib_mpc->fetch($stk));\n+ $this->sendMsg($sock_id, $t... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix message NOT encoded under websocket |
323,346 | 09.12.2020 12:58:09 | -28,800 | 7965a9c4438835e17565882faade590f307d0c64 | Add mpc proc count param to libSocket::run | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -52,7 +52,7 @@ class libSocket extends Factory\n*\n* @param string $address\n* @param int $port\n- * @param string $protocol (tcp/udp/ssl/tls1.2/...)\n+ * @param string $protocol (tcp/udp/ssl/tls... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add mpc proc count param to libSocket::run |
323,346 | 09.12.2020 18:03:30 | -28,800 | 7190f834f11112f773ea629ed93b32a411c1a5d2 | Fix job counter NOT equals to jobs, caused block on reading | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -198,20 +198,25 @@ class libMPC extends Factory\n$this->os_unit = OSUnit::new();\nwhile (true) {\n- $stdin = fgets(STDIN);\n+ //Pipe broken\n+ if (false === ($stdin = fgets(STDIN))) {\n+ return;\n+ }\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix job counter NOT equals to jobs, caused block on reading |
323,346 | 09.12.2020 18:22:11 | -28,800 | 5d4be8e693646e24839f9bab00e46a77d3fc8cba | Skip empty msg, Don't close connection | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -43,6 +43,7 @@ class libSocket extends Factory\npublic array $master = [];\npublic array $clients = [];\n+ /** @var \\Ext\\libMPC $lib_mpc */\npublic libMPC $lib_mpc;\npublic string $handler_clas... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Skip empty msg, Don't close connection |
323,346 | 09.12.2020 18:53:28 | -28,800 | a81aeccd791e2fde3371b5f30afb5282cf503dc9 | Try to prevent process terminated on error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -406,10 +406,22 @@ class libSocket extends Factory\n//Read from socket and send to MPC\nforeach ($read as $sock_id => $client) {\n//Accept new connection\n- if ($client === $socket && false !== (... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Try to prevent process terminated on error |
323,346 | 09.12.2020 21:13:29 | -28,800 | 30f891a841cc3fec8b79f3361958b0ff5f741cfd | Fix getting WS opcode failed in some cases | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -480,7 +480,7 @@ class libSocket extends Factory\n$socket_msg = $this->readMsg($sock_id);\n//Check opcode (connection closed: 8)\n- if (8 === $this->wsGetOpcode($socket_msg)) {\n+ if ('' === $soc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix getting WS opcode failed in some cases |
323,346 | 09.12.2020 22:24:22 | -28,800 | e7cfd3ae2d0e62110801ccf69c212780a96c9207 | Using mask and opcode both | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -279,15 +279,19 @@ class libSocket extends Factory\n}\n/**\n- * WebSocket get opcode\n+ * Get WebSocket header codes (fin, opcode, mask)\n*\n* @param string $buff\n*\n- * @return int\n+ * @return... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using mask and opcode both |
323,346 | 10.12.2020 10:43:56 | -28,800 | 4854295a60457d0966690abf8206f96d55258c85 | Add ping/pong logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -387,6 +387,28 @@ class libSocket extends Factory\nreturn $buff;\n}\n+ /**\n+ * Send WebSocket Ping frame\n+ *\n+ * @param string $sock_id\n+ */\n+ protected function wsPing(string $sock_id): voi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add ping/pong logic |
323,346 | 10.12.2020 12:01:23 | -28,800 | 75e9dec3a180ae148ccf863d041fbb6e49fdb2f9 | Add try() catch() to prevent fread error. | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -200,15 +200,19 @@ class libSocket extends Factory\n*/\nprotected function readMsg(string $sock_id): string\n{\n+ try {\nif (false === ($msg = fread($this->clients[$sock_id], 1024))) {\n- fclose(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add try() catch() to prevent fread error. |
323,346 | 10.12.2020 16:42:59 | -28,800 | 839d631af8af9ed5e69735464359def4676ae4fa | Remove useless UDP server block | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -210,7 +210,7 @@ class libSocket extends Factory\n}\n} catch (\\Throwable $throwable) {\nfclose($this->clients[$sock_id]);\n- unset($this->clients[$sock_id], $sock_id, $msg, $throwable);\n+ unset... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove useless UDP server block |
323,346 | 10.12.2020 21:14:54 | -28,800 | 9afb5446899b816e9f436f1c6096a3e69c4e7ee4 | Add proc restart logic on child proc exit on accident | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -48,6 +48,7 @@ class libMPC extends Factory\npublic int $proc_cnt = 10;\npublic int $buf_size = 4096;\npublic string $php_path = '';\n+ public string $proc_cmd = '';\npublic array $proc_list = [];\npub... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add proc restart logic on child proc exit on accident |
323,346 | 10.12.2020 21:46:12 | -28,800 | e13de93633d2a46a5ac5116bb5659ca3d202833d | Add display_errors param | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Error.php",
"new_path": "Core/Lib/Error.php",
"diff": "@@ -169,8 +169,9 @@ class Error extends Factory\n*\n* @param \\Throwable $throwable\n* @param bool $stop_on_error\n+ * @param bool $display_errors\n*/\n- public function exceptionHandler(\\Throwab... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add display_errors param |
323,346 | 10.12.2020 21:53:18 | -28,800 | 7115413950cba1f1b401eb94ff37cfcb49edab4e | Force not showing errors which disturb MPC pipe results | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -364,7 +364,7 @@ class libMPC extends Factory\n}\n}\n} catch (\\Throwable $throwable) {\n- $this->error->exceptionHandler($throwable, false);\n+ $this->error->exceptionHandler($throwable, false, false)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Force not showing errors which disturb MPC pipe results |
323,346 | 10.12.2020 22:15:03 | -28,800 | c234a7a764be625968a89343f27216bf9e452cf4 | Change close and create method to public control | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -134,11 +134,6 @@ class libMPC extends Factory\n*/\npublic function addJob(string $c, array $data = []): string\n{\n- //Check proc status\n- if (!(proc_get_status($this->proc_list[$this->proc_idx])['ru... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change close and create method to public control |
323,346 | 11.12.2020 13:37:39 | -28,800 | b4e30257efb97221b5e4326fdef9bb97d340cbac | Add onClose caller via MPC and other modifies | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -44,6 +44,18 @@ class libSocket extends Factory\npublic array $clients = [];\npublic string $master_id;\n+\n+ /**\n+ * Registered handler class\n+ *\n+ * Methods:\n+ * onConnect(string sid)\n+ * ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add onClose caller via MPC and other modifies |
323,346 | 11.12.2020 17:12:43 | -28,800 | 48bc73d7d6bdc341bdf11c310e6cbd62c359142c | Add Sec-WebSocket-Protocol process logic in Handshake | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -49,10 +49,11 @@ class libSocket extends Factory\n* Registered handler class\n*\n* Methods:\n- * onConnect(string sid)\n- * onMessage(string msg)\n- * onSend(array data, string to_sid, bool onlin... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add Sec-WebSocket-Protocol process logic in Handshake |
323,346 | 11.12.2020 18:04:02 | -28,800 | c5404f12dd9352992ba7d27d01af2620ad311212 | Fix Sec-WebSocket-Protocol NOT match | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -344,6 +344,7 @@ class libSocket extends Factory\n}\n//Process Sec-WebSocket-Protocol\n+ $proto_head = '';\n$proto_pass = false;\n$proto_name = 'Sec-WebSocket-Protocol';\n$proto_pos = strpos($hea... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix Sec-WebSocket-Protocol NOT match |
323,346 | 11.12.2020 19:34:13 | -28,800 | 35f794b2915169e2ff9ac53d0eb453bddbf0f603 | Fix WebSocket Protocal error (from string to bool) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -354,7 +354,7 @@ class libSocket extends Factory\n$proto_val = substr($header, $proto_pos, strpos($header, \"\\r\\n\", $proto_pos) - $proto_pos);\n$proto_pass = $this->lib_mpc->fetch($this->addMp... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix WebSocket Protocal error (from string to bool) |
323,346 | 11.12.2020 20:10:31 | -28,800 | c884dc6f822d062efff2abd2526af080177e2169 | Set Sec-WebSocket-Protocol to a required param | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -182,7 +182,7 @@ class libSocket extends Factory\n*\n* @return string\n*/\n- protected function genId(): string\n+ public function genId(): string\n{\n$uid = substr(hash('md5', uniqid(microtime()... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Set Sec-WebSocket-Protocol to a required param |
323,346 | 11.12.2020 20:23:45 | -28,800 | 2f002fb833983e37fd5d21afec311b0fd25b3c1e | Close connection when handshake error (connection denied) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -569,6 +569,7 @@ class libSocket extends Factory\ncase 1:\n//Read all client message (json)\nif ('' === ($socket_msg = $this->readMsg($sock_id))) {\n+ unset($socket_msg);\nbreak;\n}\n@@ -577,36 +... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Close connection when handshake error (connection denied) |
323,346 | 11.12.2020 20:54:15 | -28,800 | 47291e35ad62c6f27f18905ef72d83ed4ed50ecf | Pass sid to handler::onHandshake | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -50,7 +50,7 @@ class libSocket extends Factory\n*\n* Methods:\n* onConnect(string sid): array\n- * onHandshake(string proto): bool\n+ * onHandshake(string sid, string proto): bool\n* onMessage(st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Pass sid to handler::onHandshake |
323,346 | 11.12.2020 21:43:44 | -28,800 | fd52bc0e84e43cb2aca67a33dfd280233cd90a39 | Close connection when handshake was rejected | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -353,19 +353,19 @@ class libSocket extends Factory\nreturn '';\n}\n- $proto_line = '';\n$proto_pos += 24;\n$proto_val = substr($header, $proto_pos, strpos($header, \"\\r\\n\", $proto_pos) - $prot... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Close connection when handshake was rejected |
323,346 | 15.12.2020 15:33:17 | -28,800 | a373693a48d671540b0b222c57c2c2617143fcfc | Change stream_select wait time from 60s to 30s | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -515,12 +515,12 @@ class libSocket extends Factory\nwhile (true) {\n$read = $this->clients;\n- if (false === ($changes = stream_select($read, $write, $except, 60))) {\n+ if (false === ($changes =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change stream_select wait time from 60s to 30s |
323,346 | 15.12.2020 20:05:06 | -28,800 | 35a9c34e95576901ece8d4415d6f4cab2b30ec16 | Add exit debug entry | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -346,6 +346,10 @@ class libSocket extends Factory\n}\n$this->lib_mpc->fetch($this->addMpc('onClose', ['sid' => $sock_id]));\n+\n+ //On client exit\n+ $this->debug('Exit: \"' . $sock_id . '\" left... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add exit debug entry |
323,346 | 15.12.2020 22:40:39 | -28,800 | 8edcb0321c0888f2175887b420406ca4839f3fc4 | Debug text modofied | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -222,7 +222,7 @@ class libSocket extends Factory\n}\n//On status changes or time arrived\n- $this->debug($changes . ' changed among ' . count($this->clients) . ' clients.');\n+ $this->debug('Moni... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Debug text modofied |
323,346 | 16.12.2020 09:43:11 | -28,800 | 4eb354d660bb427a5bffb792e93b4ce1b9669df4 | Try to fix losing connection | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -551,7 +551,7 @@ class libSocket extends Factory\nif ($sock_id !== $this->master_id) {\n//Read all client message (binary|string)\nif ('' === ($socket_msg = $this->readMsg($sock_id))) {\n- break;... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Try to fix losing connection |
323,346 | 16.12.2020 11:29:56 | -28,800 | d2e6c664720a0a93aa9b2e66a8edf698a09f30c0 | Handshake logic improved | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -222,7 +222,7 @@ class libSocket extends Factory\n}\n//On status changes or time arrived\n- $this->debug('Monitor: ' . $changes . ' out of ' . count($this->clients) . ' changed.');\n+ $this->debu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Handshake logic improved |
323,346 | 16.12.2020 22:17:19 | -28,800 | 8bb85d86fbac730b42495a1a9e57094e30581114 | Change prepMsg logic and onSend logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -54,7 +54,7 @@ class libSocket extends Factory\n* onConnect(string sid): array\n* onHandshake(string sid, string proto): bool\n* onMessage(string msg): array\n- * onSend(array data, string to_sid... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change prepMsg logic and onSend logic |
323,346 | 17.12.2020 20:06:29 | -28,800 | 92025cf964ba23414a62437ee3f46c0a3ea3bcae | Add debug on receive handshake header | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -659,6 +659,9 @@ class libSocket extends Factory\n//Check handshake\nif (isset($accept_clients[$sock_id])) {\n+ //On received handshake header from client\n+ $this->debug('Handshake: receive \"' ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add debug on receive handshake header |
323,346 | 17.12.2020 21:36:56 | -28,800 | ccce344b4c3c761a39d56e32e24c259c708ad5aa | Make Sec-WebSocket-Protocol optional (can't decrypt under wss) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -69,7 +69,7 @@ class libSocket extends Factory\n*\n* @param string $address\n* @param int $port\n- * @param string $protocol (tcp/udp/ssl/tlsv1.2/tlsv1.3/...)\n+ * @param string $protocol (tcp/ud... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make Sec-WebSocket-Protocol optional (can't decrypt under wss) |
323,346 | 17.12.2020 22:24:43 | -28,800 | f385f5fd7ab2fce3a3de21415f45a82cc6c7681f | Fix wss decryption and other fix | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -167,7 +167,7 @@ class libSocket extends Factory\n'' !== $this->passphrase && stream_context_set_option($context, 'ssl', 'passphrase', $this->passphrase);\nstream_context_set_option($context, 'ss... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix wss decryption and other fix |
323,346 | 18.12.2020 09:44:17 | -28,800 | bbabb43c00b8ed473271a062f8ac61f39a5e490b | Remove unnecessary CLI env check | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -590,10 +590,6 @@ class libQueue extends Factory\n//Detect ENV (only support CLI)\n$this->app = App::new();\n- if (!$this->app->is_cli) {\n- throw new \\Exception('Only in CLI!', E_USER_ERROR);\n- ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary CLI env check |
323,346 | 18.12.2020 09:57:29 | -28,800 | d02713326f2aa7902216e3ee90282f911fbb5b0d | Fix client count on close | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -371,12 +371,12 @@ class libSocket extends Factory\nunset($throwable);\n}\n+ unset($this->clients[$sock_id]);\n$this->lib_mpc->fetch($this->addMpc('onClose', ['sid' => $sock_id]));\n//On client e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix client count on close |
323,346 | 18.12.2020 11:45:58 | -28,800 | 23475b3a5392eba12d6341eb6a78f9fd982692a5 | Add setWatSec function | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -30,6 +30,7 @@ use Core\\OSUnit;\n*/\nclass libSocket extends Factory\n{\n+ public int $wait = -1;\npublic int $port = 2468;\npublic string $addr = '0.0.0.0';\npublic string $type = 'tcp';\n@@ -8... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setWatSec function |
323,346 | 18.12.2020 16:36:51 | -28,800 | 6ac7c6d20121c5b4404a34552e529de1403624f8 | Close connection who sends empty message to avoid unnecessary loop | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -594,6 +594,7 @@ class libSocket extends Factory\nif ($sock_id !== $this->master_id) {\n//Read all client message (binary|string)\nif ('' === ($socket_msg = $this->readMsg($sock_id))) {\n+ $this-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Close connection who sends empty message to avoid unnecessary loop |
323,346 | 22.12.2020 11:35:54 | -28,800 | 0437bce861fcad1600ce7cdddb513262082ae0cb | Add heartbeat related logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -30,8 +30,9 @@ use Core\\OSUnit;\n*/\nclass libSocket extends Factory\n{\n- public int $wait = -1;\n+ public int $wait = 30;\npublic int $port = 2468;\n+ public string $ping = '';\npublic string ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add heartbeat related logic |
323,346 | 22.12.2020 13:21:46 | -28,800 | 4bbe43be9b616b7e13595ecfd49633c0ec9af99b | Fix set ping value type error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -89,15 +89,15 @@ class libSocket extends Factory\n/**\n* Set ping value for heartbeat\n*\n- * @param int $ping_value\n+ * @param string $value\n*\n* @return $this\n*/\n- public function setPingVa... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix set ping value type error |
323,346 | 22.12.2020 13:36:00 | -28,800 | a1063981c4764f2cae9c68ff722b6b2a7fcd8856 | Add heartbeat debug log output | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -445,6 +445,8 @@ class libSocket extends Factory\n} elseif (30 < $duration && '' !== $this->ping) {\n//Send ping message to client\n$this->sendMsg($sock_id, $this->ping);\n+ //On send heartbeat f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add heartbeat debug log output |
323,346 | 22.12.2020 13:51:21 | -28,800 | aa8e680359bcca8997194a3efac3fbf20eaf20fe | Move heartbeat entries to proper places | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -627,10 +627,9 @@ class libSocket extends Factory\nwhile (true) {\n$read = $this->watch($this->clients);\n- //Heartbeat handler\n- $this->heartbeat();\n-\nif (empty($read)) {\n+ //Call heartbeat ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move heartbeat entries to proper places |
323,346 | 22.12.2020 13:54:06 | -28,800 | 26dedf130a416f25a0df0d9c68e1f0db0187bdcf | Change close debug message | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -408,7 +408,7 @@ class libSocket extends Factory\n$this->lib_mpc->fetch($this->addMpc('onClose', ['sid' => $sock_id]));\n//On client exit\n- $this->debug('Exit: \"' . $sock_id . '\" left. Still '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change close debug message |
323,346 | 24.12.2020 16:07:29 | -28,800 | 7188c32d06e957398419ee874b1dc9bc61eb2925 | Support group push | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -314,83 +314,91 @@ class libSocket extends Factory\n*/\npublic function prepMsg(array $msg_tk): array\n{\n- $send_tk = [];\n+ $send_data = [];\nforeach ($msg_tk as $sock_id => $mtk) {\n//Fetch ms... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Support group push |
323,346 | 24.12.2020 16:15:45 | -28,800 | 83e02360ee49915e7845f5d205e54ed6f5f3969d | Debug text modified | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -682,7 +682,7 @@ class libSocket extends Factory\n}\n//On new client connected\n- $this->debug('Assigned: \"' . $accept_id . '\" to new connection.');\n+ $this->debug('Assigned: \"' . $accept_id ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Debug text modified |
323,346 | 05.01.2021 14:55:22 | -28,800 | b0c35216981072a72a9928ce0291cd301640b241 | Using array_merge in appendMsgData | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -179,7 +179,7 @@ class IOUnit extends Factory\n*/\npublic function appendMsgData(string $msg_key, array $msg_data): self\n{\n- $this->src_msg[$msg_key] = &$msg_data;\n+ $this->src_msg[$msg_ke... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using array_merge in appendMsgData |
323,346 | 05.01.2021 17:16:14 | -28,800 | 4b3365b9f557a67e1fba175b2bee1abaf1e28eaf | Add explain function & name changes | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "namespace Ext;\nuse Core\\Factory;\n+use Core\\Lib\\IOUnit;\n/**\n* Class libMySQL\n@@ -33,20 +34,19 @@ class libMySQL extends Factory\n/** @var \\PDO $pdo */\npublic \\PDO $pdo;\n- //Affected rows\n-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add explain function & name changes |
323,346 | 05.01.2021 17:44:29 | -28,800 | 088141d05b65d18a0c6c6afe008671a2953ce706 | Fix libErrno cannot unpack string keys | [
{
"change_type": "MODIFY",
"old_path": "Ext/libErrno.php",
"new_path": "Ext/libErrno.php",
"diff": "@@ -100,7 +100,7 @@ class libErrno extends Factory\n*/\npublic function set(int $code, int $errno = 0, string $message = ''): void\n{\n- IOUnit::new()->setMsgCode(...$this->get($code, $errno, $message... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix libErrno cannot unpack string keys |
323,346 | 05.01.2021 17:54:39 | -28,800 | b9d6219c854b480ad6b351e1279af15083c0b75e | Add default value of 'ALL' for $explain_level | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -43,7 +43,7 @@ class libMySQL extends Factory\n//Runtime data container\npublic array $runtime = [];\n- public int $explain_type = 0; //0: disable; 1: output; 2: save log; 3: both\n+ public int $ex... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add default value of 'ALL' for $explain_level |
323,346 | 05.01.2021 18:08:56 | -28,800 | 8bb5128942a7ff7ea24a5be95adfca117328e175 | Skip record explain result whose type NOT in range | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -700,6 +700,7 @@ class libMySQL extends Factory\n}\n}\n+ if (!empty($explain)) {\n//Build result\n$result = ['sql' => &$sql, 'res' => &$explain];\n@@ -712,6 +713,7 @@ class libMySQL extends Factory... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Skip record explain result whose type NOT in range |
323,346 | 05.01.2021 21:35:38 | -28,800 | 903b2409f8812d9fe47c02300180955c49a545e0 | Improve setExplainMode logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -46,7 +46,7 @@ class libMySQL extends Factory\npublic int $explain_type = 0;\npublic array $explain_keeps = [];\n- const EXPLAIN_LEVEL = ['ALL', 'index', 'range', 'ref', 'eq_ref', 'const', 'system'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve setExplainMode logic |
323,346 | 06.01.2021 10:42:02 | -28,800 | 80fe2b3c62c1975422a76e1d17de23d46fc01795 | libLog::add() now accepts multiple params as log contents | [
{
"change_type": "MODIFY",
"old_path": "Ext/libLog.php",
"new_path": "Ext/libLog.php",
"diff": "@@ -50,15 +50,19 @@ class libLog extends Factory\n/**\n* Add logs\n*\n- * @param $logs\n- *\n* @return $this\n*/\n- public function add($logs): self\n+ public function add(): self\n{\n- $this->log_pool[] ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | libLog::add() now accepts multiple params as log contents |
323,346 | 07.01.2021 09:31:49 | -28,800 | 230083a64ad2aeece6f1ae452f02b4b6882c2d0c | Using normal function "use" instead of magic function "__get" | [
{
"change_type": "MODIFY",
"old_path": "Ext/libConfGet.php",
"new_path": "Ext/libConfGet.php",
"diff": "@@ -79,14 +79,14 @@ class libConfGet extends Factory\n}\n/**\n- * Get conf by name\n+ * Use loaded conf data by section name\n*\n- * @param string $name\n+ * @param string $section\n*\n* @return a... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using normal function "use" instead of magic function "__get" |
323,346 | 07.01.2021 21:43:22 | -28,800 | fe805ba1b0a08f1801825d647c3d7621b3949b49 | Pass sid to all callback functions in socket handler | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -53,11 +53,11 @@ class libSocket extends Factory\n/**\n* Registered handler class\n*\n- * Methods:\n+ * MUST expose methods:\n* onConnect(string sid): array\n* onHandshake(string sid, string prot... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Pass sid to all callback functions in socket handler |
323,346 | 11.01.2021 21:36:41 | -28,800 | 823e5821dd4d2861f7e6a21830c5c1f08006bf47 | Remove opcache_compile_file related logic in autoload for better compatibility | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -48,39 +48,21 @@ define('NS_ROOT', __DIR__);\ndefine('JSON_FORMAT', JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS);\ndefine('JSON_PRETTY', JSON_FORMAT | JSON_PRETTY_PRINT);\n-//Dete... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove opcache_compile_file related logic in autoload for better compatibility |
323,346 | 13.01.2021 17:05:47 | -28,800 | 27ec5058e0756b40af487fedd1bf70697edecbcd | Always response HTTP 500 when error occurs | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Error.php",
"new_path": "Core/Lib/Error.php",
"diff": "@@ -215,9 +215,11 @@ class Error extends Factory\n$display_errors && $app->core_debug && $logger->show($err_lv, $message, $context);\n$logger->$err_lv($message, $context);\n+ //Response HTTP 500\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always response HTTP 500 when error occurs |
323,346 | 14.01.2021 14:17:23 | -28,800 | e846be597e5b1b78dc5ec7faa513653782bde2d0 | Only add quotes when param is string by type on building readable SQL | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -799,7 +799,7 @@ class libMySQL extends Factory\nprotected function buildReadableSql(string $sql, array $params): string\n{\nforeach ($params as &$param) {\n- if (!is_numeric($param)) {\n+ if (is_s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Only add quotes when param is string by type on building readable SQL |
323,346 | 18.01.2021 16:36:02 | -28,800 | fc81400c008759b505308cf09263baaa9c4c504a | Fix HTTP method changes to POST when already set to PUT, DELETE, etc... | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -307,8 +307,11 @@ class libHttp extends Factory\n$this->content_type = self::CONTENT_TYPE_FORM_DATA;\n}\n- //Set method\n- if (!empty($this->data)) {\n+ //Make request method uppercase\n+ $this->meth... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix HTTP method changes to POST when already set to PUT, DELETE, etc... |
323,346 | 18.01.2021 17:03:13 | -28,800 | 91489bca748e11e8577112ea34dd62b6a4dce3e0 | libHttp now supports custom cURL options | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -40,6 +40,7 @@ class libHttp extends Factory\npublic array $data = [];\npublic array $file = [];\npublic array $header = [];\n+ public array $options = [];\npublic string $url = '';\npublic string $e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | libHttp now supports custom cURL options |
323,346 | 19.01.2021 17:19:44 | -28,800 | de105c0882ab5d8c446d102eaff42ccbb3d81125 | Remove unnecessary default param values | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -174,7 +174,7 @@ class libHttp extends Factory\n*\n* @return $this\n*/\n- public function setHttpMethod(string $http_method = 'POST'): self\n+ public function setHttpMethod(string $http_method): self... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary default param values |
323,346 | 20.01.2021 18:00:44 | -28,800 | feff20e2a54e254a7cf87d02dfad4ea08e2488ed | Fix cURL option key reset from caling array_merge | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -400,11 +400,8 @@ class libHttp extends Factory\n$opt[CURLOPT_NOBODY] = !$with_body;\n$opt[CURLOPT_HEADER] = &$with_header;\n- //Merge user defined cURL options\n- $opt = array_merge($opt, $this->opt... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix cURL option key reset from caling array_merge |
323,346 | 21.01.2021 23:02:03 | -28,800 | 29e6c628e6123e73314e6e18e0c9777d8e4ce6bc | Rewrite libHttp | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -36,96 +36,85 @@ class libHttp extends Factory\nconst CONTENT_TYPE_FORM_DATA = 'multipart/form-data';\nconst CONTENT_TYPE_URL_ENCODED = 'application/x-www-form-urlencoded';\n- //Job info\n- public ar... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rewrite libHttp |
323,346 | 22.01.2021 09:28:53 | -28,800 | 50a1008e29c68b930b092cd8d5183d2ead05c743 | Always lowercase HTTP responsed keys | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -655,12 +655,12 @@ class libHttp extends Factory\ncontinue;\n}\n- $key = substr($value, 0, $pos);\n+ $key = strtolower(substr($value, 0, $pos));\n$val = substr($value, $pos + 2);\n$this->http_header[... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always lowercase HTTP responsed keys |
323,346 | 22.01.2021 20:08:29 | -28,800 | adef450767bf427dc1852b9c72b2dbd3ab866814 | Always request with header | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -576,7 +576,7 @@ class libHttp extends Factory\n$curl_opt[CURLOPT_CUSTOMREQUEST] = &$runtime_data['http_method'];\n$curl_opt[CURLOPT_POST] = ('POST' === $runtime_data['http_method']);\n$curl_opt[CURL... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always request with header |
323,346 | 28.01.2021 13:29:27 | -28,800 | eee220a4c0556373b5093a7a2e2fea7c0f853ea1 | Parse XML request data to array rather than to object | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -502,7 +502,7 @@ class IOUnit extends Factory\n//Decode data in XML\nlibxml_use_internal_errors(true);\n$xml = simplexml_load_string($input, 'SimpleXMLElement', LIBXML_NOCDATA);\n- $data = fa... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Parse XML request data to array rather than to object |
323,346 | 02.02.2021 13:20:22 | -28,800 | bdbcaac02279c858ead42568ec2331ae68968970 | Only monitoring online status for individual sid in socket | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -329,7 +329,7 @@ class libSocket extends Factory\n'stk' => $this->addMpc('onSend', [\n'sid' => $sock_id,\n'data' => $msg_data,\n- 'online' => isset($msg_data['to_sid']) ? isset($this->clients[$ms... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Only monitoring online status for individual sid in socket |
323,346 | 02.02.2021 21:03:19 | -28,800 | 44061cfe4981b685302d71343562162f057f1569 | Checkout all receivers on sending | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -344,14 +344,18 @@ class libSocket extends Factory\ncontinue;\n}\n- //Drop message without receiver\n- if (!isset($msg_data['to_sid'])) {\n+ //Remove invalid \"to_sid\" data\n+ $msg_data['to_sid'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Checkout all receivers on sending |
323,346 | 06.02.2021 13:22:10 | -28,800 | 148d5636bca6742d16c7367fea97beebe2d47a4e | Try to fix empty string caused SQL error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -886,10 +886,6 @@ class libMySQL extends Factory\n//Data\nif (!is_array($data = current($value))) {\n- if ('' === $data) {\n- continue;\n- }\n-\nif ('join' !== $this->runtime_data['stage']) {\n$con... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Try to fix empty string caused SQL error |
323,346 | 08.02.2021 21:51:47 | -28,800 | ee88a8db57401823d35575b584508ab8a41e2985 | Fix SQL error when passing empty array params to "where", "having", "and", "or" | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -368,7 +368,7 @@ class libMySQL extends Factory\n$this->runtime_data['where'] ??= [];\n$this->runtime_data['stage'] = 'where';\n- if (empty($where)) {\n+ if (empty($where = array_filter($where))) {... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix SQL error when passing empty array params to "where", "having", "and", "or" |
323,346 | 20.02.2021 14:53:06 | -28,800 | 9d4fa5fd91cdedaf3ab4d2f5e460c9a5fcfc71bf | Add job_mtk pointer reset logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -138,7 +138,7 @@ class libMPC extends Factory\n$job_count = ++$this->job_count[$this->proc_idx];\n//Generate increased job ticket\n- $ticket = base_convert($this->job_mtk[$this->proc_idx]++, 10, 36);\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add job_mtk pointer reset logic |
323,346 | 21.02.2021 16:58:01 | -28,800 | 1c56a55ebdf8db8d0ea255297ef6752649918542 | Change -t to -r in CLI mode | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -222,13 +222,13 @@ class IOUnit extends Factory\n*\n* c: CMD (required)\n* d: Data package (required)\n- * t: Return type (json/xml/plain, default: none, optional)\n+ * r: Return type (json/x... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change -t to -r in CLI mode |
323,346 | 23.02.2021 17:00:03 | -28,800 | 301b0c8af382451b1fa82f767608632867d46a4d | Always call user registered handler for IOUnit process (IO data processing, pre and post) | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -30,9 +30,9 @@ use Core\\Factory;\n*/\nclass IOUnit extends Factory\n{\n- public array $cgi_reader;\n- public array $cli_reader;\n- public array $output_handler;\n+ public array $cgi_handler ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always call user registered handler for IOUnit process (IO data processing, pre and post) |
323,346 | 23.02.2021 22:59:27 | -28,800 | 41cd4b401d9a256d0462027de98931e34a91b443 | Improve NS main execute logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -35,8 +35,8 @@ class Execute extends Factory\npublic App $app;\npublic IOUnit $io_unit;\n- public array $cmd_cgi;\n- public array $cmd_cli;\n+ public array $cmd_cgi = [];\n+ public array $cmd_cli =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve NS main execute logic |
323,346 | 23.02.2021 23:28:47 | -28,800 | a4ac3588726094333cc0ebea36bc1375ad315620 | Code cleanup & minor changes | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -85,7 +85,7 @@ class Execute extends Factory\n$input_name = $cmd_pair[2] ?? implode('/', $cmd_pair);\n//Run prepend hooks\n- if (!$hook->passPrepend($this, $reflect, $input_name)) {\n+ if (!$hook->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Code cleanup & minor changes |
323,346 | 23.02.2021 23:49:07 | -28,800 | 32bc5db9b462e9540fb4d06979718cfe1f0109b3 | Improve Hook::checkPass() logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -84,8 +84,8 @@ class Execute extends Factory\n//Get CMD input name\n$input_name = $cmd_pair[2] ?? implode('/', $cmd_pair);\n- //Run prepend hooks\n- if (!$hook->passBeforeCmd($this, $reflect, $inpu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve Hook::checkPass() logic |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.