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 | 23.02.2021 23:56:01 | -28,800 | e9fbaa1c501c379912dde2ce08a35cf7ffba59c4 | Fix "App" not found when exceptions occured on Hook calling | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Hook.php",
"new_path": "Core/Lib/Hook.php",
"diff": "@@ -140,7 +140,7 @@ class Hook extends Factory\nunset($execute, $reflect, $hook_fn);\nreturn (empty($result) || true === current($result));\n} catch (\\Throwable $throwable) {\n- $this->app->showDeb... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix "App" not found when exceptions occured on Hook calling |
323,346 | 24.02.2021 16:37:43 | -28,800 | 67b37c5b287c5e67cdb3f10fe67e92fe2bf2d297 | Fix Queue parse cmd error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -830,30 +830,27 @@ class libQueue extends Factory\n}\ntry {\n- //Parse CMD\n- $cmd_group = $router->parse($input_data['c'], $router->cgi_stack);\n-\n//Call CGI\n- if (!empty($cmd_group['cgi'])) {\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix Queue parse cmd error |
323,346 | 24.02.2021 16:42:59 | -28,800 | 1b79fdc228d29840dd1092491ff54efb1a2f4303 | Fix other related errors caused by cmd parser | [
{
"change_type": "MODIFY",
"old_path": "Ext/libDoc.php",
"new_path": "Ext/libDoc.php",
"diff": "@@ -134,16 +134,16 @@ class libDoc extends Factory\n*/\npublic function getComment(string $c): string\n{\n- $cmd_group = Router::new()->parse($c);\n+ $router = Router::new();\n- if (empty($cmd_group['cgi'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix other related errors caused by cmd parser |
323,346 | 24.02.2021 18:58:18 | -28,800 | a15ab3efa76f0a8d0c1a862d63036ee7559ccba3 | Add "Queue::delLog()" function to del a log from success or failed list | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -249,6 +249,12 @@ class libQueue extends Factory\n*/\npublic function rollback(string $job_json): int\n{\n+ //Decode job data\n+ if (is_null($job_data = json_decode($job_json, true))) {\n+ unset($j... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add "Queue::delLog()" function to del a log from success or failed list |
323,346 | 26.02.2021 16:48:02 | -28,800 | a9065018dea55c2418b14c4bd8fc3d4ba84c066d | Change environment detection logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -50,31 +50,6 @@ class App extends Factory\n*/\npublic function __construct()\n{\n- //Get script file path\n- $this->script_path = strtr($_SERVER['SCRIPT_FILENAME'], '\\\\/', DIRECTORY_SEPARATOR . D... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change environment detection logic |
323,346 | 26.02.2021 17:11:32 | -28,800 | 30eac7d7105128ea777093959fc332e2a341b642 | Fix App::setEnv error | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -103,26 +103,30 @@ class App extends Factory\n$parent_path = dirname($this->entry_path);\n//Looking for api directory to get correct root path\n- $this->root_path = is_dir($parent_path . DIRECTORY_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix App::setEnv error |
323,346 | 26.02.2021 17:23:46 | -28,800 | edaff2cff30345d3c4c0fbfeb0b8b996d0633918 | Update libCoreApi to fix new App logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCoreApi.php",
"new_path": "Ext/libCoreApi.php",
"diff": "@@ -45,7 +45,13 @@ class libCoreApi extends Factory\n*/\npublic function autoload(string $pathname): self\n{\n- $path = App::new()->root_path . DIRECTORY_SEPARATOR . $pathname;\n+ $app = App::new(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Update libCoreApi to fix new App logic |
323,346 | 26.02.2021 20:10:30 | -28,800 | af9d150b4b52585515bce52856f5503cec359d5b | Slightly change App::setEnv() logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -33,6 +33,7 @@ class App extends Factory\npublic string $log_path = '';\npublic string $root_path = '';\npublic string $entry_path = '';\n+ public string $parent_path = '';\npublic string $script_p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Slightly change App::setEnv() logic |
323,346 | 26.02.2021 20:21:19 | -28,800 | 2d48de588b55422b9ebe6b6be58fb67bafdce9e1 | Remove useless default include path | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -37,8 +37,6 @@ class App extends Factory\npublic string $script_path = '';\npublic string $api_path = 'api';\n- public string $inc_path = 'inc';\n-\npublic string $client_ip = '0.0.0.0';\npublic st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove useless default include path |
323,346 | 26.02.2021 22:03:28 | -28,800 | bf32a4e2fdc78b091375a61273ef56de8f7a7bab | Rewrite App initial logic for better controlling | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -42,8 +42,12 @@ class App extends Factory\npublic bool $is_cli = false;\npublic bool $is_tls = false;\n+ public bool $is_ready = false;\npublic bool $core_debug = false;\n+ public array $include_li... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rewrite App initial logic for better controlling |
323,346 | 26.02.2021 22:23:08 | -28,800 | 15ef846f286ebc06bcf7dd4564606bc325097962 | Make out two ways to add custom routers to parse CGI and CLI command | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Router.php",
"new_path": "Core/Lib/Router.php",
"diff": "@@ -49,19 +49,34 @@ class Router extends Factory\n}\n/**\n- * Add custom router\n+ * Add custom router to CGI stack\n*\n* @param object $router_object\n* @param string $router_method\n- * @param... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make out two ways to add custom routers to parse CGI and CLI command |
323,346 | 27.02.2021 16:06:28 | -28,800 | 2851e6acf070eb613800dca4fcded4a5b8293011 | Fix error when calling router parser in libMPC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -338,7 +338,7 @@ class libMPC extends Factory\ntry {\n//Call CGI\n- if (!empty($cmd_list = $this->router->parse($input_data['c'], $router->cgi_stack))) {\n+ if (!empty($cmd_list = $this->router->parse(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix error when calling router parser in libMPC |
323,346 | 27.02.2021 16:43:48 | -28,800 | d22a353c8a7fb53ea79be891fec7331d70e020b9 | Fix variable name error in libMPC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -338,7 +338,7 @@ class libMPC extends Factory\ntry {\n//Call CGI\n- if (!empty($cmd_list = $this->router->parse($input_data['c'], $this->router->cgi_stack))) {\n+ if (!empty($cmd_list = $this->router->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix variable name error in libMPC |
323,346 | 27.02.2021 21:47:01 | -28,800 | 03915cbfcad7d89f56cc4bfed604a6a565c2038c | Improve Router::parse() logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -24,6 +24,7 @@ namespace Core;\nuse Core\\Lib\\App;\nuse Core\\Lib\\Hook;\nuse Core\\Lib\\IOUnit;\n+use Core\\Lib\\Router;\n/**\n* Class Execute\n@@ -48,18 +49,18 @@ class Execute extends Factory\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve Router::parse() logic |
323,346 | 05.03.2021 15:35:25 | -28,800 | e36aa58d8fd58e996645edabf7008252c185e341 | Add in progress argument controlling method and other improvement | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -35,9 +35,11 @@ class Execute extends Factory\n{\npublic App $app;\npublic IOUnit $io_unit;\n+ public Reflect $reflect;\npublic array $cgi_cmd = [];\npublic array $cli_cmd = [];\n+ public array $ar... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add in progress argument controlling method and other improvement |
323,346 | 05.03.2021 16:24:20 | -28,800 | d8642f06a04b17e3d131c99d0d87cb4784560fd3 | Let Hook lib listen to full cmd path rather than to input c | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -166,17 +166,17 @@ class Execute extends Factory\n//Extract CMD contents\n[$cmd_class, $cmd_method] = $cmd_pair;\n- //Get CMD input name\n- $input_name = $cmd_pair[2] ?? implode('/', $cmd_pair);\n+... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Let Hook lib listen to full cmd path rather than to input c |
323,346 | 05.03.2021 17:22:09 | -28,800 | 5fbe7bfe8614d345481dd19b51a35cb5d7bc7616 | Add auto fill function for input_c in Hook lib, revert the order of before stack | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Hook.php",
"new_path": "Core/Lib/Hook.php",
"diff": "@@ -31,9 +31,19 @@ use Core\\Factory;\n*/\nclass Hook extends Factory\n{\n+ public App $app;\n+\npublic array $before = [];\npublic array $after = [];\n+ /**\n+ * Hook constructor.\n+ */\n+ public f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add auto fill function for input_c in Hook lib, revert the order of before stack |
323,346 | 06.03.2021 10:28:03 | -28,800 | eedd1c15e6050d7ffb55533ab0ecde91a9265bb3 | Improve method argument fill/fetch logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -52,7 +52,7 @@ class Execute extends Factory\n}\n/**\n- * Add matched args for a method\n+ * Add args for a method\n*\n* @param string $class\n* @param string $method\n@@ -69,49 +69,36 @@ class Exe... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve method argument fill/fetch logic |
323,346 | 07.03.2021 21:30:59 | -28,800 | e6608bd1c0e137c35ee66a5a291164f79667796f | Add execution pool controlling method to libCoreApi | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCoreApi.php",
"new_path": "Ext/libCoreApi.php",
"diff": "namespace Ext;\n+use Core\\Execute;\nuse Core\\Factory;\nuse Core\\Lib\\App;\nuse Core\\Lib\\CORS;\n@@ -428,4 +429,21 @@ class libCoreApi extends Factory\nunset($input_c, $hook_class, $hook_method... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add execution pool controlling method to libCoreApi |
323,346 | 10.03.2021 20:10:53 | -28,800 | 7a95a3410b884663801d995903938f5160275cc0 | Remove CURLOPT_POST in libHttp as it brings HTTP 400 under linux when the content body is empty. | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -454,6 +454,7 @@ class libHttp extends Factory\n$url_unit['path'] = '/';\n}\n+ //Build query string\n$url_unit['query'] = isset($url_unit['query']) ? '?' . $url_unit['query'] : '';\nif (!isset($url_u... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove CURLOPT_POST in libHttp as it brings HTTP 400 under linux when the content body is empty. |
323,346 | 11.03.2021 11:11:45 | -28,800 | 73d7ca7b381f2122d5cfda0cfd4eab5a9e6d3687 | Avoid cmd mismatch when using the same word in the start position | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Router.php",
"new_path": "Core/Lib/Router.php",
"diff": "@@ -156,8 +156,8 @@ class Router extends Factory\n//Validate & redirect CMD\n$cmd_val = !$this->app->is_cli\n- ? (0 !== strpos($cmd, $this->app->api_path) ? $this->app->api_path . '/' . ltrim($c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Avoid cmd mismatch when using the same word in the start position |
323,346 | 11.03.2021 11:13:07 | -28,800 | 5e16c9f833ebb460ea82baab566df8b13432f310 | Fix cmd mismatch in Hook lib | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Hook.php",
"new_path": "Core/Lib/Hook.php",
"diff": "@@ -111,7 +111,7 @@ class Hook extends Factory\n*/\nprivate function getPath(string $input_c): string\n{\n- return '/' !== $input_c[0] && 0 !== strpos($input_c, $this->app->api_path)\n+ return '/' !... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix cmd mismatch in Hook lib |
323,346 | 12.03.2021 17:13:27 | -28,800 | b3a6dfbb3c6b5a2b68e31d48f8c0d5e568b90859 | Change initial behavior | [
{
"change_type": "MODIFY",
"old_path": "Ext/libConfGet.php",
"new_path": "Ext/libConfGet.php",
"diff": "@@ -35,26 +35,23 @@ class libConfGet extends Factory\n/**\n* libConfGet constructor.\n- *\n- * @param string $pathname\n*/\n- public function __construct(string $pathname)\n+ public function __con... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change initial behavior |
323,346 | 12.03.2021 17:36:22 | -28,800 | 65eaf6490ca373d598376a487412a3fcd2d46631 | Update libLang initial logic with libConfGet and libErrno | [
{
"change_type": "MODIFY",
"old_path": "Ext/libLang.php",
"new_path": "Ext/libLang.php",
"diff": "@@ -26,7 +26,7 @@ use Core\\Lib\\IOUnit;\n/**\n* Class libLang\n- * Language file should be located in \"ROOT/$pathname/$lang/LC_MESSAGES/filename.mo\"\n+ * Language file should be located in \"root_pat... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Update libLang initial logic with libConfGet and libErrno |
323,346 | 12.03.2021 18:09:20 | -28,800 | 5e8f8ac2af044907a2bf4214892585fd0af4be7e | Add parseConf method to App, replace load logic in libConfGet and libErrno | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -247,6 +247,36 @@ class App extends Factory\nreturn $this;\n}\n+ /**\n+ * Parse conf file in JSON/INI\n+ *\n+ * @param string $file_path\n+ * @param bool $sections\n+ *\n+ * @return array\n+ * @thr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add parseConf method to App, replace load logic in libConfGet and libErrno |
323,346 | 12.03.2021 18:13:02 | -28,800 | c97e7e9126267dac3ab89e87341ddcf3009fb959 | Fix ini parser process section param error in libConfGet and libErrno | [
{
"change_type": "MODIFY",
"old_path": "Ext/libConfGet.php",
"new_path": "Ext/libConfGet.php",
"diff": "@@ -56,7 +56,7 @@ class libConfGet extends Factory\nthrow new \\Exception('\"' . $file_path . '\" NOT found!');\n}\n- $this->conf_pool = array_replace_recursive($this->conf_pool, $this->app->parse... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix ini parser process section param error in libConfGet and libErrno |
323,346 | 14.03.2021 10:07:32 | -28,800 | ef74f45e12d633cc0123b8430c820ea43c191db9 | Improve conf parse logic according to file extension | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -258,22 +258,38 @@ class App extends Factory\n*/\npublic function parseConf(string $file_path, bool $sections): array\n{\n- $config = file_get_contents($file_path);\n+ $content = file_get_contents(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve conf parse logic according to file extension |
323,346 | 14.03.2021 21:03:41 | -28,800 | 2f429b3acd10f6e74be03048e2f281e1947ab735 | Improve parseConf logic | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -251,46 +251,40 @@ class App extends Factory\n* Parse conf file in JSON/INI\n*\n* @param string $file_path\n- * @param bool $sections\n+ * @param bool $ini_secs\n*\n* @return array\n* @throws \\Exc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve parseConf logic |
323,346 | 14.03.2021 21:42:54 | -28,800 | 77c5058173d52c4ea1ea7258c3340c988df59605 | Add both parent_path and entry_path as autoload paths when App class initialized | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -65,7 +65,18 @@ class App extends Factory\n$this->entry_path = dirname($this->script_path);\n$this->parent_path = dirname($this->entry_path);\n- //Skip in CLI mode\n+ //Autoload parent path and ent... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add both parent_path and entry_path as autoload paths when App class initialized |
323,346 | 14.03.2021 21:51:37 | -28,800 | a6d47a75d0260fd99416548d8b5182a9a85f6f78 | Initial App before NS start | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -65,7 +65,7 @@ class App extends Factory\n$this->entry_path = dirname($this->script_path);\n$this->parent_path = dirname($this->entry_path);\n- //Autoload parent path and entry path\n+ //Autoload b... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Initial App before NS start |
323,346 | 14.03.2021 23:40:06 | -28,800 | 0af781c6c7bbd1d540b808b70685dd8730b63360 | Fix root_path to the parent path of entry script, App logic improved. | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -32,8 +32,6 @@ class App extends Factory\n{\npublic string $log_path = '';\npublic string $root_path = '';\n- public string $entry_path = '';\n- public string $parent_path = '';\npublic string $scr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix root_path to the parent path of entry script, App logic improved. |
323,346 | 15.03.2021 09:49:29 | -28,800 | eb96d4ee4f9c23147d8e321202ce369aafc55ad5 | Make App::setEnv private, code cleanup. | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -76,46 +76,10 @@ class App extends Factory\nchmod($this->log_path, 0777);\n}\n- unset($root_path);\n- }\n+ //Set App environment\n+ $this->setEnv();\n- /**\n- * Set App environment\n- *\n- * @retur... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make App::setEnv private, code cleanup. |
323,346 | 16.03.2021 12:39:56 | -28,800 | 279d696f859f23a46b864c2307afa7d15ef6d6e2 | Move header and cookie data to different container in src_input | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -192,12 +192,12 @@ class IOUnit extends Factory\n//Merge header data\nif (!empty($this->header_keys)) {\n- $this->src_input += $this->readHeader();\n+ $this->src_input['HttpHeader'] = $this->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move header and cookie data to different container in src_input |
323,346 | 17.03.2021 16:03:44 | -28,800 | d4f710431a361c416efa8ba3a37f8102f6807509 | Always remove values from body which are set in header and cookie, revert keeping all data in src_input | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -192,12 +192,14 @@ class IOUnit extends Factory\n//Merge header data\nif (!empty($this->header_keys)) {\n- $this->src_input['HttpHeader'] = $this->readHeader();\n+ $this->src_input = array_di... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always remove values from body which are set in header and cookie, revert keeping all data in src_input |
323,346 | 27.03.2021 18:07:13 | -28,800 | e8de4f8ae0fc448b928c56564f0579b049773cae | Fix lost error log issue when core_debug mode is set to false | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -213,10 +213,7 @@ class App extends Factory\n*/\npublic function showDebug(\\Throwable $throwable, bool $show_on_cli = false): void\n{\n- if ($this->core_debug && ($show_on_cli ? true : !$this->is_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix lost error log issue when core_debug mode is set to false |
323,346 | 07.04.2021 22:16:34 | -28,800 | c73abc231a5a06acb42cdaffee4c5687ce4d8ac2 | Add close status debug message points | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -297,6 +297,7 @@ class libSocket extends Factory\n$msg .= $buff;\n}\n} catch (\\Throwable $throwable) {\n+ $this->debug('Close: exception caught [' . $throwable->getMessage() . '] from \"' . $soc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add close status debug message points |
323,346 | 09.04.2021 22:00:44 | -28,800 | ef92e5b9965d56a152d369173af7063bf38e9d8e | Remove raw prefix from params in buildReadableSql function | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -774,6 +774,7 @@ class libMySQL extends Factory\n{\nforeach ($params as &$param) {\nif (is_string($param)) {\n+ $this->isRaw($param);\n$param = '\"' . addslashes($param) . '\"';\n}\n}\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove raw prefix from params in buildReadableSql function |
323,346 | 10.04.2021 14:15:54 | -28,800 | 35c63e6ac79d1e26ba55df276e5fa9a1a3c80de4 | Using const instead of define | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -39,14 +39,14 @@ if (version_compare(PHP_VERSION, '7.4.0', '<')) {\n}\n//Define NervSys version\n-define('NS_VER', '8.0.1');\n+const NS_VER = '8.0.1';\n//Define SYSTEM ROOT path\n-define('NS_ROOT', __DIR__);\n+const N... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using const instead of define |
323,346 | 19.04.2021 20:32:53 | -28,800 | 4670032803c7cd14b260e007e97ff990070defaa | Remove space in Content-Type for better compatibility | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -31,10 +31,10 @@ use Core\\Lib\\IOUnit;\nclass libHttp extends Factory\n{\n//Pre-defined content types\n- const CONTENT_TYPE_XML = 'application/xml; charset=UTF-8';\n- const CONTENT_TYPE_JSON = 'appl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove space in Content-Type for better compatibility |
323,346 | 19.04.2021 20:35:09 | -28,800 | 6d0274bd5d984ac359801c06045b51c7fc66d957 | Response HTTP 204 to CORS OPTION request | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/CORS.php",
"new_path": "Core/Lib/CORS.php",
"diff": "@@ -79,9 +79,9 @@ class CORS extends Factory\nheader('Access-Control-Allow-Headers: ' . $allow_headers);\nheader('Access-Control-Allow-Credentials: true');\n- //Exit on OPTION request\n+ //Response ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Response HTTP 204 to CORS OPTION request |
323,346 | 28.04.2021 13:16:54 | -28,800 | 5903f1512e69b69ba671f739120276159cfeea61 | Add "NOT LIKE" in where condition | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -869,7 +869,7 @@ class libMySQL extends Factory\nif (2 === count($value)) {\n$item = strtoupper(array_shift($value));\n- if (!in_array($item, ['=', '<', '>', '<=', '>=', '<>', '!=', 'LIKE', 'IN', '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add "NOT LIKE" in where condition |
323,346 | 10.05.2021 16:47:46 | -28,800 | 50544db1ab9d01905b705affe43783f9ad62bab0 | Fix $this->app NOT initialized | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -89,6 +89,15 @@ class libQueue extends Factory\n//Queue unit handler\nprivate array $unit_handler = [];\n+ /**\n+ * libQueue constructor.\n+ */\n+ public function __construct()\n+ {\n+ //Init App\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix $this->app NOT initialized |
323,346 | 10.05.2021 17:47:25 | -28,800 | 627925e26ca4afa71f488a135bcc89165f075157 | Fix ws handshake logic on wss | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -44,6 +44,8 @@ class libSockOnRedis extends libSocket\npublic string $hash_proc_ol = 'socket:proc';\npublic string $list_msg_key = 'socket:msg:';\n+ public array $ws_handshake = [];\n+\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix ws handshake logic on wss |
323,346 | 10.05.2021 17:56:00 | -28,800 | fcc489f6a3c0b67d7a9351b1798b2999390270dc | Fix read order | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -373,11 +373,6 @@ class libSockOnRedis extends libSocket\n{\nforeach ($clients as $sock_id => $client) {\nif ($sock_id !== $this->master_id) {\n- //Read\n- if ('' === ($socket_msg = $th... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix read order |
323,346 | 10.05.2021 19:19:25 | -28,800 | 6a77b99636790e3826b1cfdbd6776a0d7ab629c9 | Improve readClients logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -372,24 +372,49 @@ class libSockOnRedis extends libSocket\npublic function readClients(array $clients): void\n{\nforeach ($clients as $sock_id => $client) {\n- if ($sock_id !== $this->m... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve readClients logic |
323,346 | 11.05.2021 13:43:36 | -28,800 | 5c853706adebd7fe4dadc87adc93100ab6a0f8bc | Change master socket from client list to master list | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -228,7 +228,7 @@ class libSocket extends Factory\npublic function accept(): string\n{\ntry {\n- if (false === ($accept = stream_socket_accept($this->socket_clients[$this->master_id]))) {\n+ if (f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change master socket from client list to master list |
323,346 | 11.05.2021 14:43:53 | -28,800 | 80374137862224a51b844a474bdfeaa5cfbecde1 | Slightly modified socket log | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -178,9 +178,6 @@ class libSockOnRedis extends libSocket\n//Push messages\n$this->pushMsg();\n-\n- //Call heartbeat handler\n- $this->heartbeat();\n}\n}\n@@ -383,7 +380,6 @@ class libSoc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Slightly modified socket log |
323,346 | 11.05.2021 15:31:26 | -28,800 | fbd91160435d3fc7c2daa29f01239a0ec675cfe8 | Add timeout param to master socket | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -29,7 +29,9 @@ use Core\\Factory;\n*/\nclass libSocket extends Factory\n{\n+ public int $timeout = 3;\npublic int $watch_sec = 5;\n+\npublic string $sock_proto = 'tcp';\npublic string $sock_addr ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add timeout param to master socket |
323,346 | 11.05.2021 15:50:03 | -28,800 | b151650b45fdae24ddd624ab7f79de7fa1b91a7e | Add heartbeat checking after reading | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -176,6 +176,9 @@ class libSockOnRedis extends libSocket\n//Read clients\n$this->readClients($read);\n+ //Call heartbeat handler\n+ $this->heartbeat();\n+\n//Push messages\n$this->pushMs... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add heartbeat checking after reading |
323,346 | 11.05.2021 16:37:44 | -28,800 | ec01256b5797011b22ca0e99dcdbf9e311a7afb6 | Using timeout value for all connections | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSocket.php",
"new_path": "Ext/libSocket.php",
"diff": "@@ -257,7 +257,7 @@ class libSocket extends Factory\n$accept_id = $this->genId();\n- stream_set_timeout($accept, 3);\n+ stream_set_timeout($accept, $this->timeout);\nstream_set_blocking($accept, fal... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using timeout value for all connections |
323,346 | 12.05.2021 16:49:16 | -28,800 | b8dd8f5370d54dfc7884493ef360ecfa6771bd63 | Move socket job from MPC to Queue temporarily | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "namespace Ext;\nuse Core\\Lib\\App;\n-use Core\\OSUnit;\n/**\n* Class libSockOnRedis\n@@ -32,7 +31,7 @@ class libSockOnRedis extends libSocket\n{\npublic App $app;\npublic \\Redis $redis;\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move socket job from MPC to Queue temporarily |
323,346 | 12.05.2021 16:54:48 | -28,800 | adf41166a02d5d45ff777fe10f580bfe62714700 | Add bindQueue method | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -90,6 +90,21 @@ class libSockOnRedis extends libSocket\nreturn $this;\n}\n+ /**\n+ * Bind Queue instance\n+ *\n+ * @param libQueue $queue\n+ *\n+ * @return $this\n+ */\n+ public functio... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add bindQueue method |
323,346 | 14.05.2021 14:52:11 | -28,800 | 77734c0d44a5a1459b5eb020df4729e7d71f80f5 | Remove unnecessary continue loop | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -174,12 +174,6 @@ class libSockOnRedis extends libSocket\n//Watch all connections\n$read = $this->watch($this->socket_clients);\n- if (empty($read)) {\n- //Call heartbeat handler\n- $th... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary continue loop |
323,346 | 15.05.2021 17:25:17 | -28,800 | 7308c94da39a18cdb496da5766cb2bb13735e420 | Methods rename | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -131,6 +131,21 @@ class libQueue extends Factory\nreturn $object;\n}\n+ /**\n+ * Set the maximum number of success logs\n+ *\n+ * @param int $number\n+ *\n+ * @return $this\n+ */\n+ public function... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Methods rename |
323,346 | 17.05.2021 17:21:51 | -28,800 | 28b26dfb473ad9460e2f69b2ed0d82717469d7f1 | Improve getCmd logic, code cleanup | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Hook.php",
"new_path": "Core/Lib/Hook.php",
"diff": "@@ -57,7 +57,7 @@ class Hook extends Factory\n*/\npublic function addBefore(string $input_c, string $hook_class, string $hook_method): self\n{\n- $this->before[$this->router->getPathCmd($input_c)][]... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve getCmd logic, code cleanup |
323,346 | 17.05.2021 17:56:44 | -28,800 | 548418fbff7e651482bb4e700db01cfa1eb76b2d | Keep full cmd path | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -154,7 +154,7 @@ class Execute extends Factory\n[$cmd_class, $cmd_method] = $cmd_pair;\n//Get target CMD path\n- $cmd_path = strtr(trim($cmd_class, '\\\\'), '\\\\', '/') . '/' . $cmd_method;\n+ $cm... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Keep full cmd path |
323,346 | 17.05.2021 21:18:22 | -28,800 | 0054ea9e25fc394096eec6d011be7d476e3b1836 | Improve hook logic for full path matching | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Hook.php",
"new_path": "Core/Lib/Hook.php",
"diff": "@@ -81,7 +81,7 @@ class Hook extends Factory\n}\n/**\n- * Check hook fn pass status\n+ * Check hook pass status\n*\n* @param Execute $execute\n* @param string $input_c\n@@ -91,10 +91,10 @@ class Hoo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve hook logic for full path matching |
323,346 | 17.05.2021 23:56:11 | -28,800 | 044137429d7af8e656fcd8dbeb814de6b1c32179 | Rewrite libMPC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -43,17 +43,14 @@ class libMPC extends Factory\nprivate OSUnit $os_unit;\npublic int $proc_idx = 0;\n- public int $proc_cnt = 10;\n- public int $buf_size = 2048;\n+ public int $max_fork = 10;\n+ public ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rewrite libMPC |
323,346 | 18.05.2021 23:44:23 | -28,800 | 39d6e17f67ad45a2b96ca0fdd0052c67e2d4d197 | Add retry logic, cleanup | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -143,10 +143,11 @@ class libMPC extends Factory\n*\n* @param string $cmd\n* @param array $data\n+ * @param int $retry\n*\n* @return int\n*/\n- public function add(string $cmd, array $data = []): int\n+... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add retry logic, cleanup |
323,346 | 18.05.2021 23:53:49 | -28,800 | 9f6401235cf100019d6ddb21fc3d5721a409c9a9 | Add setMpcProp method to control Mpc start status | [
{
"change_type": "MODIFY",
"old_path": "Ext/libSockOnRedis.php",
"new_path": "Ext/libSockOnRedis.php",
"diff": "@@ -36,6 +36,9 @@ class libSockOnRedis extends libSocket\npublic bool $is_ws = false;\n+ public int $mpc_fork = 10;\n+ public int $mpc_exec = 1000;\n+\npublic int $batch_size = 200;\npubli... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setMpcProp method to control Mpc start status |
323,346 | 19.05.2021 00:08:50 | -28,800 | ae57823181089eb424865fa2568508feebd6e176 | Always check unitHandler register in main process | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -361,7 +361,6 @@ class libQueue extends Factory\n*/\npublic function getQueueList(): array\n{\n- //Build process keys\n$this->buildKeys();\nreturn $this->redis->sMembers($this->key_slot['listen']);... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always check unitHandler register in main process |
323,346 | 19.05.2021 14:55:09 | -28,800 | a2de46a242a5b13565b88ce385617dedf771e15f | Improve libMPC process control logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -149,18 +149,13 @@ class libMPC extends Factory\n*/\npublic function add(string $cmd, array $data = [], int $retry = 0): int\n{\n- //Check max executes\n- if ((++$this->proc_exec[$this->proc_idx]) >= $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve libMPC process control logic |
323,346 | 20.05.2021 16:24:32 | -28,800 | c8dc5304c831c1b01e3fab7d6751d2d34e6504d3 | Add "root" argument for "addAutoload" function | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -129,15 +129,16 @@ class App extends Factory\n}\n/**\n- * Add autoload pathname (root_path related)\n+ * Add autoload pathname (root related)\n*\n* @param string $pathname\n+ * @param string $root\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add "root" argument for "addAutoload" function |
323,346 | 20.05.2021 18:59:47 | -28,800 | db24653d51e072b7ac8024ec1f4676b8893616e0 | Ability to load file out of app root path | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/App.php",
"new_path": "Core/Lib/App.php",
"diff": "@@ -138,7 +138,7 @@ class App extends Factory\n*/\npublic function addAutoload(string $pathname, string $root = ''): self\n{\n- $path = ('' === $root ? $this->root_path : $root) . DIRECTORY_SEPARATOR ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Ability to load file out of app root path |
323,346 | 20.05.2021 19:04:29 | -28,800 | 3d766ae66c351a6bdf92480a17a63cfa8c73fa9c | Ability to create path out of app root path | [
{
"change_type": "MODIFY",
"old_path": "Ext/libFile.php",
"new_path": "Ext/libFile.php",
"diff": "@@ -48,7 +48,7 @@ class libFile extends Factory\n}\n/**\n- * Check & create directory ($root based)\n+ * Check & create directory (root based)\n*\n* @param string $path\n* @param string $root\n@@ -58,9 ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Ability to create path out of app root path |
323,346 | 20.05.2021 19:17:03 | -28,800 | 8a22cc78478f051be09783edcb279630e5f4ef34 | Ability to load language .mo file out of app root path | [
{
"change_type": "MODIFY",
"old_path": "Ext/libLang.php",
"new_path": "Ext/libLang.php",
"diff": "@@ -32,24 +32,15 @@ use Core\\Lib\\IOUnit;\n*/\nclass libLang extends Factory\n{\n- public string $path;\n-\n- /**\n- * libLang constructor.\n- */\n- public function __construct()\n- {\n- $this->path = ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Ability to load language .mo file out of app root path |
323,346 | 22.05.2021 11:45:29 | -28,800 | a58f0d053b5de421defa22c8b319670a36bf9239 | Add setUploadPath method to set upload root path dynamically | [
{
"change_type": "MODIFY",
"old_path": "Ext/libUpload.php",
"new_path": "Ext/libUpload.php",
"diff": "namespace Ext;\nuse Core\\Factory;\n+use Core\\Lib\\App;\nuse Core\\Lib\\IOUnit;\n/**\n@@ -90,7 +91,7 @@ class libUpload extends Factory\n];\npublic IOUnit $io_unit;\n- public string $upload_root;\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setUploadPath method to set upload root path dynamically |
323,346 | 24.05.2021 18:52:51 | -28,800 | aad8db5a21f2f0d02791c930866f3e54c000a7ed | Add second param for addIncPath | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCoreApi.php",
"new_path": "Ext/libCoreApi.php",
"diff": "@@ -129,17 +129,18 @@ class libCoreApi extends Factory\n}\n/**\n- * Add include pathname (root_path related)\n+ * Add include pathname (root related)\n*\n* @param string $pathname\n+ * @param stri... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add second param for addIncPath |
323,346 | 01.06.2021 23:18:19 | -28,800 | 49aac18b24c39217096cf10ab0957257eb74d626 | Change libCryptGen from full static to object | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCrypt.php",
"new_path": "Ext/libCrypt.php",
"diff": "@@ -29,42 +29,42 @@ use Core\\Factory;\n*/\nclass libCrypt extends Factory\n{\n+ /** @var libCryptGen $crypt_gen */\n+ public libCryptGen $crypt_gen;\n+\n//Crypt method\npublic string $method = 'AES-2... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change libCryptGen from full static to object |
323,346 | 01.06.2021 23:29:12 | -28,800 | 1707347de0c4bdb9d1a822e823610e5040f75319 | Correct argument type and return type | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCaptcha.php",
"new_path": "Ext/libCaptcha.php",
"diff": "@@ -48,8 +48,8 @@ class libCaptcha extends Factory\nself::TYPE_CALC,\n];\n- /** @var \\ext\\libCrypt $lib_crypt */\n- public object $lib_crypt;\n+ /** @var libCrypt $lib_crypt */\n+ public libCryp... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Correct argument type and return type |
323,346 | 01.06.2021 23:32:46 | -28,800 | dc8a64da74d9b268e31c8f63d767c44efb315441 | Fix non-static calling error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCryptGen.php",
"new_path": "Ext/libCryptGen.php",
"diff": "@@ -73,7 +73,7 @@ class libCryptGen extends Factory\nforeach ($unit as $k => $v) {\n$unit_key = $v[0];\n- if (self::getKvMode($k, $unit_key)) {\n+ if ($this->getKvMode($k, $unit_key)) {\n$v = st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix non-static calling error |
323,346 | 04.06.2021 14:33:46 | -28,800 | 162e34443e9ecbfb3733b815a95a9bb3bdc07109 | Reset runtime data even on error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -683,9 +683,11 @@ class libMySQL extends Factory\n$result['stmt'] = $this->pdo->prepare($this->buildSql());\n$result['exec'] = $result['stmt']->execute($this->runtime_data['bind'] ?? []);\n- $this-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Reset runtime data even on error |
323,346 | 07.06.2021 17:03:37 | -28,800 | fa1b939ab275804aefdd82791dec749de8d4c02a | Improve Router logic on cgiParser | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Router.php",
"new_path": "Core/Lib/Router.php",
"diff": "@@ -35,7 +35,6 @@ class Router extends Factory\npublic array $cgi_cmd = [];\npublic array $cgi_stack = [];\n-\npublic array $cli_cmd = [];\npublic array $cli_stack = [];\npublic array $cli_path_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve Router logic on cgiParser |
323,346 | 08.06.2021 13:27:50 | -28,800 | 0d87e1e3410833c574261ce2419a9986025483c3 | Add setTimeout function to set cURL timeout seconds | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -187,6 +187,21 @@ class libHttp extends Factory\nreturn $this;\n}\n+ /**\n+ * Set cURL timeout value (seconds)\n+ *\n+ * @param int $timeout\n+ *\n+ * @return $this\n+ */\n+ public function setTimeou... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setTimeout function to set cURL timeout seconds |
323,346 | 08.06.2021 21:05:16 | -28,800 | 7c876ba993973dedbe5d8495691e4dc4bee6aada | Add option control methods | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -42,12 +42,15 @@ class libHttp extends Factory\n'http_method' => 'GET',\n'http_connection' => 'keep-alive',\n'http_content_type' => self::CONTENT_TYPE_URL_ENCODED,\n+ 'ssl_verifyhost' => 2,\n+ 'ssl_v... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add option control methods |
323,346 | 08.06.2021 21:35:57 | -28,800 | ae57f41b5a19408a293a79a7320624e99f803ffe | Minor improvement on libHttp | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -38,7 +38,7 @@ class libHttp extends Factory\n//cURL default data container\nconst CURL_DEFAULT = [\n- 'http_ver' => 'HTTP/2',\n+ 'http_ver' => 'HTTP/1.1',\n'http_method' => 'GET',\n'http_connection'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Minor improvement on libHttp |
323,346 | 11.06.2021 13:51:32 | -28,800 | 1134cc4d31f7ff8eb7288e4973b8177b8eee4186 | Dealing with libHttp request to standard/non-standard port number | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -520,11 +520,6 @@ class libHttp extends Factory\n//Build query string\n$url_unit['query'] = isset($url_unit['query']) ? '?' . $url_unit['query'] : '';\n- //Add URL port\n- if (!isset($url_unit['port'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Dealing with libHttp request to standard/non-standard port number |
323,346 | 08.07.2021 14:42:10 | -28,800 | 5333ac5af043b61e7962636843842900fa4ab2f5 | Rename varible name from proc_* to worker_* | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -226,30 +226,30 @@ class libQueue extends Factory\n/**\n* Kill worker process\n*\n- * @param string $proc_hash\n+ * @param string $worker_key\n*\n* @return int\n*/\n- public function kill(string $p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rename varible name from proc_* to worker_* |
323,346 | 08.07.2021 15:01:30 | -28,800 | d6a99f81d9a5a6e48679006092cff0e888bb3520 | Assign job_idx to every added job, other fix. | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -167,13 +167,13 @@ class libQueue extends Factory\n*\n* @param string $cmd\n* @param array $data Use string \"job_hash\" to mark as unique key, use string \"argv\" to pass as command argv param\n- ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Assign job_idx to every added job, other fix. |
323,346 | 08.07.2021 18:20:01 | -28,800 | 18677bc8cd6a62b66fddb533737c8907f308cf98 | Save job idx value and counter for future use | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -72,6 +72,7 @@ class libQueue extends Factory\n//Default key list\nprivate array $key_list = [\n//Process keys\n+ 'idx' => 'idx',\n'listen' => 'listen',\n'failed' => 'failed',\n'success' => 'succes... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Save job idx value and counter for future use |
323,346 | 08.07.2021 18:43:51 | -28,800 | 647949b4295dc049e717b09ba41765236cc799cb | Execute job by checking job idx counter (job now can be removed before execution) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -247,6 +247,25 @@ class libQueue extends Factory\nreturn $result;\n}\n+ /**\n+ * Remove a job by decreasing idx counter\n+ *\n+ * @param string $job_idx\n+ *\n+ * @return int left job idx counter (... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Execute job by checking job idx counter (job now can be removed before execution) |
323,346 | 09.07.2021 11:05:25 | -28,800 | c3c4aae3983d5f714221e07002a0fbb7af3d47e6 | Change job idx from raw rand string to md5 | [
{
"change_type": "MODIFY",
"old_path": "Ext/libQueue.php",
"new_path": "Ext/libQueue.php",
"diff": "@@ -200,7 +200,7 @@ class libQueue extends Factory\n}\n//Pack job data in JSON\n- $job_idx = uniqid(microtime() . getmypid() . mt_rand(), true);\n+ $job_idx = hash('md5', uniqid(microtime() . getmypid... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change job idx from raw rand string to md5 |
323,346 | 03.08.2021 12:27:33 | -28,800 | 4a29f30f651043ac73caa98a36b848422fb104f0 | Add libErrno::setArray function | [
{
"change_type": "MODIFY",
"old_path": "Ext/libErrno.php",
"new_path": "Ext/libErrno.php",
"diff": "@@ -99,4 +99,15 @@ class libErrno extends Factory\nIOUnit::new()->setMsgCode(...array_values($this->get($code, $errno, $message)));\nunset($code, $errno, $message);\n}\n+\n+ /**\n+ * Set standard outp... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add libErrno::setArray function |
323,346 | 04.08.2021 19:58:49 | -28,800 | ef6c31d01c07d4b22c6debdd3993414a9008eb32 | Add file upload path in results | [
{
"change_type": "MODIFY",
"old_path": "Ext/libUpload.php",
"new_path": "Ext/libUpload.php",
"diff": "@@ -260,6 +260,7 @@ class libUpload extends Factory\n//Collect upload data\n$result['url'] = strtr($url_path, '\\\\', '/');\n+ $result['path'] = &$file_path;\n$result['name'] = &$file_name;\n$result... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add file upload path in results |
323,346 | 13.08.2021 15:35:32 | -28,800 | fb623e069a395be85cd098a9b6c5eaf68524442c | Factory does not control PDO and Redis connection anymore | [
{
"change_type": "MODIFY",
"old_path": "Ext/libPDO.php",
"new_path": "Ext/libPDO.php",
"diff": "@@ -84,7 +84,7 @@ class libPDO extends Factory\n*/\npublic function connect(): \\PDO\n{\n- return parent::getObj(\\PDO::class, [$this->dsn, $this->usr, $this->pwd, $this->opt]);\n+ return new \\PDO($this-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Factory does not control PDO and Redis connection anymore |
323,346 | 13.08.2021 16:14:58 | -28,800 | 285f54901ce02e127253e15394ec801bc66f7777 | Retry execution by reconnecting MySQL (error code 2006 and 2013) | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -35,6 +35,10 @@ class libMySQL extends Factory\n/** @var \\PDO $pdo */\npublic \\PDO $pdo;\n+ /** @var libPDO $lib_pdo */\n+ public libPDO $lib_pdo;\n+\n+ public int $retry_times = 3;\npublic int $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Retry execution by reconnecting MySQL (error code 2006 and 2013) |
323,346 | 13.08.2021 20:19:23 | -28,800 | 2d321206a4a8d178228af8013151eedb54e530c2 | Fix PDO errno fetch method | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -709,7 +709,7 @@ class libMySQL extends Factory\n$this->runtime_data = [];\n$this->affected_rows = $result['stmt']->rowCount();\n} catch (\\Throwable $throwable) {\n- if (!in_array($result['stmt']-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix PDO errno fetch method |
323,346 | 16.08.2021 10:03:39 | -28,800 | 89904fa3913ad12a69194589fdec6fa73f1fd300 | Add setCleanMode to clear all unfinished transactions and runtime data | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -84,6 +84,27 @@ class libMySQL extends Factory\nreturn $this;\n}\n+ /**\n+ * Set clean mode\n+ *\n+ * @return $this\n+ */\n+ public function setCleanMode(): self\n+ {\n+ register_shutdown_function(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setCleanMode to clear all unfinished transactions and runtime data |
323,346 | 16.08.2021 11:20:48 | -28,800 | 621d1f712c095d985416157cc13381b640beef1b | Cleanup when exception occurred including shutdown | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -85,14 +85,21 @@ class libMySQL extends Factory\n}\n/**\n- * Set clean mode\n+ * Set auto cleanup on shutdown\n*\n* @return $this\n*/\n- public function setCleanMode(): self\n+ public function auto... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Cleanup when exception occurred including shutdown |
323,346 | 16.08.2021 13:30:11 | -28,800 | 1f7d8845927d93adb7325ac46b58aace8dd2d185 | Do NOT always rollback unfinished transaction on exceptions | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -591,7 +591,7 @@ class libMySQL extends Factory\n$this->affected_rows = -1;\n}\n} catch (\\Throwable $throwable) {\n- $this->cleanup();\n+ $this->runtime_data = [];\nthrow new \\PDOException($throw... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Do NOT always rollback unfinished transaction on exceptions |
323,346 | 17.08.2021 16:15:24 | -28,800 | 49cb9579d989b56af49c0b59d0081468b968b691 | Let Factory control PDO and Redis connection again | [
{
"change_type": "MODIFY",
"old_path": "Ext/libPDO.php",
"new_path": "Ext/libPDO.php",
"diff": "@@ -84,7 +84,7 @@ class libPDO extends Factory\n*/\npublic function connect(): \\PDO\n{\n- return new \\PDO($this->dsn, $this->usr, $this->pwd, $this->opt);\n+ return parent::getObj(\\PDO::class, [$this->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Let Factory control PDO and Redis connection again |
323,346 | 17.08.2021 16:54:50 | -28,800 | c3a27d29b20cbab42eba02d7bb8c473c02221b78 | Factory now destroys specific object instead of $this | [
{
"change_type": "MODIFY",
"old_path": "Core/Factory.php",
"new_path": "Core/Factory.php",
"diff": "@@ -87,16 +87,18 @@ class Factory\n}\n/**\n- * Destroy from Factory\n+ * Destroy object from Factory\n+ *\n+ * @param object $object\n*/\n- public function destroy(): void\n+ public function destroy(o... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Factory now destroys specific object instead of $this |
323,346 | 17.08.2021 16:58:46 | -28,800 | 36383617a8e5734745bc37379e3f1ad188c9fab9 | Remove libMySQL::bindPdo, destroy PDO before reconnect | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMySQL.php",
"new_path": "Ext/libMySQL.php",
"diff": "@@ -53,21 +53,6 @@ class libMySQL extends Factory\nconst EXPLAIN_LEVEL = ['NULL', 'system', 'const', 'eq_ref', 'ref', 'range', 'index', 'ALL'];\n- /**\n- * Bind to PDO connection\n- *\n- * @param \\PD... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove libMySQL::bindPdo, destroy PDO before reconnect |
323,346 | 09.09.2021 16:32:02 | -28,800 | 1d3f71d32ef97d49ea246db8d1b11f9a3b86fee0 | Optimize argv logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -91,11 +91,15 @@ class libMPC extends Factory\n$cmd .= ' -c\"' . $this->io_unit->encodeData($c) . '\"';\nif (!empty($data)) {\n- $cmd .= ' -d\"' . $this->io_unit->encodeData(json_encode($data, JSON_FOR... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Optimize argv logic |
323,346 | 09.09.2021 18:09:41 | -28,800 | 93c7f85f12d7012b2eb22886f54ee3f0c4eda4c7 | Extract function to build full command | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -87,21 +87,7 @@ class libMPC extends Factory\n*/\npublic function execAsync(string $c, array $data = []): bool\n{\n- $cmd = $this->php_path . ' \"' . $this->app->script_path . '\"';\n- $cmd .= ' -c\"' ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Extract function to build full command |
323,346 | 10.09.2021 13:39:18 | -28,800 | ab74405bfd0ed43ef4dc7fdf118afa4696097782 | Using popen instead of proc_open in lib Execute | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -273,15 +273,7 @@ class Execute extends Factory\n}\n//Create process\n- $process = proc_open(\n- $os_unit->setEnvPath()->fetchCmd(),\n- [\n- ['pipe', 'r'],\n- ['pipe', 'w'],\n- ['file', $this->app-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using popen instead of proc_open in lib Execute |
323,346 | 11.09.2021 11:21:51 | -28,800 | 9848a14a83fc742c6d7aa0cf908a717402440d61 | Add execSync to get stdout/stderr via file pointer | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -101,6 +101,49 @@ class libMPC extends Factory\nreturn $result;\n}\n+ /**\n+ * Exec cmd sync\n+ *\n+ * @param string $c\n+ * @param array $data\n+ *\n+ * @return string[]\n+ * @throws \\Exception\n+ */... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add execSync to get stdout/stderr via file pointer |
323,346 | 11.09.2021 14:55:33 | -28,800 | 2fd247c324ad3ebd4bb430d1449ececd9086dba9 | Allow to use raw command instead of NS API cmd | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -46,8 +46,8 @@ class libMPC extends Factory\npublic int $max_fork = 10;\npublic int $max_exec = 1000;\n- public string $php_path = '';\n- public string $proc_cmd = '';\n+ public string $php_path;\n+ pu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Allow to use raw command instead of NS API cmd |
323,346 | 18.09.2021 16:04:51 | -28,800 | e6291a0e0c4d9c37c85ca075cb93444380fd750f | Add VSM algorithm | [
{
"change_type": "MODIFY",
"old_path": "Algo/Ngram.php",
"new_path": "Algo/Ngram.php",
"diff": "namespace Algo;\n+use Core\\Factory;\n+\n/**\n* Class Ngram\n*\n* @package Algo\n*/\n-class Ngram\n+class Ngram extends Factory\n{\npublic int $src_len;\npublic array $src_data;\n/**\n- * @param array $da... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add VSM algorithm |
323,346 | 18.09.2021 18:24:13 | -28,800 | 6b0e510d99e383f2dd7abf89063db981a734b212 | Reformat all variable names | [
{
"change_type": "MODIFY",
"old_path": "Core/Execute.php",
"new_path": "Core/Execute.php",
"diff": "@@ -190,7 +190,7 @@ class Execute extends Factory\n$result = [];\n//Init OSUnit\n- $os_unit = OSUnit::new();\n+ $OSUnit = OSUnit::new();\n//Process CLI command\nwhile (is_array($cmd_pair = array_shift... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Reformat all variable names |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.