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 | 01.11.2018 12:13:25 | -28,800 | 3bb2d04fb65a9e78f6354a91e8d8b1983aeef16f | improve mysql "incr" logic | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -134,25 +134,17 @@ class pdo_mysql extends pdo\n* Set update increase values\n* Using negative number for decrement\n*\n- * @param array $value\n- * @param bool $append\n+ * @param array $values\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve mysql "incr" logic |
323,346 | 01.11.2018 22:38:15 | -28,800 | 68f85f7cfd693ffa3592a667cb1826cdd61f9c27 | fix calling "error" class due to missing namespace in "trustzone" | [
{
"change_type": "MODIFY",
"old_path": "core/parser/trustzone.php",
"new_path": "core/parser/trustzone.php",
"diff": "namespace core\\parser;\n+use core\\handler\\error;\nuse core\\handler\\factory;\nclass trustzone extends factory\n@@ -54,6 +55,7 @@ class trustzone extends factory\nthrow new \\Exce... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix calling "error" class due to missing namespace in "trustzone" |
323,346 | 02.11.2018 11:58:48 | -28,800 | a26cf433cbed286698ab99a5c00897417070dbee | improve Exception logic | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -31,21 +31,19 @@ class operator extends factory\npublic static function init(): void\n{\ntry {\n- //Build dependency\n- if (!parent::build_dep(self::$init)) {\n- throw new \\Excep... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve Exception logic |
323,346 | 02.11.2018 12:09:33 | -28,800 | c67f07367013b7f7ad9a3cf2f355c55f0fa64d3d | update queue extension to using new exception logic | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -381,9 +381,7 @@ class redis_queue extends redis\n$dep_list = is_string(parent::$load[$module]) ? [parent::$load[$module]] : parent::$load[$module];\n//Build dependency\n- if (!parent::build_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update queue extension to using new exception logic |
323,346 | 12.11.2018 15:28:00 | -28,800 | de07d8565ef19b4ff2788c055acf927df1fb25bb | fix TZ "pre" and "post" area value parsing issues | [
{
"change_type": "MODIFY",
"old_path": "core/parser/trustzone.php",
"new_path": "core/parser/trustzone.php",
"diff": "@@ -40,21 +40,22 @@ class trustzone extends factory\n//Reset TrustZone\nself::$record = [];\n- //Fetch TrustZone\nif (isset($class::$tz)) {\n+ //Fetch via static calling\nself::$reco... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix TZ "pre" and "post" area value parsing issues |
323,346 | 15.11.2018 00:03:08 | -28,800 | 708b8dee40dc7c9c005acc0efe56c2a8c28150b7 | Remove support complex array settings in TrustZone | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -146,14 +146,14 @@ class operator extends factory\n//Process target list\nforeach ($target_list as $target) {\n//Get TrustZone data\n- $tz_data = trustzone::fetch($class, $target)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove support complex array settings in TrustZone |
323,346 | 15.11.2018 00:29:01 | -28,800 | 8c216ca3d33e14f032d5d7cb15149fdfe59cfc4e | update README.md and version | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable version: 7.2.0\n+Stable version: 7.2.2\nExtension version: 2.0\n[Test Suites](https://github.com/NervSys/tests)\n@@ -296,16 +296,20 @@ namespace DirA\\ctr;\nclass TestA\n{\npublic static $tz = [\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update README.md and version |
323,346 | 15.11.2018 11:47:44 | -28,800 | e4c6bd0a7e72d621abab1c9f7ba0f403c2652ca1 | Update factory caution content in README.md | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -406,7 +406,9 @@ NOTICE: Same ways to call \"use\" and \"obtain\" methods, but there are still some s\n**obtain**: all returned object points to the first argument using a class name, with the second argument as... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Update factory caution content in README.md |
323,346 | 06.12.2018 15:15:37 | -28,800 | e5ccba85b58d70a0286260326d6b1eb38d771eb5 | allow adding cgi/cli jobs dynamically later at anytime anywhere | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -47,6 +47,23 @@ class operator extends factory\n}\n}\n+ /**\n+ * Add CLI jobs\n+ *\n+ * @param string $cmd\n+ *\n+ * @throws \\Exception\n+ */\n+ public static function add_cli(st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | allow adding cgi/cli jobs dynamically later at anytime anywhere |
323,346 | 06.12.2018 23:11:48 | -28,800 | c2afd6f25b4673d703b5a3f7868f4ef868e424c1 | merge add cli/cgi job functions into system module | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -47,30 +47,17 @@ class operator extends factory\n}\n}\n- /**\n- * Add CLI jobs\n- *\n- * @param string $cmd\n- *\n- * @throws \\Exception\n- */\n- public static function add_cli(s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | merge add cli/cgi job functions into system module |
323,346 | 07.12.2018 00:29:39 | -28,800 | 16e287aee8e4096d160f3161419cb53a074e1f87 | finish CGI/CLI adding job functions, code cleanup, run_cli function improved | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -47,61 +47,6 @@ class operator extends factory\n}\n}\n- /**\n- * Run CLI process\n- */\n- public static function run_cli(): void\n- {\n- //Process orders\n- while (!empty(parent::... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish CGI/CLI adding job functions, code cleanup, run_cli function improved |
323,346 | 11.12.2018 23:31:44 | -28,800 | b9d5ba326085ce84c69d02d2783bf8cc430e3fd2 | minor fix on clean up and execute | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -122,11 +122,10 @@ class pdo_mysql extends pdo\nforeach ($values as $key => $value) {\nif (!isset($this->value[$key])) {\n$this->value[$key] = $value;\n- $this->bind_value[] = $value;\n}\n}\n- un... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix on clean up and execute |
323,346 | 11.12.2018 23:43:25 | -28,800 | 9b0fca91060c9b2b07227a1385104aff0a80ea36 | split having from where | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -41,6 +41,7 @@ class pdo_mysql extends pdo\nprivate $bind_value = [];\nprivate $bind_where = [];\n+ private $bind_having = [];\n/**\n* Insert into table\n@@ -192,6 +193,10 @@ class pdo_mysql exte... | PHP | Apache License 2.0 | jerry-shaw/nervsys | split having from where |
323,346 | 12.12.2018 00:01:46 | -28,800 | cdc8bd399d03ebe986c06d81aa03b652e46fcd19 | improve "order" function to using array params | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -39,6 +39,7 @@ class pdo_mysql extends pdo\nprivate $incr = [];\nprivate $value = [];\n+ //Runtime params\nprivate $bind_value = [];\nprivate $bind_where = [];\nprivate $bind_having = [];\n@@ -54... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve "order" function to using array params |
323,346 | 12.12.2018 11:32:58 | -28,800 | dd6d485ba2fcffdb76e3725b76050d0dc76f27b1 | minor fix on pdo_mysql extension | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -54,7 +54,6 @@ class pdo_mysql extends pdo\npublic function insert(string $table = ''): object\n{\n$this->act = 'INSERT';\n-\n$this->set_table($table);\nunset($table);\n@@ -71,7 +70,6 @@ class pd... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix on pdo_mysql extension |
323,346 | 16.12.2018 12:47:31 | -28,800 | 338011d2be3460ebd00098e528125ca3aa383d7d | add global CORS setting "*" to accept all incoming domains | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -173,6 +173,9 @@ The words above are reserved by NervSys core. So that, they should be taken care\nexplain:\nAll requests via ajax from the domains above in the section are allowed, with the request headers acce... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add global CORS setting "*" to accept all incoming domains |
323,346 | 16.12.2018 20:47:25 | -28,800 | 2edbd668eb51015d09966d3a8b91346203eac485 | mysql extension optimized (strange things still happening in PHP 7.3) | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -21,28 +21,8 @@ namespace ext;\nclass pdo_mysql extends pdo\n{\n- //Action\n- private $act = '';\n-\n- //SQL params\n- private $field = '';\n- private $table = '';\n- private $where = '';\n-\n- p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | mysql extension optimized (strange things still happening in PHP 7.3) |
323,346 | 17.12.2018 14:01:13 | -28,800 | e5dfc3b88a2a093237b2bcdbd684fddd3ae4fda5 | fix headers not defiend for single domain when "*" is set for CORS | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -271,13 +271,13 @@ class system extends command\n}\n//Exit on no access authority\n- if (!isset(self::$cors[$_SERVER['HTTP_ORIGIN']]) && !isset(self::$cors['*'])) {\n+ if (is_null($allow_headers = se... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix headers not defiend for single domain when "*" is set for CORS |
323,346 | 29.12.2018 13:02:27 | -28,800 | f715a3dccc678c2c2011cf68d2ab4ba7007c27be | Let TrustZone accept "*" to expose all public methods in a class | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -436,6 +436,8 @@ _Simple $tz in string format: example of \"TestB.php_\nThat is a simple format which means methods \"test_a\", \"test_b\", \"test_c\" are all exposed to API with no TrustZone limitation. But the... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Let TrustZone accept "*" to expose all public methods in a class |
323,346 | 29.12.2018 15:40:01 | -28,800 | f4cb43abbfff9d6e1268e7b2994849f094560930 | INIT and LOAD now support settings without methods, "__construct" will be called instead | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -195,10 +195,12 @@ The words above are reserved by NervSys core. So that, they should be taken care\nMultiple setting:\nDescA = dirA/dirB/model-funcA\nDescB = dirB/dirB/model-funcB\n+ DescC = dirC/dirC/model\nex... | PHP | Apache License 2.0 | jerry-shaw/nervsys | INIT and LOAD now support settings without methods, "__construct" will be called instead |
323,346 | 29.12.2018 17:16:44 | -28,800 | 4288cfff78494ce21dad6e3ab40a3ef245416c67 | fix calling non static function | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -272,7 +272,7 @@ class operator extends factory\n* @return \\ReflectionMethod\n* @throws \\ReflectionException\n*/\n- private function reflect_method(string $class, string $method... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix calling non static function |
323,346 | 29.12.2018 18:02:05 | -28,800 | 07cff535b4df3f17e824521d647eeb88c31222ee | open factory methods from protected to public | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -33,7 +33,7 @@ class factory extends system\n*\n* @return $this\n*/\n- protected static function new(): object\n+ public static function new(): object\n{\nreturn clone self::stock(_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | open factory methods from protected to public |
323,346 | 05.01.2019 12:22:29 | -28,800 | e44ffd76c1c107b599f8b870e2c9d4e4e180f7ea | Improve Redis Queue extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -27,13 +27,12 @@ use core\\handler\\platform;\nclass redis_queue extends redis\n{\n//Expose \"root\" & \"child\"\n- public static $tz = [\n- 'root' => [],\n- 'child' => []\n- ];\n+ public sta... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve Redis Queue extension |
323,346 | 07.01.2019 13:23:08 | -28,800 | d38a5d051c046461d2691768a98046190fe58185 | update README.md and comments in system.ini | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -209,7 +209,7 @@ The words above are reserved by NervSys core. So that, they should be taken care\nNotice:\nThe keys in \"INIT\" section have no means for system, but for developers to know what they are for.\n\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update README.md and comments in system.ini |
323,346 | 08.01.2019 11:09:55 | -28,800 | da8541d6d377744d7e5071321f788578fa7d292b | Level up priority for all LOAD function in system.ini settings | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -41,7 +41,6 @@ class operator extends factory\nunset($item);\n} catch (\\Throwable $throwable) {\n- //Level up Exception code to ERROR\nerror::exception_handler(new \\Exception($t... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Level up priority for all LOAD function in system.ini settings |
323,346 | 08.01.2019 22:03:05 | -28,800 | bb069d5437d9beb3eb35b3fcd55c58456a1eba9b | Improve LOAD function calling logic | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -51,6 +51,9 @@ class operator extends factory\n*/\npublic static function run_cgi(): void\n{\n+ //Load list\n+ $load_list = [];\n+\n//Process orders\nwhile (!is_null($item_list = ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve LOAD function calling logic |
323,346 | 09.01.2019 09:26:44 | -28,800 | 38f349d8bd35fbacd7467effd896d0e893ce639c | Using another way to control LOAD calling logic | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -51,9 +51,6 @@ class operator extends factory\n*/\npublic static function run_cgi(): void\n{\n- //Load list\n- $load_list = [];\n-\n//Process orders\nwhile (!is_null($item_list = ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using another way to control LOAD calling logic |
323,346 | 09.01.2019 19:26:36 | -28,800 | ae310b8c9f4fb6fd1040991276bc22b53dab7a4c | Fix open TrustZone to parent class, which is not allowed. | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -121,6 +121,42 @@ class factory extends system\nreturn $this;\n}\n+ /**\n+ * Reflect method\n+ *\n+ * @param string $class\n+ * @param string $method\n+ *\n+ * @return \\ReflectionM... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix open TrustZone to parent class, which is not allowed. |
323,346 | 10.01.2019 21:03:25 | -28,800 | de3c8fa939202f98978ff3d57a914d6db4306294 | fix calling non-static method | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -379,7 +379,7 @@ class pdo_mysql extends pdo\n*\n* @return bool\n*/\n- public static function begin(): bool\n+ public function begin(): bool\n{\nreturn parent::connect()->beginTransaction();\n}\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix calling non-static method |
323,346 | 10.01.2019 22:28:27 | -28,800 | effadeecd4d5f12f208667780f0f13a86f9a3fc6 | add lock method to mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -84,6 +84,22 @@ class pdo_mysql extends pdo\nreturn $this;\n}\n+ /**\n+ * Set lock mode\n+ * UPDATE/SHARE, NOWAIT/SKIP LOCKED\n+ *\n+ * @param string ...$modes\n+ *\n+ * @return object\n+ */\n+ p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add lock method to mysql |
323,346 | 12.01.2019 11:52:32 | -28,800 | 7896ad17d8405810dbcee1eb6565da95891f7ec9 | Move some env check/setting related codes from api.php to /core/env.php | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "//Declare strict types\ndeclare(strict_types = 1);\n-//Check PHP version\n-if (version_compare(PHP_VERSION, '7.2.0', '<')) {\n- exit('NervSys needs PHP 7.2.0 or higher!');\n-}\n-\n//Set error_reporting level\nerror_rep... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move some env check/setting related codes from api.php to /core/env.php |
323,346 | 13.01.2019 22:56:44 | -28,800 | e392e9cdf2e30d942a7f85a8b9493f706f38b6b3 | minor fix on return type doc | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -90,7 +90,7 @@ class pdo_mysql extends pdo\n*\n* @param string ...$modes\n*\n- * @return object\n+ * @return $this\n*/\npublic function lock(string ...$modes): object\n{\n@@ -239,7 +239,7 @@ clas... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix on return type doc |
323,346 | 14.01.2019 11:11:34 | -28,800 | 030f228223af714706afcd010ce73ee2c1a773dc | new socket extension (NOT finish) | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -25,149 +25,187 @@ use core\\handler\\factory;\nclass socket extends factory\n{\n//Socket resource\n- public $sock = null;\n-\n- //Timeout (in seconds)\n- public $timeout = 60;\n-\n- //Socket type\n- p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | new socket extension (NOT finish) |
323,346 | 14.01.2019 17:37:42 | -28,800 | 23cddd185b2b44526da677574a1c4b4b6e126118 | improve socket read function | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -132,7 +132,7 @@ class socket extends factory\n}\n/**\n- * Listen Connections\n+ * Listen connections\n*\n* @param array $clients\n*\n@@ -154,18 +154,24 @@ class socket extends factory\n}\n/**\n- * Acc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve socket read function |
323,346 | 14.01.2019 18:31:11 | -28,800 | cdf7edb8b408c09f6e592994eaa3d5c8b7d89f45 | open socket properties for UDP client | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -28,9 +28,9 @@ class socket extends factory\npublic $source = null;\n//Network config\n- private $proto = 'tcp';\n- private $host = '0.0.0.0';\n- private $port = 65535;\n+ public $proto = 'tcp';\n+ pub... | PHP | Apache License 2.0 | jerry-shaw/nervsys | open socket properties for UDP client |
323,346 | 15.01.2019 12:01:38 | -28,800 | 22a9089f0adab58da8b655b4bcba5357fa1539e8 | exchange IPV4 and IPV6 filter order to support domain host | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -105,7 +105,7 @@ class socket extends factory\npublic function create(bool $block = false): object\n{\n//Build domain & protocol\n- $domain = false !== filter_var($this->host, FILTER_VALIDATE_IP, FILTE... | PHP | Apache License 2.0 | jerry-shaw/nervsys | exchange IPV4 and IPV6 filter order to support domain host |
323,340 | 15.01.2019 16:04:52 | -28,800 | 0c8486bd6ed0a427a9d027eb6bf1e2aee6b9a196 | Create memcached.php
mamcached | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "ext/lib/memcached.php",
"diff": "+<?php\n+\n+/**\n+ * Memcached Connector Extension\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may ob... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Create memcached.php
mamcached |
323,346 | 18.01.2019 13:55:11 | -28,800 | 6053842075efcdd9bb250dd490250d73556d367c | Using log file descriptor to receive STDERR data | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -143,7 +143,15 @@ class operator extends factory\n}\n//Create process\n- $process = proc_open(platform::cmd_proc($command), [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']], $pipes);... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using log file descriptor to receive STDERR data |
323,346 | 19.01.2019 16:54:56 | -28,800 | 2112cb3d41598863bc34d999f390b79239375427 | improve mpc method calling logic | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -33,16 +33,10 @@ class mpc extends factory\n//Basic command\nprivate $php_cmd = '';\n- //Process quantity\n- protected $runs = 10;\n-\n- //Process wait option\n- protected $wait = true;\n-\n//PHP key name in... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve mpc method calling logic |
323,346 | 19.01.2019 17:03:04 | -28,800 | eac58ea18536063725015f3a713b644a57e56d81 | Free jobs when mpc commits | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -96,6 +96,9 @@ class mpc extends factory\n? array_chunk($this->jobs, $runs, true)\n: [$this->jobs];\n+ //Free jobs\n+ $this->jobs = [];\n+\n//Build basic command\n$this->php_cmd = $this->php_exe . ' \"' . RO... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Free jobs when mpc commits |
323,346 | 20.01.2019 14:42:12 | -28,800 | f5fdf313d5088b07701eb3b14261043863dba293 | Add parse websocket header method to get FIN and OpCode | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -236,6 +236,26 @@ class socket extends factory\nunset($socket);\n}\n+ /**\n+ * Get basic WebSocket header\n+ *\n+ * @param string $buff\n+ *\n+ * @return array\n+ */\n+ public function ws_header(string... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add parse websocket header method to get FIN and OpCode |
323,346 | 20.01.2019 19:18:22 | -28,800 | ff1cd8280d81b546c485b3c1b9d89dfe4a874056 | change accept method to fully control read list and client list | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -141,7 +141,8 @@ class socket extends factory\npublic function listen(array $clients = []): array\n{\n$write = $except = [];\n- $clients[] = $this->source;\n+\n+ $clients[hash('sha1', uniqid(mt_rand(),... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change accept method to fully control read list and client list |
323,346 | 21.01.2019 14:16:22 | -28,800 | a04e8053b35264ae5b5c8417ca1ebe673fdaf5a5 | update cmd_bg on linux | [
{
"change_type": "MODIFY",
"old_path": "core/handler/platform/linux.php",
"new_path": "core/handler/platform/linux.php",
"diff": "@@ -81,7 +81,7 @@ class linux implements os\n*/\npublic static function cmd_bg(string $cmd): string\n{\n- return '\"' . $cmd . '\" > /dev/null 2>/dev/null &';\n+ return '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update cmd_bg on linux |
323,346 | 21.01.2019 14:38:28 | -28,800 | 9a322dc38b041487654605eafed39a626a99e21a | cmd_bg method improved for winnt | [
{
"change_type": "MODIFY",
"old_path": "core/handler/platform/winnt.php",
"new_path": "core/handler/platform/winnt.php",
"diff": "@@ -88,7 +88,7 @@ class winnt implements os\n*/\npublic static function cmd_bg(string $cmd): string\n{\n- return 'start \"\" /B ' . $cmd;\n+ return 'start \"\" /B ' . $cm... | PHP | Apache License 2.0 | jerry-shaw/nervsys | cmd_bg method improved for winnt |
323,346 | 21.01.2019 14:39:24 | -28,800 | 30b12b034f14c7a87ce0ff2564b95964b8961548 | child cmd improved for redis queue | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -222,9 +222,9 @@ class redis_queue extends redis\n//Build child command\n$this->child = platform::cmd_bg(\n- platform::sys_path() . ' '\n- . ROOT . 'api.php --ret --cmd \"'\n- . strtr(__CLASS... | PHP | Apache License 2.0 | jerry-shaw/nervsys | child cmd improved for redis queue |
323,346 | 21.01.2019 14:55:13 | -28,800 | 21ebb06b7aeed96386027bd2581bba446f677245 | Adding no-wait/no-return options to operator and mpc | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -142,6 +142,11 @@ class operator extends factory\n$command .= $item_list['argv'];\n}\n+ //Add no return option\n+ if (!$item_list['ret']) {\n+ $command = platform::cmd_bg($command... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Adding no-wait/no-return options to operator and mpc |
323,346 | 22.01.2019 21:48:00 | -28,800 | e6ac3ca99a7de6d89cd05d0c256b4b8268281782 | Rewrite socket using stream_*, add broadcast support | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -27,131 +27,125 @@ class socket extends factory\n//Socket source\npublic $source = null;\n- //Network config\n- public $proto = 'tcp';\n- public $host = '0.0.0.0';\n- public $port = 65535;\n-\n- //Run ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rewrite socket using stream_*, add broadcast support |
323,346 | 25.01.2019 11:37:18 | -28,800 | c29096a27b160a5b14948f9ebf97e0c2b6aa18d7 | Using MIME type instead of full ContentType string | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -27,7 +27,7 @@ class input extends system\n//Read options\nconst RET = ['ret', 'r'];\nconst CMD = ['cmd', 'c'];\n- const OUT = ['out', 'o'];\n+ const MIME = ['mime', 'm'];\nconst DATA = [... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using MIME type instead of full ContentType string |
323,346 | 25.01.2019 11:37:48 | -28,800 | d080d24d7a355699f99371d2b882679bb36774a3 | Update README.md and version. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable version: 7.2.14\n+Stable version: 7.2.16\nExtension version: 2.0\n[Unit Test Suites](https://github.com/NervSys/tests)\n@@ -86,13 +86,13 @@ PHP 7.2+ and above. Any kind of web server or running u... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Update README.md and version. |
323,346 | 30.01.2019 15:43:29 | -28,800 | 9b2008123dec811e6469f4e4614d4e5e1faa7a8e | Code cleanup, ready to split system logic into three running states | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -26,23 +26,32 @@ use core\\parser\\trustzone;\nclass operator extends factory\n{\n/**\n- * Initialize operator\n+ * Run dependency\n+ *\n+ * @param array $list\n+ * @param int $er... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Code cleanup, ready to split system logic into three running states |
323,346 | 31.01.2019 10:59:58 | -28,800 | 1aef6881e334637f7676d71195497da45cf377a9 | codes change for states, not done yet | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -104,6 +104,12 @@ The words above are reserved by NervSys core. So that, they should be taken care\n\"system.ini\" locates right under the \"core\" folder, which contains most of the important setting sections.\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | codes change for states, not done yet |
323,346 | 31.01.2019 20:47:44 | -28,800 | 46148351bca85900163db7e04ba45a97a5dca14c | add state exit control point, code clean up | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -130,13 +130,9 @@ class error extends system\nlog::$level($message, $context);\nlog::show($level, $message, $context);\n- unset($throwable, $exception, $message, $context);\n-\n//Stop o... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add state exit control point, code clean up |
323,346 | 31.01.2019 21:03:59 | -28,800 | a98736fc8d804006be2991a206807c92913c17cc | Fix wrong reflection was created if a constructor reflection was saved from the same class | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -135,8 +135,8 @@ class factory extends system\n//Reflection list\nstatic $list = [];\n- //Return when exist\n- if (isset($list[$class])) {\n+ //Return constructor\n+ if (isset($list... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix wrong reflection was created if a constructor reflection was saved from the same class |
323,346 | 01.02.2019 13:03:28 | -28,800 | ce3ab9ebdc0e62a7ffcb335cdddc28db6bc94e7e | Remove useless exit control states | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -43,43 +43,62 @@ class system extends command\n*/\npublic static function boot(int $state = 0): void\n{\n- //Load state (S1)\n+ /**\n+ * Prepare state (S1)\n+ * Initialize system\n+ *\n+ * Steps:\n+ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove useless exit control states |
323,346 | 03.02.2019 14:52:59 | -28,800 | 6fdf2eec126b15df1ad1bca8baaade382ec9c2a5 | Make changes to system initialize logic to accept array settings in "init" section of "system.ini" | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -204,9 +204,11 @@ The words above are reserved by NervSys core. So that, they should be taken care\nMultiple setting:\n- DescA = dirA/dirB/model-funcA\n- DescB = dirB/dirB/model-funcB\n- DescC = dirC/dirC/model\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make changes to system initialize logic to accept array settings in "init" section of "system.ini" |
323,346 | 03.02.2019 14:59:31 | -28,800 | edbc0bade4105a1c1577ba458bbf64d81f12237e | typo fix, code cleanup | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -338,9 +338,11 @@ class system extends command\n//Execute \"init\" settings\noperator::exec_dep($list);\n} catch (\\Throwable $throwable) {\n- //Redirect exception level to error\n+ //Redirect except... | PHP | Apache License 2.0 | jerry-shaw/nervsys | typo fix, code cleanup |
323,346 | 11.02.2019 14:30:00 | -28,800 | 100777c4c039ee98be265a2aecd4ab8143f52083 | Platform handler cleanup | [
{
"change_type": "MODIFY",
"old_path": "core/handler/platform.php",
"new_path": "core/handler/platform.php",
"diff": "@@ -24,69 +24,69 @@ use core\\handler\\platform\\lib\\os;\nclass platform implements os\n{\n- //Platform handler\n- private static $handler = '';\n-\n/**\n- * Get PHP system path\n+ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Platform handler cleanup |
323,346 | 12.02.2019 15:59:05 | -28,800 | 93877160ce89ff2e0d272e80e80580ba031551b4 | Improve CGI logic not to abort when encounter non-error exceptions | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -52,16 +52,22 @@ class operator extends factory\n{\n//Process orders\nwhile (!is_null($item_list = array_shift(parent::$cmd_cgi))) {\n- //Get name & class\n+ //Get class & name\n$... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve CGI logic not to abort when encounter non-error exceptions |
323,346 | 16.02.2019 18:55:29 | -28,800 | 1bca8634bccbefc2f3553ecf73fe4df484003ed3 | Remove "extends factory" from extensions that are fully written in static functions | [
{
"change_type": "MODIFY",
"old_path": "core/parser/cmd.php",
"new_path": "core/parser/cmd.php",
"diff": "@@ -112,10 +112,11 @@ class cmd extends system\n* @param array $cmd\n*\n* @return array\n+ * @throws \\Exception\n*/\nprivate static function prep_cli(array $cmd): array\n{\n- //Check PHP comman... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove "extends factory" from extensions that are fully written in static functions |
323,346 | 28.02.2019 10:45:37 | -28,800 | 31766e473df96518bf761b2848f218c93c604dc9 | Improve PDO connector controlling | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "@@ -40,7 +40,7 @@ class pdo extends factory\n*\n* @return \\PDO\n*/\n- public function connect(): \\PDO\n+ public function connect(): object\n{\n//Build DSN & OPTION\n$param = $this->build_dsn_opt();\n"
},
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve PDO connector controlling |
323,346 | 28.02.2019 11:57:21 | -28,800 | 96242b21382b6890f525dcd5a38d94db7cc385e2 | improve redis connect controlling | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -43,7 +43,7 @@ class redis extends factory\n* @return \\Redis\n* @throws \\RedisException\n*/\n- public function connect(): \\Redis\n+ public function connect(): object\n{\n//Check connection pool\nif (i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve redis connect controlling |
323,346 | 28.02.2019 21:02:12 | -28,800 | b55f9e62960aea7ccb203d35b68fa79651b79b40 | fix "cmd" missing in system running in PHP 7.2 | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -74,7 +74,7 @@ class system extends command\n* 4. Gathering results on calling every function or external command. Save to process result pool.\n*/\n- '' !== parent::$cmd && cmd::prepare();\n+ '' !==... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix "cmd" missing in system running in PHP 7.2 |
323,346 | 28.02.2019 21:59:20 | -28,800 | 04c3f26d53c4981b4127ccfdc459d3e2371bd8d7 | change return type from Memcached to object | [
{
"change_type": "MODIFY",
"old_path": "ext/memcached.php",
"new_path": "ext/memcached.php",
"diff": "@@ -39,7 +39,7 @@ class memcached extends factory\n*\n* @return \\Memcached\n*/\n- public function connect(): \\Memcached\n+ public function connect(): object\n{\n//Check connection pool\nif (isset(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change return type from Memcached to object |
323,346 | 28.02.2019 22:00:59 | -28,800 | 0ddc8dde6c2d476c52c2351a4cce36641b6fbd33 | Fix wrong reference usages in data processing | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -52,7 +52,7 @@ class input extends system\n&& !empty($val = self::opt_val(parent::$data, self::CMD))\n&& is_string($val['data'])\n) {\n- parent::$cmd = &$val['data'];\n+ parent::$cmd = $v... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix wrong reference usages in data processing |
323,346 | 01.03.2019 21:42:50 | -28,800 | de38f6f7d8917f05f6845736353a43de1ba6b99d | fix PDO missing bind value errors | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -359,7 +359,7 @@ class pdo_mysql extends pdo\ntry {\n$stmt = $this->connect->prepare($sql);\n- $stmt->execute($this->params['bind_value']);\n+ $stmt->execute($this->params['bind_value'] ?? null);... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix PDO missing bind value errors |
323,346 | 05.03.2019 11:40:36 | -28,800 | e785add0e64abaa1c8cd743d4e39ffc0e13e28e6 | Change error level from E_USER_WARNING to E_USER_NOTICE on TrustZone/Argument mismatched. | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -156,7 +156,7 @@ class data\nthrow new \\Exception(\n$reflect->getDeclaringClass()->getName() . '::' . $reflect->getName()\n. ': Argument mismatch [' . (implode(', ', $diff)) . ']',\n- E_US... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change error level from E_USER_WARNING to E_USER_NOTICE on TrustZone/Argument mismatched. |
323,346 | 05.03.2019 11:53:48 | -28,800 | 6f7d3ff841321c0488183f065a16d002f5af3521 | Using full key name instead of short name | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -80,9 +80,9 @@ class errno\npublic static function get(int $code, int $errno = 0): array\n{\nreturn [\n- 'error' => &$errno,\n'code' => &$code,\n- 'msg' => isset(self::$pool[$code])\n+ 'errno' => &$errno... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using full key name instead of short name |
323,346 | 05.03.2019 12:17:55 | -28,800 | 87de5ce4ebee420fddc2d7c70c5c557e6d42dae5 | Set default error level to "info" instead of "warning" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -111,7 +111,7 @@ class error extends system\n$exception = get_class($throwable);\n//Get error level\n- $level = isset(self::LEVEL[$throwable->getCode()]) ? self::LEVEL[$throwable->getCo... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Set default error level to "info" instead of "warning" |
323,346 | 05.03.2019 12:21:23 | -28,800 | a280d8902608a9b68e31c91cf72c2125b0d6b03e | Using log::info to handle TrustZone/Argument mismatch errors. | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -155,8 +155,7 @@ class data\nif (!empty($diff)) {\nthrow new \\Exception(\n$reflect->getDeclaringClass()->getName() . '::' . $reflect->getName()\n- . ': Argument mismatch [' . (implode(', '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using log::info to handle TrustZone/Argument mismatch errors. |
323,346 | 05.03.2019 13:02:01 | -28,800 | eb6e80a568c6cb8439839872ecdcdd033c1ce357 | Make clear definitions to 4 states on system execution. | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -33,14 +33,7 @@ use core\\pool\\command;\nclass system extends command\n{\n/**\n- * Boot system\n- *\n- * @param int $state\n- */\n- public static function boot(int $state = 0): void\n- {\n- /**\n- *... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make clear definitions to 4 states on system execution. |
323,346 | 05.03.2019 13:06:02 | -28,800 | d75e83f385387182770ce91d2dabca404edc6ed9 | More comments on S2 state | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -49,7 +49,8 @@ class system extends command\n* Read & parse input data\n*\n* Steps:\n- * 1. Read and parse input data. Save to process pool in non-overwrite mode.\n+ * 1. Read and parse input data (R... | PHP | Apache License 2.0 | jerry-shaw/nervsys | More comments on S2 state |
323,346 | 12.03.2019 00:02:32 | -28,800 | 540ee87cc3d0438a8726f903308c2f9e7d47de5b | Rewrite upload extension | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -24,39 +24,20 @@ use core\\handler\\factory;\nclass upload extends factory\n{\n- /**\n- * Error code\n- * 0: UPLOAD_ERR_OK\n- * 1: UPLOAD_ERR_INI_SIZE\n- * 2: UPLOAD_ERR_FORM_SIZE\n- * 3: UPLOAD_ERR_PA... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rewrite upload extension |
323,346 | 12.03.2019 08:11:43 | -28,800 | 7c00068c78ba290d92ce3c14dd5ec09c6575b730 | Fix server side error check on uploading | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -136,6 +136,11 @@ class upload extends factory\n*/\npublic function save(string $to = 'upload'): array\n{\n+ //Check upload error\n+ if (isset($this->file['error'])) {\n+ return $this->get_error($this-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix server side error check on uploading |
323,346 | 12.03.2019 11:28:13 | -28,800 | 89150ca00ff482e11809be5df55e2b55fb2b8c12 | Fix incorrect slashes in URL based result | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -180,13 +180,15 @@ class upload extends factory\n//Set permissions\nchmod($file_path, $this->perm);\n- unset($to, $ext, $save_path, $file_path);\n+ //Build upload result\n+ $result = $this->get_error(U... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix incorrect slashes in URL based result |
323,346 | 14.03.2019 21:06:38 | -28,800 | 1c66d71059776d1dae01b4567e32fca475dfb392 | Fix argument type name text not fetched | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -123,7 +123,7 @@ class data\n//Process param data\nforeach ($params as $param) {\nif (isset($input[$name = $param->getName()])) {\n- switch ($param->getType()) {\n+ switch ($param->getType(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix argument type name text not fetched |
323,346 | 14.03.2019 21:49:01 | -28,800 | 880b433b2c41b02500b570ba89907dc2fbab7b9f | Fix data type get failed when not defined | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -123,7 +123,7 @@ class data\n//Process param data\nforeach ($params as $param) {\nif (isset($input[$name = $param->getName()])) {\n- switch ($param->getType()->getName()) {\n+ switch (is_ob... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix data type get failed when not defined |
323,346 | 14.03.2019 21:50:28 | -28,800 | 9f917562bf4f30845ebc522ace6c4b3774eff476 | Fix type get error | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -164,7 +164,7 @@ class doc extends system\n$val = [];\n$val['name'] = $param->getName();\n- $val['type'] = $param->getType()->getName();\n+ $val['type'] = is_object($type = $param->getType()) ? $type->getNam... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix type get error |
323,346 | 15.03.2019 12:42:25 | -28,800 | 29ac4bc14ccb78d17cf811088c596120c10baf4f | Finish DOC extension | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "namespace ext;\n-use core\\system;\n+use core\\handler\\factory;\n-class doc extends system\n+class doc extends factory\n{\n- //Exclude method\n- private static $exclude_method = [];\n-\n- //Exclude path or fil... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Finish DOC extension |
323,346 | 15.03.2019 18:45:22 | -28,800 | 9fb95053cdc5a6e5e7e5a9cd5b3d1cbfc233b920 | Change DOC exlcudes_* properties from protected to public | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -25,8 +25,8 @@ use core\\handler\\factory;\nclass doc extends factory\n{\n//Define excludes\n- protected $exclude_func = [];\n- protected $exclude_path = ['core', 'ext'];\n+ public $exclude_func = [];\n+ pub... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change DOC exlcudes_* properties from protected to public |
323,346 | 15.03.2019 22:00:30 | -28,800 | f5cce856fbb4063ac196eb64b899082406607132 | Optimize default keygen extension (formula changed, not compatible) | [
{
"change_type": "MODIFY",
"old_path": "ext/keygen.php",
"new_path": "ext/keygen.php",
"diff": "@@ -44,9 +44,9 @@ class keygen implements key\npublic static function extract(string $key): array\n{\n$keys = [];\n- $keys['key'] = &$key;\n- $keys['iv'] = 0 === ord(substr($key, 0, 1)) & 1\n+ $keys['key'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Optimize default keygen extension (formula changed, not compatible) |
323,346 | 16.03.2019 08:32:49 | -28,800 | 20316dfb84d5a7d20389dd7dcb2d1d8d9770afbc | Fix another mistake in crypt extension | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -253,7 +253,7 @@ class crypt extends factory\n$noises = str_split($key, 8);\n- $string = 0 === ord(substr($key, 0, 1)) & 1\n+ $string = 0 === (ord(substr($key, 0, 1)) & 1)\n? $noises[0] . ':' . $string .... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix another mistake in crypt extension |
323,346 | 16.03.2019 10:18:42 | -28,800 | 922913016be93d0674a1ae7cc50ab6a03a89a761 | build exclude functions only from core classes (include parent classes outside core) | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -34,7 +34,7 @@ class doc extends factory\npublic function __construct()\n{\n//Read all functions from parent class\n- $this->exclude_func = get_class_methods(get_parent_class($this));\n+ $this->exclude_func ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | build exclude functions only from core classes (include parent classes outside core) |
323,346 | 16.03.2019 10:25:07 | -28,800 | 6becbdc21e50a4514d9749c910e529ead82b90ae | escape variable name from API reserved words | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -95,23 +95,23 @@ class doc extends factory\n/**\n* Build DOC\n*\n- * @param string $cmd\n+ * @param string $command\n*\n* @return array\n* @throws \\ReflectionException\n*/\n- public function show_doc(string... | PHP | Apache License 2.0 | jerry-shaw/nervsys | escape variable name from API reserved words |
323,346 | 16.03.2019 10:42:51 | -28,800 | 34bfbc494f71336c59e3711de9a63cb1f8349585 | Fix missing param records on processing DOC | [
{
"change_type": "MODIFY",
"old_path": "ext/doc.php",
"new_path": "ext/doc.php",
"diff": "@@ -128,6 +128,10 @@ class doc extends factory\n//Get parameters\n$params = $reflect_method->getParameters();\n+ //Build DOC\n+ $doc['tz'] = $trustzone[$method] ?? '';\n+ $doc['note'] = (string)$reflect_method-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix missing param records on processing DOC |
323,346 | 17.03.2019 11:52:06 | -28,800 | 4dba2ffc08a673ae1dddc6d5f805f3e6da839a6a | Change "-" to "." on signing a token | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -297,7 +297,7 @@ class crypt extends factory\n//Encrypt signature\n$mix = '' === $rsa_key ? (string)base64_encode($mix) : $this->rsa_encrypt($mix, $rsa_key);\n- $sig = '' !== $mix ? $mix . '-' . $this->e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change "-" to "." on signing a token |
323,346 | 19.03.2019 15:54:28 | -28,800 | 17d1cc680d819e3406784c21e0a8416977abe6c7 | Using $_SERVER['PATH_INFO'] instead of $_SERVER['REQUEST_URI'] | [
{
"change_type": "MODIFY",
"old_path": "init/router.php",
"new_path": "init/router.php",
"diff": "@@ -32,19 +32,24 @@ class router extends factory\n*/\npublic function __construct()\n{\n- if (false === $start = strpos($_SERVER['REQUEST_URI'], '/', 1)) {\n+ //Check PATH INFO\n+ if (!isset($_SERVER['P... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using $_SERVER['PATH_INFO'] instead of $_SERVER['REQUEST_URI'] |
323,346 | 19.03.2019 22:22:04 | -28,800 | b48a7f112329f76a90effe661e15c2be9ce1bec4 | Improve factory handler (untested) | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -28,25 +28,33 @@ class factory extends system\nprivate static $storage = [];\n/**\n- * Get new cloned object from called class or alias name\n- * Defined by both class name and argu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve factory handler (untested) |
323,346 | 24.03.2019 20:34:42 | -28,800 | 4599c758994c68e029458dd8951b103f9eb2cff4 | Improve factory handler | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -28,8 +28,8 @@ class factory extends system\nprivate static $storage = [];\n/**\n- * Get original object from called class using alias name\n- * Defined by only class name created l... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve factory handler |
323,346 | 27.03.2019 20:05:26 | -28,800 | 24850bcd02c410f6793214e9c0ef7d8b0b740e6d | Improve factory free logic, revert "as" function to return object | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -144,7 +144,7 @@ class factory extends system\n}\n/**\n- * Config class settings\n+ * Configure class properties\n*\n* @param array $setting\n*\n@@ -163,36 +163,43 @@ class factory ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve factory free logic, revert "as" function to return object |
323,346 | 27.03.2019 20:11:12 | -28,800 | 2890fc76b3838e2197784e13beefd15d8c1cb002 | Using "error::exception_handler" directly instead of throwing out an exception. | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -34,12 +34,11 @@ class factory extends system\n* @param string $alias\n*\n* @return $this\n- * @throws \\Exception\n*/\npublic static function use(string $alias): object\n{\nif (!is... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using "error::exception_handler" directly instead of throwing out an exception. |
323,346 | 29.03.2019 13:48:07 | -28,800 | b108cded2c9a13f0d1faa9857f2685952518ea50 | Fix bind error to a column with table alias | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -443,7 +443,7 @@ class pdo_mysql extends pdo\n*/\nprivate function rand_key(string $key): string\n{\n- return ':' . $key . '_' . substr(hash('md5', uniqid(mt_rand(), true)), 0, 4);\n+ return ':' ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix bind error to a column with table alias |
323,346 | 04.04.2019 13:01:22 | -28,800 | a01362cffff8e93582d78555b13e1a6bca91953a | Fix system::stop not exit after result output. | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -135,7 +135,9 @@ class system extends command\n*/\npublic static function stop(): void\n{\n- output::flush() && exit;\n+ //Flush result & exit\n+ output::flush();\n+ exit;\n}\n/**\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix system::stop not exit after result output. |
323,346 | 04.04.2019 13:20:36 | -28,800 | f8c0c3456cbf810fcd3a545428690120d191cb7c | Don't merge result when empty | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -45,12 +45,12 @@ class output extends system\n//Reduce array result\nif (1 === count(parent::$result)) {\n- parent::$result = reset(parent::$result);\n+ parent::$result = current(parent... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Don't merge result when empty |
323,346 | 04.04.2019 17:05:58 | -28,800 | db6363205c47955cce73d90eb8fc09d83152319f | Improve system::get_ip (compare remote ip with forwarded ip) | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -147,34 +147,36 @@ class system extends command\n*/\npublic static function get_ip(): string\n{\n- //IP check list\n- $chk_list = [\n- 'HTTP_CLIENT_IP',\n- 'HTTP_X_FORWARDED_FOR',\n- 'HTTP_X_FORWARDE... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve system::get_ip (compare remote ip with forwarded ip) |
323,346 | 08.04.2019 09:52:05 | -28,800 | 0f84f7be13b8427f5c400ac18c520636e8108604 | Map model table name directly to the filename of the called class | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -455,7 +455,13 @@ class pdo_mysql extends pdo\nprivate function set_action(string $action, string $table): void\n{\nif ('' === $table) {\n- $table = strtr(get_class($this), '\\\\', '_');\n+ $tabl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Map model table name directly to the filename of the called class |
323,346 | 11.04.2019 13:52:04 | -28,800 | 5c93371ff37f433a8b189812bbd455d4fed046c1 | Move font into ext folder | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -57,7 +57,7 @@ class crypt_img extends crypt\n$codes['code'] = parent::sign(json_encode(['code' => $codes['code'], 'life' => time() + (0 < $this->life ? $this->life : 60)]));\n//Image properties\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move font into ext folder |
323,346 | 11.04.2019 14:11:34 | -28,800 | 846ea751f5a1c7c98450743e0019f463c7ce122d | Append trace and params into log | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -122,8 +122,10 @@ class error extends system\n$context = [\n'Peak: ' . round(memory_get_peak_usage(true) / 1048576, 4) . 'MB',\n'Memory: ' . round(memory_get_usage(true) / 1048576, 4) .... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Append trace and params into log |
323,346 | 11.04.2019 16:34:44 | -28,800 | e5e35b9a7586a6f54ec2cb3190efd1d71621d7a6 | Add existed connection check | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -34,7 +34,11 @@ class pdo_mysql extends pdo\n*/\npublic function connect(): object\n{\n+ //Connect if NOT connected\n+ if (is_null($this->connect)) {\n$this->connect = parent::connect();\n+ }\n+\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add existed connection check |
323,340 | 12.04.2019 11:13:56 | -28,800 | 9044754d933eb4a233593ac5ed73d2abf3be660f | Add new features for mamcached.class
Add new features for mamcached.class | [
{
"change_type": "MODIFY",
"old_path": "ext/memcached.php",
"new_path": "ext/memcached.php",
"diff": "<?php\n-\n/**\n* Memcached Connector Extension\n*\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n-\nnamespace ext;\n-\nuse core\\handle... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add new features for mamcached.class
Add new features for mamcached.class |
323,346 | 12.04.2019 15:15:55 | -28,800 | d6997e0ad14f087de663aa479e7037017a5fb8d9 | image font file path fixed | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -57,7 +57,7 @@ class crypt_img extends crypt\n$codes['code'] = parent::sign(json_encode(['code' => $codes['code'], 'life' => time() + (0 < $this->life ? $this->life : 60)]));\n//Image properties\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | image font file path fixed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.