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 | 18.04.2019 14:02:59 | -28,800 | 31bfa4a6ee148a40d8de515e0f7a93857e60a69f | add backtrace records to log system | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -123,11 +123,46 @@ class error extends system\n'Peak: ' . round(memory_get_peak_usage(true) / 1048576, 4) . 'MB',\n'Memory: ' . round(memory_get_usage(true) / 1048576, 4) . 'MB',\n'Dura... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add backtrace records to log system |
323,346 | 23.04.2019 10:17:41 | -28,800 | e6c3c1054de01cacaadd33b45ef325ee1277d97b | Improve partial match replace mode in cmd parser | [
{
"change_type": "MODIFY",
"old_path": "core/parser/cmd.php",
"new_path": "core/parser/cmd.php",
"diff": "@@ -77,32 +77,44 @@ class cmd extends system\n//Mapping CGI config\nforeach (parent::$cgi as $name => $item) {\nif (!empty($keys = array_keys($cmd, $name, true))) {\n- //Replace CMD\n+ //Full ma... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve partial match replace mode in cmd parser |
323,346 | 26.04.2019 12:00:58 | -28,800 | 0ec8ac4a067748acf89753bd4e1b9195f7f92244 | rename log::show to log::display | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -126,7 +126,8 @@ The words above are reserved by NervSys core. So that, they should be taken care\nnotice = on\ninfo = on\ndebug = on\n- show = on ; Output logs on screen\n+\n+ display = on ; Display logs on scr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename log::show to log::display |
323,343 | 26.04.2019 16:38:15 | -28,800 | 43b508bebe71600e56a2da59540d9b574a1d63ee | fix:typo error | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -418,7 +418,7 @@ $class = class_name::new(arguments, ...)->as('alias_name');\n* Save it under alias name with configurations:\n$class = class_name::new(arguments, ...)->config(array $settings)->as('alias_name');... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix:typo error |
323,346 | 29.04.2019 16:18:07 | -28,800 | 32f76cb08de5e54a3f58b71acba776c1336c4263 | add: enable "app_path" setting in "system.ini" to place all application codes | [
{
"change_type": "ADD",
"old_path": "app/app.directory",
"new_path": "app/app.directory",
"diff": ""
},
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -220,6 +220,11 @@ class operator extends factory\n{\n$k... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add: enable "app_path" setting in "system.ini" to place all application codes |
323,346 | 29.04.2019 16:52:49 | -28,800 | 2f85892194c2bbdaf38e6d771ff1c9e9de1b59b5 | add: trim input string params | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -137,7 +137,7 @@ class data\nis_array($input[$name]) || is_object($input[$name]) ? $data[] = (array)$input[$name] : $diff[] = $name;\nbreak;\ncase 'string':\n- is_string($input[$name]) || i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add: trim input string params |
323,346 | 30.04.2019 13:51:34 | -28,800 | c116549cee9d08e9c552247ed1b1cc8fa9fdb799 | change: make crypt image char count changable via config | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -29,15 +29,15 @@ class crypt_img extends crypt\nprotected $width = 120;\nprotected $height = 40;\n+ //Length (only works for \"num\" & \"word\")\n+ protected $length = 6;\n+\n//Font filename (sto... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change: make crypt image char count changable via config |
323,346 | 30.04.2019 13:53:57 | -28,800 | 8d1ee69a1df48a445c7b82a4c25771e31793a210 | fix: possiable property type fix | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -185,7 +185,7 @@ class crypt_img extends crypt\n{\n$result = [];\n- for ($i = 0; $i < $this->length; ++$i) {\n+ for ($i = 0; $i < (int)$this->length; ++$i) {\n$result['char'][] = (string)mt_rand(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: possiable property type fix |
323,346 | 30.04.2019 14:50:00 | -28,800 | b76f121978c304805030b7ce3b3603d384259390 | add: reponse HTTP 500 when encounter an error | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -168,7 +168,10 @@ class error extends system\nlog::display($level, $message, $context);\n//Stop on error\n- 'error' === $level && parent::stop();\n+ if ('error' === $level) {\n+ http_re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add: reponse HTTP 500 when encounter an error |
323,346 | 30.04.2019 15:10:28 | -28,800 | f2eedc0c15636d328df81e5363fbee595ee23e1e | fix: always response HTTP 500 when an error apeared | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -167,11 +167,11 @@ class error extends system\nlog::$level($message, $context);\nlog::display($level, $message, $context);\n- //Stop on error\n- if ('error' === $level) {\n+ //Set respo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: always response HTTP 500 when an error apeared |
323,346 | 01.05.2019 23:56:04 | -28,800 | 8140628bff6039ff76743dad31849ed491de75f0 | change: system calling stages from 4 to 5 | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -33,29 +33,37 @@ use core\\pool\\command;\nclass system extends command\n{\n/**\n- * INIT state (S1)\n- * Initialize system\n+ * ENV stage (S1)\n+ * Set environment\n*\n* Steps:\n* 1. Load \"system.i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change: system calling stages from 4 to 5 |
323,346 | 05.05.2019 20:53:33 | -28,800 | 3788b40dfa9cbf5279623755245b5152160c1b8e | fix: read cmd from url error when app_path was set | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -79,7 +79,7 @@ class input extends system\n}\nif (isset($_SERVER['PATH_INFO'])) {\n- parent::$data['cmd'] = $_SERVER['PATH_INFO'];\n+ parent::$data['cmd'] = substr($_SERVER['PATH_INFO'], ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: read cmd from url error when app_path was set |
323,346 | 05.05.2019 22:32:09 | -28,800 | edd68743ddbb2e3c76e1ae7aec5dba1cae7e70d1 | fix: LOAD section now support sub-folders under app_path | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -238,6 +238,7 @@ Always remember, do NOT delete any entry or section from \"system.ini\".\n[LOAD]\nThis section works for all.\nThis section holds \"/subfolder/\" startup initial functions.\n+ When \"app_path\" ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: LOAD section now support sub-folders under app_path |
323,346 | 05.05.2019 22:39:03 | -28,800 | 9a091dfde0c867a57eadf97215baafa974600be3 | fix: read cmd from URL error when invalid URL was input | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -78,7 +78,7 @@ class input extends system\nreturn;\n}\n- if (isset($_SERVER['PATH_INFO'])) {\n+ if (isset($_SERVER['PATH_INFO']) && false !== strpos($_SERVER['PATH_INFO'], '/', 1)) {\npar... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: read cmd from URL error when invalid URL was input |
323,346 | 05.05.2019 23:08:07 | -28,800 | b8d68dd47b0a8c395117b9c95081117fc70414b6 | fix: read cmd from url again | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -74,25 +74,31 @@ class input extends system\n*/\nprivate static function read_url_cmd(): void\n{\n+ //Check setting\nif (true !== parent::$sys['cmd_in_url']) {\nreturn;\n}\n- if (isset($_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix: read cmd from url again |
323,346 | 06.05.2019 22:19:10 | -28,800 | 17b0bae4c76e1e2bef3c7de921654996ee7eeeae | only set http response code to 500 when display log is set | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -164,13 +164,10 @@ class error extends system\n$context[] = 'Backtrace: ' . PHP_EOL . implode(PHP_EOL, $trace_list);\nunset($throwable, $exception, $backtrace, $last_node, $trace_list, ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | only set http response code to 500 when display log is set |
323,346 | 09.05.2019 11:12:18 | -28,800 | 0382346a4aedbcec931ebca930c4e4ee6669cb38 | always run LOAD preset functions even if target class not exist | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -62,12 +62,6 @@ class operator extends factory\n}\ntry {\n- //Check & load class\n- if (!class_exists($class, false) && !self::load_class($class)) {\n- //Class NOT exist\n- contin... | PHP | Apache License 2.0 | jerry-shaw/nervsys | always run LOAD preset functions even if target class not exist |
323,346 | 14.05.2019 10:51:54 | -28,800 | cbc15cb1d9f0d1f521dc7e9acf0e7186d6aede63 | improve doc extension for better display | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -22,33 +22,30 @@ namespace ext;\nuse core\\handler\\factory;\n+use core\\parser\\trustzone;\n+\nclass doc extends factory\n{\n- //Define excludes\n- public $exclude_func = [];\n+ //Define exclude paths\npubl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve doc extension for better display |
323,346 | 14.05.2019 11:12:15 | -28,800 | 80dcf43a6160a66f1b4e6f4a32a625998a86cfa6 | fix api name error on reading list | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -30,14 +30,14 @@ class doc extends factory\npublic $exclude_path = ['core', 'ext'];\n/**\n- * List API CMD\n+ * Shaw API CMD\n*\n* @param string $path\n*\n* @return array\n* @throws \\ReflectionException\n*/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix api name error on reading list |
323,346 | 14.05.2019 11:22:09 | -28,800 | 2ef5e6ed716c10cbd056bb9e09f1d931daeb0e03 | change PHP_EOL to "\n" in comment processing | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -133,7 +133,7 @@ class doc extends factory\n$comment_string = (string)$reflect_method->getDocComment();\n//Convert comment from string to array\n- $comment_array = '' !== $comment_string ? explode(PHP_EOL, $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change PHP_EOL to "\n" in comment processing |
323,346 | 14.05.2019 11:28:53 | -28,800 | aecf731eb4078a77361e8df9d37f7fd4f0feead7 | fix api list group overwrite | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -88,7 +88,7 @@ class doc extends factory\n$module = strstr(substr($name, strlen(parent::$sys['app_path'])), DIRECTORY_SEPARATOR, true);\n//Save method list\n- $api[$module] = $this->get_api_list($class, $met... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix api list group overwrite |
323,346 | 14.05.2019 11:36:55 | -28,800 | a25e4e87075b4e31a3ef286794e0ad962f3e0e66 | add file name as api list key | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -88,13 +88,15 @@ class doc extends factory\n$module = strstr(substr($name, strlen(parent::$sys['app_path'])), DIRECTORY_SEPARATOR, true);\n//Save method list\n- $api[$module][] = $this->get_api_list($class, ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add file name as api list key |
323,346 | 14.05.2019 11:59:24 | -28,800 | 11c074e6a29e27531a64ddff0e7b6d1a0946531f | fix value slash error under linux | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -188,7 +188,7 @@ class doc extends factory\n//Get class name (remove \"app_path\")\n$class = '' !== parent::$sys['app_path'] ? substr($class, strlen(parent::$sys['app_path']) + 1) : ltrim($class, '\\\\');\n-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix value slash error under linux |
323,346 | 14.05.2019 13:06:19 | -28,800 | 960351c1c68ac959b3c813f6e3fa20f50dab0ca8 | add more API properties on show_doc | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -137,8 +137,9 @@ class doc extends factory\n//Convert comment from string to array\n$comment_array = '' !== $comment_string ? explode(\"\\n\", $comment_string) : [];\n- //Find API name\n- $doc['name'] = $thi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more API properties on show_doc |
323,346 | 14.05.2019 13:19:34 | -28,800 | 0165ea713fbc2d00cf805d704ab49530976baee9 | support doc relative exclude path | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -62,12 +62,11 @@ class doc extends factory\ncontinue;\n}\n- //Get dirname\n- $dir = strstr($name, DIRECTORY_SEPARATOR, true);\n-\n- //Skip paths or files in exclude path and ROOT path\n- if (in_array($dir, $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support doc relative exclude path |
323,346 | 15.05.2019 09:54:57 | -28,800 | 6c9e786404301f929097a617171f02bc511bf755 | add auto call mode in system.ini | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -56,18 +56,24 @@ class operator extends factory\n//Get class & name\n$class = parent::build_name($name = array_shift($item_list));\n+ //Check auto call mode\n+ if (empty($item_lis... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add auto call mode in system.ini |
323,346 | 15.05.2019 18:17:34 | -28,800 | cce76d0c9d1f03778f02cc5e83994cce4bbfde46 | add more function to show doc list | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -22,33 +22,45 @@ namespace ext;\nuse core\\handler\\factory;\n-use core\\parser\\trustzone;\n-\nclass doc extends factory\n{\n//Define exclude paths\n- public $exclude_path = ['core', 'ext'];\n+ protected $e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more function to show doc list |
323,346 | 16.05.2019 12:07:07 | -28,800 | d5aee45c351ea039c7767b70e71446f07f1bb0d2 | remove child config function from crypt ext | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -33,25 +33,6 @@ class crypt extends factory\n//Keygen class\nprotected $keygen = '\\\\ext\\\\keygen';\n- /**\n- * Config class settings\n- *\n- * @param array $setting\n- *\n- * @return $this\n- */\n- pu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove child config function from crypt ext |
323,346 | 16.05.2019 12:07:48 | -28,800 | 450b5393f6c4f29aacd8fd91eb12a0c9ac38c0df | update child classes extends from redis | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_cache.php",
"new_path": "ext/redis_cache.php",
"diff": "@@ -36,7 +36,11 @@ class redis_cache extends redis\n*/\npublic function connect(): object\n{\n+ //Connect if NOT connected\n+ if (is_null($this->connect)) {\n$this->connect = parent::connect();\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update child classes extends from redis |
323,346 | 17.05.2019 17:09:39 | -28,800 | 52358295a38df42df67f4a36bacd242c768d4e2d | param name changed | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -175,27 +175,27 @@ class doc extends factory\n/**\n* Build DOC\n*\n- * @param string $name\n+ * @param string $api\n*\n* @return array\n* @throws \\ReflectionException\n*/\n- public function get_doc(string $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | param name changed |
323,346 | 18.05.2019 10:19:45 | -28,800 | a45d6f70334e8832b8d284498131c6a6a61759ee | modify: api data structure output from doc extension | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -53,8 +53,8 @@ class doc extends factory\n*/\npublic function get_struct(): array\n{\n+ $struct = [];\n$path = ROOT;\n- $list = $struct = [];\n//Refill path with app_path\nif ('' !== parent::$sys['app_path']... | PHP | Apache License 2.0 | jerry-shaw/nervsys | modify: api data structure output from doc extension |
323,346 | 18.05.2019 15:47:56 | -28,800 | 513f2769075fa9fb182835aa61d27d7db7a9d4fa | add: mixed code output / modify: function names | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -22,6 +22,18 @@ namespace ext;\nclass crypt_img extends crypt\n{\n+ //Predefined types\n+ const TYPE_MIX = 'mix';\n+ const TYPE_NUM = 'num';\n+ const TYPE_WORD = 'word';\n+ const TYPE_CALC = 'cal... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add: mixed code output / modify: function names |
323,346 | 18.05.2019 15:48:38 | -28,800 | f3921d5855722132e292968ce47c1eafc34b19da | modify: error pool using three keys instead of fully overwrite | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -65,8 +65,16 @@ class errno\n*/\npublic static function set(int $code, int $errno = 0): void\n{\n- system::$error = self::get($code, $errno);\n- unset($code, $errno);\n+ //Get error data\n+ $error = self... | PHP | Apache License 2.0 | jerry-shaw/nervsys | modify: error pool using three keys instead of fully overwrite |
323,346 | 18.05.2019 15:49:16 | -28,800 | 562db6c4be36beeba84818286379f9b32fa4a6d9 | add: last_sql and last_affect functions | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -21,6 +21,12 @@ namespace ext;\nclass pdo_mysql extends pdo\n{\n+ //Last SQL\n+ private $sql = '';\n+\n+ //Affected rows\n+ private $rows = 0;\n+\n//Runtime params\nprivate $params = [];\n@@ -314... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add: last_sql and last_affect functions |
323,346 | 25.05.2019 11:24:37 | -28,800 | 4346f0e35505f4a6b3bf279f9e51abb52b083e4a | remove $tz from redis_queue / change queue cmd from __CLASS__ to $this | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -40,9 +40,6 @@ class redis_queue extends redis\nconst PREFIX_LIST = 'RQ:list:';\nconst PREFIX_WORKER = 'RQ:worker:';\n- //Expose \"root\" & \"child\"\n- public static $tz = 'root,child';\n-\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove $tz from redis_queue / change queue cmd from __CLASS__ to $this |
323,346 | 25.05.2019 13:45:10 | -28,800 | d011a36525b9832a1bce1715fafb126d872c6eb9 | Improve class name building logic | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -70,7 +70,7 @@ class factory extends system\n*/\npublic static function obtain(string $class, array $param = []): object\n{\n- return self::get_stock(__FUNCTION__, self::build_name(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve class name building logic |
323,346 | 25.05.2019 15:09:36 | -28,800 | 658e2a10d2ac7aa854d18ec1fa8244e24ad75a1a | fix failed to call child process | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -96,7 +96,7 @@ class redis_queue extends redis\n//Build group key & queue data\n$list = self::PREFIX_LIST . ('' === $group ? 'main' : $group);\n- $queue = json_encode($data);\n+ $queue = json... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix failed to call child process |
323,346 | 25.05.2019 16:59:54 | -28,800 | 53f7c7e927aa7987878565428b0b94e8849f37e8 | function moved from system to factory | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -110,17 +110,34 @@ class factory extends system\n}\n/**\n- * Build class name\n+ * Get class name based on app_path\n*\n* @param string $class\n*\n* @return string\n*/\n- public sta... | PHP | Apache License 2.0 | jerry-shaw/nervsys | function moved from system to factory |
323,346 | 27.05.2019 11:30:25 | -28,800 | 2f00d145e24cb1af089cde121fb8c917d19613de | enable root path calling support | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -118,7 +118,19 @@ class factory extends system\n*/\npublic static function get_app_class(string $class): string\n{\n- return '\\\\' . trim(strtr(parent::$sys['app_path'] . $class, '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | enable root path calling support |
323,346 | 27.05.2019 15:03:26 | -28,800 | 6d2c1bf0e25c5409334d0b92b2de4f82073a10c7 | fix app_path compatibility in doc ext | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -91,7 +91,7 @@ class doc extends factory\n$class = substr($name, 0, -4);\n//Reflect class\n- $class_reflect = parent::reflect_class(parent::get_app_class($class));\n+ $class_reflect = parent::reflect_class(p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix app_path compatibility in doc ext |
323,346 | 27.05.2019 17:49:37 | -28,800 | 6da8cf3cefdfba88ec25aaaf9525ce9bbe486f5e | add simple plus math code | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -26,10 +26,11 @@ class crypt_img extends crypt\nconst TYPE_MIX = 'mix';\nconst TYPE_NUM = 'num';\nconst TYPE_WORD = 'word';\n+ const TYPE_PLUS = 'plus';\nconst TYPE_CALC = 'calc';\n//Support type... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add simple plus math code |
323,346 | 30.05.2019 10:56:53 | -28,800 | c17911d95572cc9b614b453eb0fcc283230ad80c | fix math code on plus calc | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -260,7 +260,7 @@ class crypt_img extends crypt\n$number = [mt_rand(0, 9), mt_rand(10, 99)];\n//Plus tow numbers\n- $result['code'] = $number[0] + $number[1];\n+ $result['code'] = (string)($number... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix math code on plus calc |
323,346 | 31.05.2019 09:18:54 | -28,800 | eb34fb6720a20529383b45327c78783bc58632d9 | Add Credits for README_zh.md | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "Stable version: 7.2.20\nExtension version: 2.0\n+[Chinese Documents](https://github.com/NervSys/NervSys/blob/master/README_zh.md)\n[Unit Test Suites](https://github.com/NervSys/tests)\nReport to us if you encounter... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add Credits for README_zh.md |
323,346 | 03.06.2019 09:38:35 | -28,800 | c75044e51fe57a088bef1f155da0d5effaa0f36c | change call class names (PDO, Redis, Memcached) | [
{
"change_type": "MODIFY",
"old_path": "ext/memcached.php",
"new_path": "ext/memcached.php",
"diff": "@@ -45,7 +45,7 @@ class memcached extends factory\nreturn self::$pool[$key];\n}\n- $memcached = parent::obtain('Memcached');\n+ $memcached = parent::obtain(\\Memcached::class);\n$memcached->addServe... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change call class names (PDO, Redis, Memcached) |
323,346 | 04.06.2019 17:15:04 | -28,800 | 3a9ff6b7e85b352bc45cb09dd70442713f8c2159 | always reset log file write permission | [
{
"change_type": "MODIFY",
"old_path": "core/helper/log.php",
"new_path": "core/helper/log.php",
"diff": "@@ -155,7 +155,11 @@ class log extends system\nstatic $file = [];\nif (!isset($file[$key])) {\n+ //Open file handler\n$file[$key] = fopen($log, 'ab');\n+\n+ //Set permissions\n+ chmod($log, '077... | PHP | Apache License 2.0 | jerry-shaw/nervsys | always reset log file write permission |
323,346 | 04.06.2019 18:01:49 | -28,800 | 4cf3b1d230ba7771a0cc734c3907c8344f25ca15 | reset all file permission to 0666 | [
{
"change_type": "MODIFY",
"old_path": "core/helper/log.php",
"new_path": "core/helper/log.php",
"diff": "@@ -159,7 +159,7 @@ class log extends system\n$file[$key] = fopen($log, 'ab');\n//Set permissions\n- chmod($log, '0777');\n+ chmod($log, 0666);\n}\nfwrite($file[$key], self::format($level, $mess... | PHP | Apache License 2.0 | jerry-shaw/nervsys | reset all file permission to 0666 |
323,346 | 04.06.2019 18:56:27 | -28,800 | 3b4607f0c2835cbb2586c75c3ccd58cd3892debe | fix mkdir permission to execute (for file writing, dir creating) | [
{
"change_type": "MODIFY",
"old_path": "ext/file.php",
"new_path": "ext/file.php",
"diff": "@@ -50,7 +50,7 @@ class file\n*\n* @return string\n*/\n- public static function get_path(string $path, string $root = ROOT, int $mode = 0666): string\n+ public static function get_path(string $path, string $r... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix mkdir permission to execute (for file writing, dir creating) |
323,346 | 05.06.2019 10:22:46 | -28,800 | 00e053f49a640b9c6602ffd4f1ab9abaaf4e32ac | change ext/pdo connect behavior / add get_pdo as needed | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "@@ -35,33 +35,55 @@ class pdo extends factory\nprotected $persist = true;\nprotected $charset = 'utf8mb4';\n+ /** @var \\PDO $instance */\n+ protected $instance = null;\n+\n+ //Connection params\n+ private $dsn... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change ext/pdo connect behavior / add get_pdo as needed |
323,346 | 05.06.2019 11:43:48 | -28,800 | d22ec70494bd9f343558411c4e52cdffb0bd1e10 | change ext/redis connect behavior / add get_redis as needed | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -34,22 +34,23 @@ class redis extends factory\nprotected $persist = true;\nprotected $persist_id = null;\n- //Connection pool\n+ /** @var \\Redis $instance */\n+ protected $instance = null;\n+\n+ //Instan... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change ext/redis connect behavior / add get_redis as needed |
323,346 | 05.06.2019 16:20:09 | -28,800 | 533e682565e347d5ce6f968cbad0d02c919e6b1b | revert pdo bind key suffix back to 8 bytes | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -465,7 +465,7 @@ class pdo_mysql extends pdo\n*/\nprivate function rand_key(string $key): string\n{\n- return ':' . strtr($key, '.', '_') . '_' . substr(hash('crc32b', uniqid(mt_rand(), true)), 0... | PHP | Apache License 2.0 | jerry-shaw/nervsys | revert pdo bind key suffix back to 8 bytes |
323,346 | 06.06.2019 14:53:36 | -28,800 | 2fb8558097a0ae931f8ff620b835e612eb80a590 | fix type error (last affected) | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -405,11 +405,11 @@ class pdo_mysql extends pdo\n}\n/**\n- * Get last affected rows\n+ * Get the number of rows affected by the last DELETE, INSERT, or UPDATE statement\n*\n- * @return string\n+ *... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix type error (last affected) |
323,346 | 12.06.2019 09:38:59 | -28,800 | ebeece39bfaefdfc5accc388a9b5fe363d5ed239 | add JetBrains in Supporters | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -599,6 +599,11 @@ Normally, when php encounters an error, or an exception, it'll stop anyway. But\n[xushuhui](https://github.com/xushuhui)\n+## Supporters\n+\n+Thanks to [JetBrains](https://www.jetbrains.com/) f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add JetBrains in Supporters |
323,346 | 15.06.2019 15:45:05 | -28,800 | 7870efadca1538cb9846a5c5dfa4b2b582da7fab | change pdo_mysql properties from private to protected | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -22,13 +22,13 @@ namespace ext;\nclass pdo_mysql extends pdo\n{\n//Last SQL\n- private $sql = '';\n+ protected $sql = '';\n//Affected rows\n- private $rows = 0;\n+ protected $rows = 0;\n//Runtime... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change pdo_mysql properties from private to protected |
323,346 | 15.06.2019 17:12:47 | -28,800 | fff88bf9444d9f3367498004368d9942d737a67c | add root path support to load ini files and po files | [
{
"change_type": "MODIFY",
"old_path": "ext/conf.php",
"new_path": "ext/conf.php",
"diff": "@@ -42,7 +42,9 @@ class conf\n*/\npublic static function load(string $dir, string $name): void\n{\n- $file = ROOT . $dir . DIRECTORY_SEPARATOR . self::DIR . DIRECTORY_SEPARATOR . $name . '.ini';\n+ $dir = '/'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add root path support to load ini files and po files |
323,346 | 17.06.2019 10:07:03 | -28,800 | 5998da9238a6c49c8e619119ff776bbf00c8b51b | add table prefix property into ext\pdo_mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -27,8 +27,11 @@ class pdo_mysql extends pdo\n//Affected rows\nprotected $rows = 0;\n- //Runtime params\n- protected $params = [];\n+ //Table prefix\n+ protected $prefix = '';\n+\n+ //Runtime data... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add table prefix property into ext\pdo_mysql |
323,346 | 17.06.2019 11:30:10 | -28,800 | 1429c4402a244955a259bcfed709cfd146ba731d | using array_replace to keep loaded conf and error content | [
{
"change_type": "MODIFY",
"old_path": "ext/conf.php",
"new_path": "ext/conf.php",
"diff": "@@ -47,7 +47,7 @@ class conf\n$file = ROOT . $dir . self::DIR . DIRECTORY_SEPARATOR . $name . '.ini';\nif (is_array($data = parse_ini_file($file, true, INI_SCANNER_TYPED))) {\n- self::$pool = &$data;\n+ self:... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using array_replace to keep loaded conf and error content |
323,346 | 17.06.2019 22:26:40 | -28,800 | e6221a4b999feb429feb101b4e4fdb0da9a563ab | fix conf::set issue | [
{
"change_type": "MODIFY",
"old_path": "ext/conf.php",
"new_path": "ext/conf.php",
"diff": "@@ -75,7 +75,7 @@ class conf\n{\nself::$pool[$section] = isset(self::$pool[$section])\n? array_replace(self::$pool[$section], $config)\n- : self::$pool[$section];\n+ : $config;\nunset($section, $config);\n}\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix conf::set issue |
323,346 | 17.06.2019 22:55:21 | -28,800 | d3db2fb9c305db98e942aa5a1e4a278e165f1ff5 | using JSON predefined constants instead of mask value | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -80,7 +80,12 @@ class output extends system\n*/\nprivate static function format_json(): string\n{\n- return json_encode(parent::$result, self::$pretty ? 4034 : 3906);\n+ return json_enc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using JSON predefined constants instead of mask value |
323,346 | 19.06.2019 10:14:38 | -28,800 | 4897b403f4d57ae449e14aa6ad059362ff889134 | remove JSON ZERO_FRACTION option | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -83,8 +83,8 @@ class output extends system\nreturn json_encode(\nparent::$result,\nself::$pretty\n- ? JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS |... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove JSON ZERO_FRACTION option |
323,346 | 19.06.2019 11:18:17 | -28,800 | 97dbb3f1ec223f35efa22bb3c80ab14fd28b7920 | add param "error_exit" to error::exception_handler | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -107,9 +107,10 @@ class error extends system\n/**\n* Exception handler\n*\n- * @param $throwable\n+ * @param \\Throwable $throwable\n+ * @param bool $error_exit\n*/\n- public static fun... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add param "error_exit" to error::exception_handler |
323,346 | 27.06.2019 09:21:10 | -28,800 | c15b212ed51bc4c0cfc99fbf3b676ab54c03fa87 | remove unlink from ext\upload due to move_uploaded_file may cache file stat | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -183,6 +183,7 @@ class upload extends factory\n//Build upload result\n$result = $this->get_error(UPLOAD_ERR_OK);\n+ //Collect upload data\n$result['url'] = strtr($url_path, '\\\\', '/');\n$result['name... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove unlink from ext\upload due to move_uploaded_file may cache file stat |
323,346 | 28.06.2019 10:05:48 | -28,800 | 6b1c1ac155825cc7c5abb1e534e79e53728fc1e2 | fix LOAD module failed when set start with "/" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "namespace core\\handler;\nuse core\\parser\\data;\n-\nuse core\\parser\\trustzone;\nclass operator extends factory\n@@ -63,7 +62,8 @@ class operator extends factory\n//Get module nam... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix LOAD module failed when set start with "/" |
323,346 | 28.06.2019 10:27:15 | -28,800 | 93aab4eab6334ff66da8b5359d41bee2fcffe124 | fix get_app_class adding app_path twice | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -118,11 +118,11 @@ class factory extends system\n*/\npublic static function get_app_class(string $class): string\n{\n- //Get first char\n- $char = substr($class, 0, 1);\n+ //Format ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix get_app_class adding app_path twice |
323,346 | 01.07.2019 22:00:26 | -28,800 | 01bedb2e47f35e140fec0745fac37a650c55fa67 | using base64 url safe data for all encrypt fuctions | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -88,7 +88,7 @@ class crypt extends factory\n{\n$keys = $this->aes_keys($key);\n- $string = (string)openssl_encrypt($string, $this->method, $keys['key'], OPENSSL_ZERO_PADDING, $keys['iv']);\n+ $string = $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using base64 url safe data for all encrypt fuctions |
323,346 | 01.07.2019 22:01:42 | -28,800 | c5e6567fca3cd1cd6f65e80df966f8ae5149127a | remove strict mode on all base64_decode callings | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -48,7 +48,7 @@ class data\n{\nif (0 === strpos($value, self::BASE64)) {\n$value = substr($value, strlen(self::BASE64));\n- $value = base64_decode($value, true);\n+ $value = base64_decode($v... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove strict mode on all base64_decode callings |
323,346 | 01.07.2019 22:38:58 | -28,800 | 9ccd5c21c13038e061d84c81bd3b60adcddc9b19 | change method property as needed | [
{
"change_type": "MODIFY",
"old_path": "ext/lang.php",
"new_path": "ext/lang.php",
"diff": "@@ -61,7 +61,7 @@ class lang\n*\n* @return string\n*/\n- private static function detect(): string\n+ public static function detect(): string\n{\nstatic $lang = '';\n"
},
{
"change_type": "MODIFY",
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change method property as needed |
323,346 | 02.07.2019 10:20:16 | -28,800 | 7ae3757c345d4675dfbfc9658479b55da554ce6f | update to version 7.3.0 / core files and structure are now movable | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable version: 7.2.20\n+Stable version: 7.3.0\nExtension version: 2.0\n[Chinese Documents](https://github.com/NervSys/NervSys/blob/master/README_zh.md)\n[Unit Test Suites](https://github.com/NervSys/te... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update to version 7.3.0 / core files and structure are now movable |
323,346 | 02.07.2019 10:20:41 | -28,800 | ffacc11309faa407f4e556a3cab5d939e82602e9 | set ext\mpc logs to SYSROOT | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -164,7 +164,7 @@ class mpc extends factory\n[\n['pipe', 'r'],\n['pipe', 'w'],\n- ['file', ROOT . 'logs' . DIRECTORY_SEPARATOR . 'error_mpc_' . date('Y-m-d') . '.log', 'a']\n+ ['file', SYSROOT . 'logs' . DIRE... | PHP | Apache License 2.0 | jerry-shaw/nervsys | set ext\mpc logs to SYSROOT |
323,346 | 02.07.2019 12:01:23 | -28,800 | bbf9a8405b0b282e37aafb40adcb54bb2f125796 | fix README.md mistakes on "ROOT" path setting | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -87,12 +87,14 @@ PHP 7.2+ and above. Any kind of web server or running under CLI mode.\n## About api.php\n\"api.php\" is the default entry script of Nervsys. But it is only an entry of a site, and can be placed ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix README.md mistakes on "ROOT" path setting |
323,346 | 03.07.2019 14:10:58 | -28,800 | 912d437644562be83b9ae355a0b7d225f5707fd3 | change version constant name from VER to SYSVER | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -26,7 +26,7 @@ if (version_compare(PHP_VERSION, '7.2.0', '<')) {\n}\n//Define NervSys version\n-define('VER', '7.3.0');\n+define('SYSVER', '7.3.0');\n//Define system root path\ndefine('SYSROOT', subs... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change version constant name from VER to SYSVER |
323,346 | 03.07.2019 15:02:14 | -28,800 | 4113435350f72799d88b4a3e57cafa451b40df0f | add ENTRY constant definition | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -24,6 +24,9 @@ declare(strict_types = 1);\n//Define root path\ndefine('ROOT', __DIR__ . DIRECTORY_SEPARATOR);\n+//Define entry path\n+define('ENTRY', __FILE__);\n+\n//Load system script\nrequire __DIR__ . '/core/sys... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add ENTRY constant definition |
323,346 | 03.07.2019 16:01:28 | -28,800 | 6cb6f5fd75ca800c2309401f5540378c234f2b70 | rename constant "ENTRY" to "ENTRY_SCRIPT" | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -25,7 +25,7 @@ declare(strict_types = 1);\ndefine('ROOT', __DIR__ . DIRECTORY_SEPARATOR);\n//Define entry path\n-define('ENTRY', __FILE__);\n+define('ENTRY_SCRIPT', __FILE__);\n//Load system script\nrequire __DIR__ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename constant "ENTRY" to "ENTRY_SCRIPT" |
323,346 | 03.07.2019 16:03:45 | -28,800 | 04d85f424a91b214a3871bfad93e20ec17879b01 | make changes to fix "ENTRY_SCRIPT" constant definition | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -100,7 +100,7 @@ class mpc extends factory\n$this->jobs = [];\n//Build basic command\n- $this->php_cmd = $this->php_exe . ' \"' . ROOT . 'api.php\"';\n+ $this->php_cmd = $this->php_exe . ' \"' . ENTRY_SCRIPT... | PHP | Apache License 2.0 | jerry-shaw/nervsys | make changes to fix "ENTRY_SCRIPT" constant definition |
323,346 | 05.07.2019 21:42:50 | -28,800 | 080426b1480b0c6e5026922e597476ca9810e591 | using fetch_style instead of fetch_col to support more compound fetch options | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -322,39 +322,43 @@ class pdo_mysql extends pdo\n* Query SQL and return fetched data\n*\n* @param string $sql\n- * @param bool $fetch_col\n+ * @param int $fetch_style\n* @param int $col_no\n*\n* @... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using fetch_style instead of fetch_col to support more compound fetch options |
323,346 | 06.07.2019 12:36:44 | -28,800 | 310758154171467c3c2fd692098d5942356bf1da | pdo_mysql: function property changed for better extended using | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -31,7 +31,7 @@ class pdo_mysql extends pdo\nprotected $prefix = '';\n//Runtime data\n- private $runtime = [];\n+ protected $runtime = [];\n/**\n* Insert into table\n@@ -482,7 +482,7 @@ class pdo_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | pdo_mysql: function property changed for better extended using |
323,346 | 06.07.2019 22:33:37 | -28,800 | 4b7cb42f52d47cc6d4f44c5b0231d741ad8e77bf | improve getting client IP function | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -270,42 +270,34 @@ class system\n}\n/**\n- * Get IP\n- *\n- * @param bool $allow_proxy\n+ * Get client IP\n*\n* @return string\n*/\n- public static function get_ip(bool $allow_proxy = false): string\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve getting client IP function |
323,346 | 07.07.2019 12:14:45 | -28,800 | 1184db8a77a4bce90f983ac2579cce73dd1e4d0a | fix REMOTE_ADDR not exists when calling via CLI | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -278,7 +278,7 @@ class system\n{\n//Direct request\nif (!isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n- return $_SERVER['REMOTE_ADDR'];\n+ return $_SERVER['REMOTE_ADDR'] ?? '';\n}\n//Forwarded request... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix REMOTE_ADDR not exists when calling via CLI |
323,346 | 10.07.2019 16:15:26 | -28,800 | 7d696596f2d1ed4e4173d24de8e35a5e8bdc4eb5 | add custom error message param | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -64,11 +64,12 @@ class errno\n*\n* @param int $code\n* @param int $errno\n+ * @param string $message\n*/\n- public static function set(int $code, int $errno = 0): void\n+ public static function set(int $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add custom error message param |
323,346 | 10.07.2019 19:10:24 | -28,800 | f4c59f3b5713b5c9e1855286017a11f2566b6899 | modify output structure when error data is set | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -43,14 +43,26 @@ class output extends system\nself::$pretty = true;\n}\n- //Reduce array result\n- if (1 === count(parent::$result)) {\n- parent::$result = current(parent::$result);\n- ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | modify output structure when error data is set |
323,346 | 12.07.2019 14:18:37 | -28,800 | 7ff6cc42f8874ce5db033e3263f052b863d33354 | improve language related error message output | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -92,15 +92,13 @@ class errno\npublic static function get(int $code, int $errno = 0, string $message = ''): array\n{\nif ('' === $message) {\n- $message = isset(self::$pool[$code])\n- ? (self::$lang ? get... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve language related error message output |
323,346 | 15.07.2019 21:58:23 | -28,800 | fb8713cdbe8cfdf9a204b5378c3491fd30842a1c | fix build multiple cmd list under CLI mode | [
{
"change_type": "MODIFY",
"old_path": "core/parser/cmd.php",
"new_path": "core/parser/cmd.php",
"diff": "@@ -139,7 +139,7 @@ class cmd extends system\n}\n//Build CMD\n- $key = -1;\n+ $key = 0;\n$order = [];\nforeach ($cmd as $item) {\n@@ -160,6 +160,9 @@ class cmd extends system\nif (!empty(parent:... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix build multiple cmd list under CLI mode |
323,346 | 15.07.2019 22:36:55 | -28,800 | 9a5c32fca687cbe04f4f708dc6e25715ed5a0dcd | add "cgi_list" and "cli_list" to store full cmd strings | [
{
"change_type": "MODIFY",
"old_path": "core/parser/cmd.php",
"new_path": "core/parser/cmd.php",
"diff": "@@ -52,17 +52,23 @@ class cmd extends system\n{\n$key = -1;\n$list = [];\n+ $class = '';\nforeach ($cmd as $item) {\nif (false !== strpos($item, '/') || false !== strpos($item, '\\\\')) {\n+ //G... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "cgi_list" and "cli_list" to store full cmd strings |
323,346 | 16.07.2019 11:03:23 | -28,800 | 1b85965e640c335c6277e0564ad8fe6b6af4a434 | change trim actions | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -167,7 +167,7 @@ class system\n//Refill app_path\nif ('' !== self::$sys['app_path']) {\n- self::$sys['app_path'] = trim(self::$sys['app_path'], \" /\\\\\\t\\n\\r\\0\\x0B\") . '/';\n+ self::$sys['app_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change trim actions |
323,346 | 20.07.2019 11:01:44 | -28,800 | 10eb61356b560056df30f921ef6878378d5ace30 | fix dependency parser in TrustZone (string/array compatible) | [
{
"change_type": "MODIFY",
"old_path": "core/parser/trustzone.php",
"new_path": "core/parser/trustzone.php",
"diff": "@@ -87,19 +87,16 @@ class trustzone extends factory\n*/\npublic static function verify(string $class, string $method): void\n{\n- //Get param value\n- $value = is_string(self::$recor... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix dependency parser in TrustZone (string/array compatible) |
323,346 | 22.07.2019 22:20:08 | -28,800 | 8e0ff80c4f1e773439034c07bdd576641da78042 | add __construct to accept keygen class instead of configurations | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -31,7 +31,18 @@ class crypt extends factory\nprotected $method = 'AES-256-CTR';\n//Keygen class\n- protected $keygen = '\\\\ext\\\\keygen';\n+ protected $keygen = keygen::class;\n+\n+ /**\n+ * crypt cons... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add __construct to accept keygen class instead of configurations |
323,346 | 04.08.2019 16:06:35 | -28,800 | 7f19ec5d48b52b5124d6b9414245be7bae713648 | set redis read timeout to -1 to avoid lossing connection | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -48,6 +48,7 @@ class redis extends factory\n*/\npublic function connect(): object\n{\n+ //Build instance key\n$key = $this->build_key();\nif (!isset(self::$pool[$key])) {\n@@ -74,7 +75,10 @@ class redis ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | set redis read timeout to -1 to avoid lossing connection |
323,346 | 16.08.2019 11:45:04 | -28,800 | 3e2638c71f176a1162c7dfa8b891e2e26480713f | function name change / variable name change | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -68,13 +68,13 @@ class mpc extends factory\n/**\n* Commit jobs\n*\n- * @param int $runs\n- * @param bool $wait\n+ * @param bool $wait_ret\n+ * @param int $max_fork\n*\n* @return array\n* @throws \\Exception\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | function name change / variable name change |
323,346 | 18.08.2019 10:17:11 | -28,800 | d76d11cb26219643a2a6bd1f92dd4c1b6a121b72 | add / support custom app settings to override system.ini | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable version: 7.3.0\n+Stable version: 7.3.2\nExtension version: 2.0\n[Chinese Documents](https://github.com/NervSys/NervSys/blob/master/README_zh.md)\n[Unit Test Suites](https://github.com/NervSys/tes... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add / support custom app settings to override system.ini |
323,346 | 18.08.2019 17:04:21 | -28,800 | cd04d444f0425b8b3556f6f2069ad6186148ab77 | fix issues when conf sections not set in rewrite file | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -148,6 +148,7 @@ class system\nself::$$key = $val;\n}\n}\n+\nunset($conf, $app, $key, $val);\n}\n@@ -349,7 +350,7 @@ class system\n$conf = parse_ini_file($conf_file, true, INI_SCANNER_TYPED);\n//Set ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix issues when conf sections not set in rewrite file |
323,346 | 19.08.2019 20:20:50 | -28,800 | 562e39e4160689a780494f6eb4794ba3889dc49a | fix / settings will be missing when change single value in app.ini | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -137,7 +137,7 @@ class system\n//Load app setting\nif (is_file($app = ROOT . $conf['SYS']['app_path'] . 'app.ini')) {\n- $conf = array_replace($conf, self::parse_conf($app));\n+ $conf = array_replace... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix / settings will be missing when change single value in app.ini |
323,346 | 23.08.2019 13:01:57 | -28,800 | 6824cec6bb806ee138653a6a003a691576658ce0 | add param "error_code" to customize error log level, set default level from "info" to "notice" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -108,15 +108,16 @@ class error extends system\n* Exception handler\n*\n* @param \\Throwable $throwable\n+ * @param int $error_code\n* @param bool $error_exit\n*/\n- public static functi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add param "error_code" to customize error log level, set default level from "info" to "notice" |
323,346 | 23.08.2019 13:05:24 | -28,800 | 780627edb02f51e3d6651bc8634f5108357399cd | using original throwable exception instead of throwing a new one | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -419,7 +419,7 @@ class system\n//Execute dependency\noperator::exec_dep($list);\n} catch (\\Throwable $throwable) {\n- error::exception_handler(new \\Exception($throwable->getMessage(), E_USER_ERROR)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using original throwable exception instead of throwing a new one |
323,346 | 23.08.2019 18:15:10 | -28,800 | 55c1ad26352de2793a982b6de6911e4adc361926 | add support for ext\doc to parse "*" in tz | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -300,15 +300,29 @@ class doc extends factory\n//Rebuild TrustZone\nif (is_string($trustzone)) {\n- $trustzone = false !== strpos($trustzone, ',') ? explode(',', $trustzone) : [$trustzone];\n+ if ('*' === $tr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add support for ext\doc to parse "*" in tz |
323,346 | 28.08.2019 14:07:53 | -28,800 | 6447177f08b2dde44584a75984a530a76ee34e29 | add two definitions for JSON output format | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -130,7 +130,7 @@ class error extends system\n'Memory: ' . round(memory_get_usage(true) / 1048576, 4) . 'MB',\n'Duration: ' . round((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) * 1... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add two definitions for JSON output format |
323,346 | 28.08.2019 19:17:50 | -28,800 | 3fc9b673a562f38de68bab707ab781b7851290bc | support multi-queue by HOSTNAME instead of a "master" when running on multiple servers | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -184,7 +184,7 @@ class redis_queue extends redis\n}\n//Build master process key\n- $master_key = self::PREFIX_WORKER . 'master';\n+ $master_key = self::PREFIX_WORKER . ($_SERVER['HOSTNAME'] ?... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support multi-queue by HOSTNAME instead of a "master" when running on multiple servers |
323,346 | 29.08.2019 00:39:11 | -28,800 | fc6880847d9a19f9a70d2ddd150c0ca484c80d87 | fix child process calling logic when running on multiple servers | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -31,13 +31,13 @@ class redis_queue extends redis\nconst WAIT_SCAN = 60;\n//Queue keys\n- const KEY_FAILED = 'RQ:fail';\n- const KEY_WATCH_LIST = 'RQ:watch:list';\n- const KEY_WATCH_WORKER = '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix child process calling logic when running on multiple servers |
323,346 | 29.08.2019 18:41:31 | -28,800 | e7f0abde5fbb8d85da7b96510efaef5f109d982e | add set_table method to define table name in extends classes | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -463,6 +463,18 @@ class pdo_mysql extends pdo\nreturn $this->instance->rollBack();\n}\n+ /**\n+ * Build random bind key\n+ *\n+ * @param string $key\n+ *\n+ * @return string\n+ */\n+ protected fu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add set_table method to define table name in extends classes |
323,346 | 29.08.2019 19:15:01 | -28,800 | d74ad066d1dd2097ec24fa42a6b6fec2a45e6a40 | fix missing runtime value "table" | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -509,18 +509,20 @@ class pdo_mysql extends pdo\n$this->runtime['action'] = &$action;\n//Set table\n- if (!isset($this->runtime['table']) && '' === $table) {\n+ if (!isset($this->runtime['table'])... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix missing runtime value "table" |
323,346 | 02.09.2019 22:01:41 | -28,800 | cd4379c62150fc358084422c9c6d7bd1d5386e52 | add delay job support for queue | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -26,6 +26,11 @@ use core\\handler\\platform;\nclass redis_queue extends redis\n{\n+ //Queue type\n+ const TYPE_REALTIME = 'realtime';\n+ const TYPE_UNIQUE = 'unique';\n+ const TYPE_DELAY = 'd... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add delay job support for queue |
323,346 | 02.09.2019 22:22:37 | -28,800 | ac072b056b45fd5e5f2120d029b438e6943d8d1f | fix zset error in delay job add | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -375,12 +375,12 @@ class redis_queue extends redis\nprivate function add_delay(string $group, string $data, int $time): int\n{\n//Set delay time\n- $this->instance->setnx(self::KEY_DELAY_TIME... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix zset error in delay job add |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.