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 | 03.09.2019 19:31:24 | -28,800 | f1c0c2152b440c0aa2ba7fbf1325eb7ebf7a9799 | new logic on delay queue (not test) | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -40,7 +40,7 @@ class redis_queue extends redis\nconst KEY_FAILED = 'RQ:failed';\n//Delay keys\n- const KEY_DELAY_TIME = 'RQ:delay:time';\n+ const KEY_DELAY_LOCK = 'RQ:delay:lock';\nconst KEY_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | new logic on delay queue (not test) |
323,346 | 03.09.2019 21:17:03 | -28,800 | 807ea91d0c95da1c533823ca16225a9abbb42acf | delay logic changed (still has timeline mistake when adding within long/short delay) | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -197,7 +197,7 @@ class redis_queue extends redis\n*/\npublic function start(int $max_fork = 10, int $max_exec = 200): void\n{\n- //Detect running mode\n+ //Detect env\nif (!parent::$is_CLI) {... | PHP | Apache License 2.0 | jerry-shaw/nervsys | delay logic changed (still has timeline mistake when adding within long/short delay) |
323,346 | 04.09.2019 14:18:57 | -28,800 | acfc86415f3b832bdc825ff630efc2c2a598badc | improve delay queue logic (tested, ready to use) | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -41,7 +41,8 @@ class redis_queue extends redis\n//Delay keys\nconst KEY_DELAY_LOCK = 'RQ:delay:lock';\n- const KEY_DELAY_JOBS = 'RQ:delay:jobs';\n+ const KEY_DELAY_TIME = 'RQ:delay:time';\n+ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve delay queue logic (tested, ready to use) |
323,346 | 04.09.2019 17:14:59 | -28,800 | 2174a95205bbec67999243ce86cdec296ea1a1e7 | modify http accept types | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -33,7 +33,6 @@ class http extends factory\nconst CONTENT_TYPE_ENCODED = 'application/x-www-form-urlencoded';\nprotected $http = 'HTTP/2.0'; //HTTP Version\n- protected $accept = 'text/plain,text/html,text/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | modify http accept types |
323,346 | 04.09.2019 22:28:32 | -28,800 | 79eb982dcb1c71b9f7c986fcd3b00b7cf6323d1e | fix missing "type" param when call unit process | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -54,8 +54,8 @@ class redis_queue extends redis\nprotected $max_fork = 10;\nprotected $max_exec = 200;\n- //Unit resources\n- private $unit = '';\n+ //Unit command\n+ private $unit_cmd = '';\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix missing "type" param when call unit process |
323,346 | 06.09.2019 11:26:17 | -28,800 | b0ab979ff865794c8bab9dc86a4df01f8a784cbd | support configurating more HTTP header settings | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -296,13 +296,13 @@ class http extends factory\n}\n$header += [\n- 'Accept' => $this->accept,\n- 'Accept-Charset' => $this->accept_charset,\n- 'Accept-Encoding' => $this->accept_encoding,\n- 'Accept-Languag... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support configurating more HTTP header settings |
323,346 | 10.09.2019 11:14:23 | -28,800 | 0235107db5e9d3cb93ee5ac0e4a072b33d7691a8 | using cmd + unique key instead of full data pack to identify an unique queue job | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -45,10 +45,10 @@ class redis_queue extends redis\nconst PREFIX_DELAY_JOBS = 'RQ:delay:';\n//Queue key prefix\n- const PREFIX_CMD = 'RQ:cmd:';\nconst PREFIX_JOBS = 'RQ:jobs:';\nconst PREFIX_WA... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using cmd + unique key instead of full data pack to identify an unique queue job |
323,346 | 10.09.2019 16:03:05 | -28,800 | 99eedffafda2b6a153abe3ff558a8542a3259deb | redis_queue: support multiple queue process under different space_keys | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -27,36 +27,67 @@ use core\\handler\\platform;\nclass redis_queue extends redis\n{\n//Queue type\n- const TYPE_REALTIME = 'realtime';\n- const TYPE_UNIQUE = 'unique';\nconst TYPE_DELAY = 'dela... | PHP | Apache License 2.0 | jerry-shaw/nervsys | redis_queue: support multiple queue process under different space_keys |
323,346 | 10.09.2019 16:03:52 | -28,800 | b32af932f4ebe5abbe9b2aeb4722442f87ee5959 | fix cmd mismatch when using "\" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -143,7 +143,7 @@ class factory extends system\npublic static function get_app_cmd(string $cmd): string\n{\n//Remove defined \"app_path\"\n- if ('' !== self::$sys['app_path'] && 0 ==... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix cmd mismatch when using "\" |
323,346 | 12.09.2019 13:47:10 | -28,800 | b2377a8733c94bb43430529361d0eccf1b94ebf0 | add simple dependency injection on building argument | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "namespace core\\parser;\n+use core\\handler\\factory;\n+\nclass data\n{\n//Base64 data header\n@@ -105,13 +107,13 @@ class data\n/**\n* Build argument\n*\n- * @param object $reflect\n+ * @para... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add simple dependency injection on building argument |
323,346 | 16.09.2019 20:37:26 | -28,800 | 6f9779785b514c581d3c35b1b136ef1be9c841bd | minor fix limit option in mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -289,7 +289,7 @@ class pdo_mysql extends pdo\n*/\npublic function limit(int $offset, int $length = 0): object\n{\n- $this->runtime['limit'] = 0 === $length ? '0, ' . $offset : $offset . ', ' . $l... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix limit option in mysql |
323,346 | 05.10.2019 12:11:04 | -28,800 | 6c0a01dc1695662ebf21f0a670ecf0248ae433d3 | finish reflect handler and going | [
{
"change_type": "RENAME",
"old_path": "api.php.example",
"new_path": "api.php",
"diff": "<?php\n/**\n- * API Entry\n+ * API Entry script\n*\n* Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n*\n//Declare strict types\ndeclare(strict_types = 1);\n-//Define root path\n-define('ROOT', __DIR__ . ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish reflect handler and going |
323,346 | 05.10.2019 12:56:57 | -28,800 | 5a2d56439784619d4276e6803ea531c5ae630c10 | finish conf controller | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "core/lib/conf.php",
"diff": "+<?php\n+\n+/**\n+ * NS System Configuration controller\n+ *\n+ * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish conf controller |
323,346 | 05.10.2019 17:47:35 | -28,800 | f78638eceb2629a781bdb5a0c2b0975a547c0b33 | move error and factory to dir stc | [
{
"change_type": "RENAME",
"old_path": "core/lib/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "* limitations under the License.\n*/\n-namespace core\\lib;\n+namespace core\\lib\\stc;\n/**\n* Class error\n@@ -112,7 +112,7 @@ final class error\n$exception = get_class($throwable);\n//Get e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move error and factory to dir stc |
323,346 | 05.10.2019 17:47:53 | -28,800 | 6d19bbdbc56106286bb64aa79749900a824a203a | finish log handler | [
{
"change_type": "MODIFY",
"old_path": "core/lib/log.php",
"new_path": "core/lib/log.php",
"diff": "<?php\n+\n/**\n- * Created by PhpStorm.\n- * User: Jerry\n- * Date: 10/4/2019\n- * Time: 4:55 PM\n- * Note: log.php\n+ * NS System Log handler\n+ *\n+ * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish log handler |
323,346 | 05.10.2019 17:48:12 | -28,800 | 9d7384264a389e88d6327bd3397302688083c4e6 | change pool property type hint | [
{
"change_type": "MODIFY",
"old_path": "core/lib/pool.php",
"new_path": "core/lib/pool.php",
"diff": "@@ -30,23 +30,23 @@ final class pool\n/**\n* CMD\n*\n- * @var array\n+ * @var string\n*/\npublic $cmd = '';\n/**\n- * App.ini\n+ * Log\n*\n- * @var array\n+ * @var string\n*/\n- public $ini = [];\n+... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change pool property type hint |
323,346 | 05.10.2019 17:48:44 | -28,800 | 0cccbcfb668900875e46ae7c5b852fac8f50d085 | change methods in reflect handler from static to non-static | [
{
"change_type": "MODIFY",
"old_path": "core/lib/reflect.php",
"new_path": "core/lib/reflect.php",
"diff": "@@ -28,7 +28,7 @@ namespace core\\lib;\nfinal class reflect\n{\n//Reflection pool\n- private static $pool = [];\n+ private $pool = [];\n/**\n* Get class reflection\n@@ -38,13 +38,13 @@ final c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change methods in reflect handler from static to non-static |
323,346 | 05.10.2019 17:49:01 | -28,800 | 4b5934c96d194d97f34d1ac73e36d37762dd73e9 | change ns.php to fit new struct | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -83,9 +83,9 @@ spl_autoload_register(\n);\n//Load libraries\n-use core\\lib\\conf;\n-use core\\lib\\error;\n-use core\\lib\\factory;\n+use core\\lib\\pool;\n+use core\\lib\\stc\\error;\n+use core\\lib\\stc\\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change ns.php to fit new struct |
323,346 | 05.10.2019 17:49:15 | -28,800 | 8b55eae1b5c035e25a66e067cd15e52ece65ec3e | add app.ini.example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "app.ini.example",
"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 c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add app.ini.example |
323,346 | 05.10.2019 22:03:04 | -28,800 | cb8154acfede6b9a911a58db73467138218e1be6 | update ns.php and os.php | [
{
"change_type": "MODIFY",
"old_path": "core/lib/os.php",
"new_path": "core/lib/os.php",
"diff": "<?php\n+\n/**\n- * Created by PhpStorm.\n- * User: Jerry\n- * Date: 10/4/2019\n- * Time: 4:48 PM\n- * Note: os.php\n+ * OS controller\n+ *\n+ * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n+ *\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ns.php and os.php |
323,346 | 05.10.2019 22:22:34 | -28,800 | 5c56393276cdb79fdbf1ebdead0d17db1e6a82f0 | move all stdClass to std folder | [
{
"change_type": "RENAME",
"old_path": "core/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": ""
},
{
"change_type": "RENAME",
"old_path": "core/cli.php",
"new_path": "core/lib/cli.php",
"diff": ""
},
{
"change_type": "DELETE",
"old_path": "core/lib/io.php",
"new... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move all stdClass to std folder |
323,346 | 05.10.2019 22:22:53 | -28,800 | d7eb5532f191d907a3c92d36ed5f1a3330ee7dae | add io/data.php | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "core/lib/io/data.php",
"diff": "+<?php\n+/**\n+ * Created by PhpStorm.\n+ * User: Jerry\n+ * Date: 10/5/2019\n+ * Time: 10:21 PM\n+ * Note: data.php\n+ */\n+\n+namespace core\\lib\\io;\n+\n+\n+class data\n+{\n+\n+}\n\\ No newline at end of file\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add io/data.php |
323,346 | 05.10.2019 23:33:26 | -28,800 | 40bbd09a2950c580267353b973dae730434e8fdd | remove backtrace logs | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -128,41 +128,17 @@ final class error\n//Build context\n$context = [\n//Memory & Duration\n- 'Peak: ' . round(memory_get_peak_usage(true) / 1048576, 4) . 'MB',\n- 'Memory: ' . round(memo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove backtrace logs |
323,346 | 05.10.2019 23:39:54 | -28,800 | ce9dda54968183ab93fe5407eb8347f9dc70a339 | minor changes on log format | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -169,10 +169,10 @@ final class error\n$trace = array_reverse($trace);\nforeach ($trace as $item) {\n- $msg = '\\'' . (strtr($item['class'], '\\\\', '/') ?? '') . ($item['type'] ?? '') .... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on log format |
323,346 | 07.10.2019 10:39:30 | -28,800 | f7ac81acf32fdbbcb1169dd812929c77b7f33da3 | Using emalloc memory size instead of allocated from system when an error is logged | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -128,8 +128,8 @@ final class error\n//Build context\n$context = [\n//Memory & Duration\n- 'Peak' => round(memory_get_peak_usage(true) / 1048576, 4) . 'MB',\n- 'Memory' => round(memory_g... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using emalloc memory size instead of allocated from system when an error is logged |
323,346 | 08.10.2019 10:59:44 | -28,800 | bf36b8c64e326c2ce4c1bdedf9134f333ab4d329 | remove abstract classes | [
{
"change_type": "DELETE",
"old_path": "core/abs/io.php",
"new_path": null,
"diff": "-<?php\n-\n-/**\n- * NS System IO abstract class\n- *\n- * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n- *\n- * Licensed under the Apache License, Version 2.0 (the \"License\");\n- * you may not use this f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove abstract classes |
323,346 | 11.10.2019 23:12:01 | -28,800 | d29166be335782edabed0b868bee60432e82d28c | update app.ini.example | [
{
"change_type": "MODIFY",
"old_path": "app.ini.example",
"new_path": "app.ini.example",
"diff": "@@ -41,14 +41,13 @@ display = on\n; * = X-Requested-With, Content-Type, Content-Length\n[INIT]\n-; Custom function on system startup\n-; Array setting is allowed in this section\n-; Calling in prepare s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update app.ini.example |
323,346 | 11.10.2019 23:13:38 | -28,800 | b166913e10d561cfff2e6a07bb3322ba79d7e6a1 | finish router->parser method | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "<?php\n+\n/**\n- * Created by PhpStorm.\n- * User: Jerry\n- * Date: 10/4/2019\n- * Time: 4:41 PM\n- * Note: router.php\n+ * NS System Router controller\n+ *\n+ * Copyright 2016-2019 Jerr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish router->parser method |
323,346 | 12.10.2019 10:45:39 | -28,800 | 77a85d07612a860df58961a222030196689e93b3 | remove CGI section from conf due to custom router can be register into NS now | [
{
"change_type": "MODIFY",
"old_path": "app.ini.example",
"new_path": "app.ini.example",
"diff": "@@ -27,10 +27,6 @@ debug = on\n; Disable: \"off\" or \"0\"\ndisplay = on\n-[CGI]\n-; CGI settings\n-; For short commands\n-\n[CLI]\n; CLI settings\n; For external programs\n"
},
{
"change_type":... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove CGI section from conf due to custom router can be register into NS now |
323,346 | 12.10.2019 10:46:12 | -28,800 | 7de153c981d97d5a44e99f6d66d8d9f1b9830fa9 | add client ip detect on pool is calling | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/pool.php",
"new_path": "core/lib/std/pool.php",
"diff": "@@ -27,6 +27,13 @@ namespace core\\lib\\std;\n*/\nfinal class pool\n{\n+ /**\n+ * IP\n+ *\n+ * @var string\n+ */\n+ public $ip = '';\n+\n/**\n* CMD\n*\n@@ -90,6 +97,47 @@ final class pool\n*... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add client ip detect on pool is calling |
323,346 | 12.10.2019 11:37:46 | -28,800 | 1244698a927bbdd5b98aebce16cf023115af8afe | fix error missing class in exception trace | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -169,7 +169,7 @@ final class error\n$trace = array_reverse($trace);\nforeach ($trace as $item) {\n- $msg = (strtr($item['class'], '\\\\', '/') ?? '') . ($item['type'] ?? '') . $item['fu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix error missing class in exception trace |
323,346 | 12.10.2019 23:04:42 | -28,800 | 7b40ccabc420e8e406f42849a5860d32ef083553 | move CONF from ns.php to pool.php | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/pool.php",
"new_path": "core/lib/std/pool.php",
"diff": "@@ -49,11 +49,31 @@ final class pool\npublic $log = '';\n/**\n- * conf\n+ * Default conf\n*\n* @var array\n*/\n- public $conf = [];\n+ public $conf = [\n+ 'sys' => [\n+ 'timezone' => 'UTC',\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move CONF from ns.php to pool.php |
323,346 | 12.10.2019 23:05:27 | -28,800 | aef114745e361e5b2a737adf7f42f4596a949c96 | cgi caller under dev | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "namespace core\\lib;\n+use core\\lib\\stc\\factory;\n+use core\\lib\\std\\reflect;\n+\n/**\n* Class cgi\n*\n@@ -27,19 +30,193 @@ namespace core\\lib;\n*/\nclass cgi\n{\n+ /** @var \\core\\lib\\std\\re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | cgi caller under dev |
323,346 | 12.10.2019 23:15:24 | -28,800 | 1c415d869b952c29a3f52db327089398ca9f2767 | using Exception instead of return when params not match | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -178,7 +178,7 @@ class cgi\n//Check method visibility\nif (!$method_reflect->isPublic()) {\n- return [$this->get_name($class, $method) => 'NOT for public!'];\n+ throw new \\Exception($this->get_nam... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using Exception instead of return when params not match |
323,346 | 12.10.2019 23:23:30 | -28,800 | 0b87f2ae77e49e9620a72bfc901c49985a6860b6 | add a default value to param in call_fn | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -168,7 +168,7 @@ class cgi\n* @return array\n* @throws \\ReflectionException\n*/\n- public function call_fn(string $class, string $method, array $params): array\n+ public function call_fn(string $c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add a default value to param in call_fn |
323,346 | 13.10.2019 23:28:28 | -28,800 | 57839e5920e6f0bd61cfac72a402a573acb87125 | add try{} catch() to initialize code block to make a fully system stop | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -108,8 +108,9 @@ final class error\n* Exception handler\n*\n* @param \\Throwable $throwable\n+ * @param bool $stop_on_error\n*/\n- public static function exception_handler(\\Throwable $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add try{} catch() to initialize code block to make a fully system stop |
323,346 | 13.10.2019 23:57:36 | -28,800 | 9107bbf474fed6de8be28ef53946e83c121643af | start coding on io::class | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -28,4 +28,70 @@ namespace core\\lib\\std;\nclass io\n{\n+\n+ /**\n+ * Read URL CMD\n+ *\n+ * @return string\n+ */\n+ public function read_url(): string\n+ {\n+ //Read from PATH_INFO\n+ if (is... | PHP | Apache License 2.0 | jerry-shaw/nervsys | start coding on io::class |
323,346 | 14.10.2019 00:10:01 | -28,800 | f344c9f5da25853c847b46d2e5a101a1593aa049 | fix read url cmd from REQUEST_URI | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -50,12 +50,9 @@ class io\n$stop = strlen($_SERVER['REQUEST_URI']);\n}\n- if (1 < $len = $stop - $from) {\n- return substr($_SERVER['REQUEST_URI'], $from + 1, $len);\n- }\n+ $len = $stop - ++$... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix read url cmd from REQUEST_URI |
323,346 | 14.10.2019 00:36:47 | -28,800 | 0fdf7b37e479870fed180bb0d4e1b16cf8771771 | remove io modules | [
{
"change_type": "DELETE",
"old_path": "core/lib/io/argv.php",
"new_path": null,
"diff": "-<?php\n-/**\n- * Created by PhpStorm.\n- * User: Jerry\n- * Date: 10/4/2019\n- * Time: 5:12 PM\n- * Note: argv.php\n- */\n-\n-namespace core\\lib\\io;\n-\n-\n-class argv\n-{\n-\n-}\n\\ No newline at end of fil... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove io modules |
323,346 | 14.10.2019 00:37:15 | -28,800 | bee88b0386bf914850081356dd6ee1f7a2c9cb2e | add unfinished methods to io controller | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -28,6 +28,8 @@ namespace core\\lib\\std;\nclass io\n{\n+ //Base64 data header\n+ const BASE64 = 'data:text/argv;base64,';\n/**\n* Read URL CMD\n@@ -91,4 +93,124 @@ class io\n}\n+ public funct... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add unfinished methods to io controller |
323,346 | 16.10.2019 20:33:37 | -28,800 | 44a02f1a45b6c0895d3d88b58326107d158e33bf | remove base64 url safe functions (no use in core block) | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -27,12 +27,11 @@ namespace core\\lib\\std;\n*/\nclass io\n{\n-\n//Base64 data header\nconst BASE64 = 'data:text/argv;base64,';\n/**\n- * Read URL CMD\n+ * Read CMD from URL\n*\n* @return stri... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove base64 url safe functions (no use in core block) |
323,346 | 16.10.2019 22:45:06 | -28,800 | ffcbdb657b3a1b2b5144561c70dff983dbb59660 | continue io controller | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -65,14 +65,13 @@ class io\n/**\n* Read input data\n+ *\n+ * @param string $input\n+ *\n+ * @return array\n*/\n- public function read_input(): array\n+ public function read_input(string $input... | PHP | Apache License 2.0 | jerry-shaw/nervsys | continue io controller |
323,346 | 17.10.2019 16:02:33 | -28,800 | 5c1d9a1ef1d4cb6d2645795c63e000394bc84309 | finish io controller | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -88,17 +88,61 @@ class io\nreturn $data;\n}\n-\n+ /**\n+ * Read CLI arguments\n+ *\n+ * @return array\n+ */\npublic function read_argv(): array\n{\n+ /**\n+ * CLI options\n+ *\n+ * c: Command... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish io controller |
323,346 | 17.10.2019 17:12:25 | -28,800 | ee98babfd2662f74e152420ccd5f44944325fe11 | going on main process | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -22,6 +22,7 @@ namespace core\\lib\\stc;\nuse core\\lib\\std\\log;\nuse core\\lib\\std\\pool;\n+use core\\ns;\n/**\n* Class error\n@@ -123,7 +124,7 @@ final class error\n. ' on line ' .... | PHP | Apache License 2.0 | jerry-shaw/nervsys | going on main process |
323,346 | 18.10.2019 00:31:16 | -28,800 | 5f1fd14822cbbcaff56fb8c955663543c282f6e7 | fix error level caught mismatched | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -116,8 +116,19 @@ final class error\n//Get exception name\n$exception = get_class($throwable);\n+ //Get error code\n+ $err_code = $throwable->getCode();\n+\n//Get error level\n- $level ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix error level caught mismatched |
323,346 | 18.10.2019 14:24:28 | -28,800 | c04ba3bbc3019ac60483c6d18d9154cb361e1028 | finish output function | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -108,6 +108,9 @@ class ns\n/** @var \\core\\lib\\std\\pool $unit_pool */\nprivate static $unit_pool;\n+ /** @var \\core\\lib\\std\\io $unit_io */\n+ private static $unit_io;\n+\n/**\n* System boot\n*\n@@ -12... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish output function |
323,346 | 19.10.2019 22:06:16 | -28,800 | 05ffa4d983032c2f3c5ad5e7fa869f8fde91eb30 | move fn to their proper classes / code cleanup | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -22,6 +22,7 @@ namespace core\\lib;\nuse core\\lib\\stc\\factory;\nuse core\\lib\\std\\reflect;\n+use core\\lib\\std\\router;\n/**\n* Class cgi\n@@ -30,6 +31,9 @@ use core\\lib\\std\\reflect;\n*/\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move fn to their proper classes / code cleanup |
323,346 | 19.10.2019 23:23:11 | -28,800 | 9e2c40c62ecc3e4321f3a31a984eab5f191717ad | using "call_user_func" instead of "forward_static_call*" | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -96,9 +96,7 @@ class cgi\n}\n//Call method\n- $fn_result = !empty($matched_params['param'])\n- ? forward_static_call_array([$class_object, $method], $matched_params['param'])\n- : forward_static_ca... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using "call_user_func" instead of "forward_static_call*" |
323,346 | 19.10.2019 23:23:43 | -28,800 | 10d46047f7a6f9c159c7078975485b2e822f6e94 | finish trustzone handler | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/trustzone.php",
"new_path": "core/lib/stc/trustzone.php",
"diff": "<?php\n+\n/**\n- * Created by PhpStorm.\n- * User: Jerry\n- * Date: 10/4/2019\n- * Time: 4:51 PM\n- * Note: trustzone.php\n+ * NS System TrustZone handler\n+ *\n+ * Copyright 2016-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish trustzone handler |
323,346 | 20.10.2019 22:48:14 | -28,800 | 2f566860ec0b099ab434bfd1a6a9a863ebf7762c | fix empty string map to cmd after parse | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -46,6 +46,10 @@ final class router\n$cmd_list = $is_multi ? explode('-', $full_cmd) : [$full_cmd];\nforeach ($cmd_list as $value) {\n+ if ('' === $value = trim($value)) {\n+ continue;... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix empty string map to cmd after parse |
323,346 | 23.10.2019 09:43:57 | -28,800 | e489a744eae4093f3aa765e9f07f22f1d1aa8618 | fix a router error on changing NAMESPACE SEPARATOR | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -78,7 +78,7 @@ final class router\n*/\npublic function get_cls(string $class): string\n{\n- return 0 !== strpos($class, '\\\\') ? '\\\\' . APP_PATH . '\\\\' . $class : $class;\n+ retu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix a router error on changing NAMESPACE SEPARATOR |
323,346 | 23.10.2019 10:06:31 | -28,800 | cc45e01c8c65173852b0df0ce08edc8ac64ab8d8 | finish CGI process code block | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -49,18 +49,47 @@ class cgi\n$this->unit_reflect = factory::build(reflect::class);\n}\n+ /**\n+ * Call INIT commands\n+ *\n+ * @param array $cmd_group\n+ *\n+ * @return array\n+ * @throws \\Reflecti... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish CGI process code block |
323,346 | 23.10.2019 11:02:41 | -28,800 | b6c77333fb57cd65df8661542ed9ec6663170ace | keep using data in pool for all calling functions | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "namespace core\\lib;\nuse core\\lib\\stc\\factory;\n+use core\\lib\\std\\pool;\nuse core\\lib\\std\\reflect;\nuse core\\lib\\std\\router;\n@@ -31,6 +32,9 @@ use core\\lib\\std\\router;\n*/\nclass cgi\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | keep using data in pool for all calling functions |
323,346 | 23.10.2019 11:29:11 | -28,800 | a604e9c51592f4c20c15794e3bf233d166bf8803 | remove magic functions in pool | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/pool.php",
"new_path": "core/lib/std/pool.php",
"diff": "@@ -119,11 +119,11 @@ final class pool\npublic $is_TLS = true;\n/**\n- * Others\n+ * Router stack\n*\n* @var array\n*/\n- public $others = [];\n+ public $router_stack = [];\n/**\n* pool cons... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove magic functions in pool |
323,346 | 23.10.2019 14:16:21 | -28,800 | 4664e932f15e6a9905e2ebf10db0379febc5554b | add back TrustZone control to default router | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/trustzone.php",
"new_path": "core/lib/stc/trustzone.php",
"diff": "* limitations under the License.\n*/\n-namespace core\\lib\\std;\n-\n-use core\\lib\\stc\\factory;\n+namespace core\\lib\\stc;\n/**\n* Class trustzone\n@@ -29,18 +27,16 @@ use core... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add back TrustZone control to default router |
323,346 | 23.10.2019 14:28:55 | -28,800 | 748750a5cb1342036c780255085dac80dd65fee0 | fix trust_cmd parse the wrong class | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -94,7 +94,7 @@ final class router\n//Example commands via TrustZone\nforeach ($cmd_group as $class => $methods) {\n- $trust_data = array_intersect(trustzone::init($class, $unit_pool->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix trust_cmd parse the wrong class |
323,346 | 23.10.2019 14:47:52 | -28,800 | 848484dff223e371eb4fc42c69a073a02ef6d5ff | fix auto call mode | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -92,16 +92,23 @@ final class router\n/** @var \\core\\lib\\std\\pool $unit_pool */\n$unit_pool = factory::build(pool::class);\n- //Example commands via TrustZone\n+ //Filter commands ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix auto call mode |
323,343 | 23.10.2019 15:23:09 | -28,800 | 17640e0f1e896f2de64e02fd6583108e209369ba | add mysql full sql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -33,6 +33,8 @@ class pdo_mysql extends pdo\n//Runtime data\nprotected $runtime = [];\n+ //Full SQL\n+ protected $fullSql = '';\n/**\n* Insert into table\n@@ -312,7 +314,8 @@ class pdo_mysql exten... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add mysql full sql |
323,346 | 23.10.2019 15:58:33 | -28,800 | f4d6c2e6011c10acb24fed893e115d79ccc46721 | add new functions to factory handler in core | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/factory.php",
"new_path": "core/lib/stc/factory.php",
"diff": "@@ -33,24 +33,6 @@ final class factory\n//Instance pool\nprivate static $pool = [];\n- /**\n- * Build an instance\n- *\n- * @param string $class\n- * @param array $params\n- *\n- * @re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add new functions to factory handler in core |
323,346 | 23.10.2019 16:13:12 | -28,800 | 8fe89e5573bb6e8be25c95f599a8502db40708fd | fix find object error in factory | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/factory.php",
"new_path": "core/lib/stc/factory.php",
"diff": "@@ -97,7 +97,7 @@ final class factory\npublic static function move(object $object, string $alias): object\n{\n//Unset original index\n- if (false !== $key = array_search(self::$pool, $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix find object error in factory |
323,346 | 23.10.2019 16:49:56 | -28,800 | 763ed385cc07827c0b30faf950dfbb212cc881ba | fix ROOT path with DIRECTORY_SEPARATOR | [
{
"change_type": "MODIFY",
"old_path": "ext/conf.php",
"new_path": "ext/conf.php",
"diff": "@@ -46,7 +46,7 @@ class conf\npublic static function load(string $dir, string $name): array\n{\n$dir = '/' !== $dir ? trim($dir, \"/\\\\\") . DIRECTORY_SEPARATOR : '';\n- $file = ROOT . $dir . self::DIR . DIR... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix ROOT path with DIRECTORY_SEPARATOR |
323,346 | 23.10.2019 23:10:59 | -28,800 | 1b1ef5d53fe81a1df8a2805f0acff61516696a50 | change routes data structure | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -69,34 +69,34 @@ class cgi\n//CGI results\n$call_results = [];\n- foreach ($cmd_group as $class => $methods) {\n- //Fill class name\n- $class = $this->unit_router->get_cls($class);\n+ while (is_arr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change routes data structure |
323,346 | 24.10.2019 17:29:20 | -28,800 | 7499d0e50e76a47de852c2ffb09996c254e8d393 | CLI almost done / CGI skip non-exist classes | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -101,8 +101,10 @@ class cgi\n//Process CMD group\nwhile (is_array($group = array_shift($this->unit_pool->cgi_group))) {\n- //Get full class name\n- $class = $this->unit_router->get_cls(array_shift(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | CLI almost done / CGI skip non-exist classes |
323,346 | 24.10.2019 22:42:52 | -28,800 | 3c1b9507c05e06cca7792a3eccee94054713e8db | modify app.ini.example | [
{
"change_type": "MODIFY",
"old_path": "app.ini.example",
"new_path": "app.ini.example",
"diff": "timezone = PRC\n; Enable/disable automatic calling mode when no specific method name was given\n-auto_call = on\n+auto_call = off\n[LOG]\n; Log levels\n@@ -27,9 +27,13 @@ debug = on\n; Disable: \"off\" ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | modify app.ini.example |
323,346 | 24.10.2019 22:43:28 | -28,800 | aa6f653eff393a1d6553ed58dd127491d9355420 | add log save_path to conf | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cli.php",
"new_path": "core/lib/cli.php",
"diff": "namespace core\\lib;\n+use core\\lib\\stc\\error;\nuse core\\lib\\stc\\factory;\nuse core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\n@@ -31,31 +32,62 @@ use core\\lib\\std\\pool;\n*/\nfinal class cli\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add log save_path to conf |
323,346 | 24.10.2019 22:43:52 | -28,800 | 3cf563327e8347d6e64e7a74a7af223da884baa6 | change save_path | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/log.php",
"new_path": "core/lib/std/log.php",
"diff": "@@ -32,22 +32,25 @@ final class log\n/** @var \\core\\lib\\std\\pool $unit_pool */\nprivate $unit_pool;\n- //System log path\n- private $log_path = ROOT . DIRECTORY_SEPARATOR . 'logs';\n+ //Lo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change save_path |
323,346 | 24.10.2019 22:44:15 | -28,800 | a7c4ac3f9c45ebcabc9250121b11019bb764cdac | change CLI router logic | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -85,6 +85,9 @@ final class router\n/** @var \\core\\lib\\std\\pool $unit_pool */\n$unit_pool = factory::build(pool::class);\n+ //Get auto call mode\n+ $auto_call = $unit_pool->conf['s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change CLI router logic |
323,346 | 24.10.2019 22:44:40 | -28,800 | ad975e2f9637fa06ccadd32a72ca8a7b001dbcd2 | add try{} catch{} too all callings | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "namespace core\\lib;\n+use core\\lib\\stc\\error;\nuse core\\lib\\stc\\factory;\nuse core\\lib\\std\\pool;\nuse core\\lib\\std\\reflect;\n@@ -62,7 +63,6 @@ class cgi\n* @param array $cmd_group\n*\n* @... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add try{} catch{} too all callings |
323,346 | 24.10.2019 23:26:38 | -28,800 | 9436f725feec56cc8a8dfe3ed947948409271794 | NS core 7.4.0 done! | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -219,4 +219,36 @@ final class io\nunset($data, $root, $end, $key, $item);\nreturn $xml;\n}\n+\n+ /**\n+ * Build IO\n+ *\n+ * @param array $data\n+ *\n+ * @return string\n+ */\n+ public functi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | NS core 7.4.0 done! |
323,346 | 25.10.2019 10:19:47 | -28,800 | 1441012a0c13ee0f281c925aeb97025276a44443 | fix build_io error with type int | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -245,7 +245,7 @@ final class io\n//Format to string\nforeach ($array as $key => $value) {\n- $string .= (is_string($key) ? $key . ':' . PHP_EOL : '') . (is_string($value) ? $value . PHP_EOL :... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix build_io error with type int |
323,346 | 25.10.2019 11:58:29 | -28,800 | 631d761b8cf58ff4211e112079f36a3bcce31a8a | add nct.php (NS Core Tunnel script) | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "core/nct.php",
"diff": "+<?php\n+\n+/**\n+ * NS Core Tunnel script\n+ *\n+ * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add nct.php (NS Core Tunnel script) |
323,346 | 25.10.2019 14:29:56 | -28,800 | e2323bfaec24249eec80c661e23d48acf40098de | add more functions in NCT | [
{
"change_type": "MODIFY",
"old_path": "core/nct.php",
"new_path": "core/nct.php",
"diff": "namespace core;\nuse core\\lib\\stc\\factory;\n+use core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\n/**\n@@ -30,6 +31,26 @@ use core\\lib\\std\\pool;\n*/\nfinal class nct\n{\n+ /**\n+ * CLI running mode\n+ *\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more functions in NCT |
323,346 | 25.10.2019 14:36:57 | -28,800 | 5c717fb2d25ffaf6d576040f4a6156e9564c9bde | change name from nct to ct | [
{
"change_type": "RENAME",
"old_path": "core/nct.php",
"new_path": "core/ct.php",
"diff": "@@ -25,11 +25,11 @@ use core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\n/**\n- * Class nct\n+ * Class ct\n*\n* @package core\n*/\n-final class nct\n+final class ct\n{\n/**\n* CLI running mode\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | change name from nct to ct |
323,346 | 25.10.2019 14:43:40 | -28,800 | aec58fed679eb434f87a63623d1ab7db86845fec | get all data when key is not set | [
{
"change_type": "MODIFY",
"old_path": "core/ct.php",
"new_path": "core/ct.php",
"diff": "@@ -71,6 +71,8 @@ final class ct\n{\n/** @var \\core\\lib\\std\\pool $unit_pool */\n$unit_pool = factory::build(pool::class);\n+\n+ //Replace error content\n$unit_pool->error = array_replace_recursive($unit_poo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | get all data when key is not set |
323,346 | 25.10.2019 14:53:03 | -28,800 | e48fc496dcaae48c70ce313ded9235bb7dbb36c8 | move all functions from core\ct to ext\misc | [
{
"change_type": "DELETE",
"old_path": "core/ct.php",
"new_path": null,
"diff": "-<?php\n-\n-/**\n- * NS Core Tunnel script\n- *\n- * Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n- *\n- * Licensed under the Apache License, Version 2.0 (the \"License\");\n- * you may not use this file except... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move all functions from core\ct to ext\misc |
323,346 | 25.10.2019 17:31:57 | -28,800 | 26953f057d35ea9a84852ad38b4319bd463f9dfc | fix entry script detect logic | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -31,10 +31,14 @@ define('SYSVER', '7.4.0');\n//Define system root path\ndefine('SYSROOT', dirname(__DIR__));\n-//Find entry script file path\n-$entry_script = false === strpos($_SERVER['SCRIPT_FILENAME'], $c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix entry script detect logic |
323,346 | 28.10.2019 14:37:05 | -28,800 | d8acfbf37f816dd4ec1d50cb508faafed498af88 | fix getting entry path which cannot be fully replaced using strtr | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -32,8 +32,8 @@ define('SYSVER', '7.4.0');\ndefine('SYSROOT', dirname(__DIR__));\n//Get api path and cwd path\n-$api_path = strtr($_SERVER['SCRIPT_FILENAME'], '\\\\/', DIRECTORY_SEPARATOR);\n-$cwd_path = strt... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix getting entry path which cannot be fully replaced using strtr |
323,343 | 28.10.2019 15:15:21 | -28,800 | 02273a4d5ae3075d82f2748545dd08f27dff7802 | add request file | [
{
"change_type": "MODIFY",
"old_path": "ext/misc.php",
"new_path": "ext/misc.php",
"diff": "namespace ext;\nuse core\\lib\\stc\\factory;\n-use core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\nclass misc\n{\n- /**\n- * Register CMD router parser\n- *\n- * @param array $router\n- */\n- public static fu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add request file |
323,343 | 29.10.2019 16:30:47 | -28,800 | 9a218c809a41c33411727fc9913edb4247bd5218 | add:ext factory build function | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -77,4 +77,15 @@ class factory\n{\nreturn \\core\\lib\\stc\\factory::move($this, $alias);\n}\n+ /**\n+ * Build an instance\n+ * @param string $class\n+ * @param array $params\n+ *\n+ * @return object\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add:ext factory build function |
323,346 | 30.10.2019 15:55:43 | -28,800 | 2cede0f3cedf3ce77f9000e4b1ddcfb06f65bd49 | mpc: get log path directly from pool | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -186,7 +186,7 @@ class mpc extends factory\n[\n['pipe', 'r'],\n['pipe', 'w'],\n- ['file', misc::get_log_path() . DIRECTORY_SEPARATOR . date('Y-m-d') . '_mpc_error' . '.log', 'ab+']\n+ ['file', \\core\\lib\\s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | mpc: get log path directly from pool |
323,346 | 31.10.2019 11:57:11 | -28,800 | df7176d32fff85cb1a9b2d0fbec02c95ac5a43c6 | fix encoded argv "c" NOT being decoded | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -134,7 +134,7 @@ final class io\n}\n//Get command\n- $data['c'] = !isset($opt['c']) ? (array_shift($data['a']) ?? '') : $opt['c'];\n+ $data['c'] = $this->decode(!isset($opt['c']) ? (array_shi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix encoded argv "c" NOT being decoded |
323,346 | 31.10.2019 12:43:16 | -28,800 | 7a0fad197a542456385a258945fa476154298e4d | move try{} catch{} from call_group to call_service | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -63,6 +63,7 @@ final class cgi\n* @param array $cmd_group\n*\n* @return array\n+ * @throws \\ReflectionException\n*/\npublic function call_group(array $cmd_group): array\n{\n@@ -70,7 +71,6 @@ final... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move try{} catch{} from call_group to call_service |
323,346 | 31.10.2019 12:58:11 | -28,800 | 52028ac8663f26b53659d4cc093d4cdcc5f47087 | fix param detection error when default value exists in arguments | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/reflect.php",
"new_path": "core/lib/std/reflect.php",
"diff": "@@ -208,7 +208,10 @@ final class reflect\n//Param NOT exists\nif (!isset($params[$param_info['name']])) {\n- $result['diff'][] = $param_info['name'];\n+ //Check default value\n+ $param... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix param detection error when default value exists in arguments |
323,346 | 31.10.2019 13:13:51 | -28,800 | e65bbc2e251e38156b095407ac27a90b933bff67 | using current content instead of the whole results when only one element is contained (JSON) | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -178,7 +178,7 @@ final class io\n*/\npublic function build_json(array $data): string\n{\n- return json_encode($data, JSON_FORMAT);\n+ return json_encode(1 === count($data) ? current($data) : ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using current content instead of the whole results when only one element is contained (JSON) |
323,346 | 31.10.2019 13:43:44 | -28,800 | d4577a1a1491056c2f392b17e62805f72c4f9175 | set default db index to 0 | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -48,7 +48,7 @@ class redis extends factory\nstring $host = '127.0.0.1',\nint $port = 6379,\nstring $auth = '',\n- int $db = 1,\n+ int $db = 0,\nstring $prefix = '',\nint $timeout = 10,\nbool $persist = t... | PHP | Apache License 2.0 | jerry-shaw/nervsys | set default db index to 0 |
323,346 | 31.10.2019 13:44:07 | -28,800 | df5a449985b48ac7826df064da4007b600f937e2 | fix wrong function named stop | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -385,7 +385,7 @@ class redis_queue extends redis\n} while (0 < $this->instance->exists($unit_key) && $this->instance->expire($unit_key, self::WAIT_SCAN) && ++$unit_exec < $this->max_exec);\n/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix wrong function named stop |
323,346 | 31.10.2019 13:54:12 | -28,800 | b001f4cccf6aeaf4a4adef7d9e3bbc0a21963ff3 | fix missing param key "d" on calling realtime process | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -577,7 +577,7 @@ class redis_queue extends redis\n}\n//Call unit processes\n- $cmd = $this->unit_os->cmd_bg($this->unit_cmd . ' -\"type=realtime\"');\n+ $cmd = $this->unit_os->cmd_bg($this->u... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix missing param key "d" on calling realtime process |
323,346 | 31.10.2019 14:12:39 | -28,800 | eadbb7a3d80b96101ff5790ec45b8114cf78c48a | fix calling queue unit process | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -271,7 +271,7 @@ class redis_queue extends redis\n//Build basic unit command\n$this->unit_cmd = '\"' . $this->unit_os->php_path() . '\" '\n. '\"' . ENTRY_SCRIPT . '\" -r\"json\" '\n- . '-c\"'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix calling queue unit process |
323,346 | 31.10.2019 14:37:48 | -28,800 | 9d353291bdcbb033a8d98623878a98eadd7c1f12 | fix queue function static calling error | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "namespace ext;\n-use core\\parser\\data;\n-\nuse core\\handler\\platform;\n+use core\\parser\\data;\nclass redis_queue extends redis\n{\n@@ -294,7 +293,7 @@ class redis_queue extends redis\n} wh... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix queue function static calling error |
323,346 | 31.10.2019 18:04:05 | -28,800 | 5b7c4f82a3d32f9c30e164e320998610e1c229c8 | add failed time in queue fail log | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -635,7 +635,7 @@ class redis_queue extends redis\n$this->check_job($data, json_encode($result));\n}\n} catch (\\Throwable $throwable) {\n- $this->instance->lPush($this->key_failed, json_encod... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add failed time in queue fail log |
323,346 | 02.11.2019 11:12:24 | -28,800 | cc09a431be6cb34c06ca1b3ef4086c7f841a3686 | using static variable to store log file pointer | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/log.php",
"new_path": "core/lib/std/log.php",
"diff": "@@ -181,7 +181,7 @@ final class log\n$key = date('Ymd') . '-' . $level;\n$log = $this->log_path . DIRECTORY_SEPARATOR . $key . '.log';\n- $file = [];\n+ static $file = [];\nif (!isset($file[$k... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using static variable to store log file pointer |
323,346 | 02.11.2019 21:19:03 | -28,800 | 79e27bd918dd68a8a53a7f2a9bf42feca5bbe73b | change cgi_get_trust logic in CGI process (always run after call_before to avoid stdClass is calling in advance) | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -67,7 +67,6 @@ final class cgi\n*/\npublic function call_group(array $cmd_group): array\n{\n- //CGI results\n$call_results = [];\nwhile (is_array($group = array_shift($cmd_group))) {\n@@ -91,7 +90,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change cgi_get_trust logic in CGI process (always run after call_before to avoid stdClass is calling in advance) |
323,346 | 02.11.2019 21:19:48 | -28,800 | 8ae5908fc881580314dabf0f45cce711e6c4aee5 | function name changed to fix new core commit | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -620,7 +620,7 @@ class redis_queue extends redis\n//Check method visibility\nif (!$method_reflect->isPublic()) {\n- throw new \\Exception($unit_router->get_name($class, $method) . ' => NOT fo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | function name changed to fix new core commit |
323,346 | 02.11.2019 21:39:40 | -28,800 | 876b4a1ee9a01a21de3b09c7dbc91306f16dd6a1 | add "create" in ext\factory / change logic of "new" in ext\factory | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -31,33 +31,58 @@ use core\\lib\\stc\\factory as core_factory;\nclass factory\n{\n/**\n- * Get new object from called class\n- * Defined by class and arguments\n+ * Create a stdClass by passing multip... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "create" in ext\factory / change logic of "new" in ext\factory |
323,346 | 02.11.2019 21:40:12 | -28,800 | e3f30ac74acb433b5c4474f829984d242ac7956d | rename "create" to "start" in ext\socket | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -119,7 +119,7 @@ class socket extends factory\n*\n* @return $this\n*/\n- public function create(bool $block = false): object\n+ public function start(bool $block = false): object\n{\n$this->{'start_' .... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename "create" to "start" in ext\socket |
323,346 | 04.11.2019 13:49:43 | -28,800 | ab087662338e93315f72670160dffa41be0da2c0 | change ext\logger to ext\log | [
{
"change_type": "RENAME",
"old_path": "ext/logger.php",
"new_path": "ext/log.php",
"diff": "@@ -23,11 +23,11 @@ namespace ext;\nuse core\\lib\\std\\pool;\n/**\n- * Class logger\n+ * Class log\n*\n* @package ext\n*/\n-class logger extends factory\n+class log extends factory\n{\n//Log pool\nprivate $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change ext\logger to ext\log |
323,346 | 04.11.2019 13:50:27 | -28,800 | 7cf528ca5a78aee0e41f0a6dc0b6ce658084b585 | set params for factory::new() strictly to string | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -48,11 +48,11 @@ class factory\n* New a stdClass by passing simply arguments\n* Arguments will be filled in the order as being passed\n*\n- * @param mixed ...$arguments\n+ * @param string ...$argumen... | PHP | Apache License 2.0 | jerry-shaw/nervsys | set params for factory::new() strictly to string |
323,343 | 05.11.2019 11:04:46 | -28,800 | 5bf57bd303ab6efea5d06aa1dcb03a574eb5ccc9 | fix: last_sql function;modify bind_parms | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -126,7 +126,7 @@ class pdo_mysql extends pdo\nforeach ($values as $key => $value) {\n$this->runtime['value'][$key] = $bind_key = $this->rand_key($key);\n- $this->runtime['bind_value'][$bind_key] ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: last_sql function;modify bind_parms |
323,346 | 05.11.2019 11:34:30 | -28,800 | df01e2e8beea4b4872a08a20923d4ecede2a96c2 | rewrite output related functions (avoid showing key which is not needed) | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -160,7 +160,7 @@ final class error\n$unit_log->display($err_lv, $message, $context);\n//Exit on error\n- $stop_on_error && 0 < ($err_code & error_reporting()) && ns::stop();\n+ $stop_on... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rewrite output related functions (avoid showing key which is not needed) |
323,346 | 05.11.2019 11:35:00 | -28,800 | d2bfa7f48af446c94e63d465f3f108a4727cb242 | move ns stop logic to ext\core | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -23,6 +23,7 @@ namespace ext;\nuse core\\lib\\stc\\factory;\nuse core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\n+use core\\ns;\n/**\n* Class core\n@@ -31,6 +32,14 @@ use core\\lib\\std\\pool;\n*/\nclass c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move ns stop logic to ext\core |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.