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,350 | 19.07.2017 23:46:20 | -28,800 | 62c310fa16b068f1119df25c49b022d2f82c6fdf | 1.sentence optimization
2.add picture rotation | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/upload.php",
"new_path": "core/_inc/ctrl/upload.php",
"diff": "@@ -101,7 +101,7 @@ class upload\n*/\npublic static function upload_base64(): array\n{\n- lang::load('core', 'ctrl_upload');\n+ /*lang::load('core', 'ctrl_upload');\nerror::load('cor... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1.sentence optimization
2.add picture rotation |
323,350 | 19.07.2017 23:49:39 | -28,800 | 0330c16a8620dfeceaeef2a0d77b62c43e66a14e | 1.delete comment | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/upload.php",
"new_path": "core/_inc/ctrl/upload.php",
"diff": "@@ -46,38 +46,11 @@ class upload\n*/\npublic static function upload_file(): array\n{\n- /*lang::load('core', 'ctrl_upload');\n- error::load('core', 'ctrl_upload');\n- if (!empty(self... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1.delete comment |
323,350 | 20.07.2017 00:11:09 | -28,800 | ee810ebc6a44a52de3118c119191d8ab36df4b28 | 1.something change | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/upload.php",
"new_path": "core/_inc/ctrl/upload.php",
"diff": "@@ -59,7 +59,7 @@ class upload\nif (':' === $save_path) return error::get_error(10002); //Upload path Error\n$file_name = '' !== self::$file_name ? self::$file_name : hash('md5', uni... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1.something change |
323,346 | 20.07.2017 20:31:25 | -28,800 | a9b73118ae1873f132ff85b46b228815107fcdff | fix show all error | [
{
"change_type": "MODIFY",
"old_path": "core/_err/upload.json",
"new_path": "core/_err/upload.json",
"diff": "{\n- \"Name\": \"upload\",\n+ \"Name\": \"ctrl\\\\upload\",\n\"Lang\": \"upload\",\n- \"Module\": \"core\\\\ctrl\",\n+ \"Module\": \"core\",\n\"CodeRange\": \"10000-10099\",\n\"10000\": \"up... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix show all error |
323,346 | 20.07.2017 21:32:56 | -28,800 | f17f12bf878f440d71ce5b7b9ef03161471ac609 | add follow location setting | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/http.php",
"new_path": "core/_inc/ctrl/http.php",
"diff": "@@ -65,6 +65,9 @@ class http\n//Return with header\npublic static $with_header = false;\n+ //Follow location level\n+ public static $follow_location = 0;\n+\n//HTTP Accept\npublic static... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add follow location setting |
323,346 | 22.07.2017 18:41:03 | -28,800 | 092837c30b315018006592e914b4f76616ab70ba | Add multi curl function for better performance | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/http.php",
"new_path": "core/_inc/ctrl/http.php",
"diff": "@@ -30,7 +30,7 @@ namespace core\\ctrl;\nclass http\n{\n//Request URL\n- public static $url = '';\n+ public static $url;\n//Access Key\npublic static $key = '';\n@@ -74,66 +74,81 @@ clas... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add multi curl function for better performance |
323,346 | 24.07.2017 14:48:09 | -28,800 | 22cfd85ae5336fe5662e98a1095e5bfceed24958 | fix path in linux | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -102,7 +102,7 @@ define('SSL_CFG',\nspl_autoload_register(function ($library): void {\nif (!class_exists($library, true) && false !== strpos($library, '\\\\')) {\n$path = explode('\\\\', $library... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix path in linux |
323,346 | 28.07.2017 18:49:55 | -28,800 | 6769cf0cf48f7ec938214cf571aea74c68f52ab6 | add permission settings in upload module | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/file.php",
"new_path": "core/_inc/ctrl/file.php",
"diff": "@@ -49,10 +49,11 @@ class file\n* Return relative path\n*\n* @param string $path\n+ * @param int $mode\n*\n* @return string\n*/\n- public static function get_path(string $path): string\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add permission settings in upload module |
323,346 | 02.08.2017 12:07:10 | -28,800 | 3c6a85ef2bf78d61f30ac47e3dc8938869785ddd | Fix ini_set error | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/session.php",
"new_path": "core/_inc/ctrl/session.php",
"diff": "@@ -50,7 +50,6 @@ class session\nself::$db_redis = redis::connect();\nini_set('session.gc_divisor', 100);\nini_set('session.gc_probability', 100);\n- ini_set('session.save_handler'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix ini_set error |
323,346 | 03.08.2017 12:27:54 | -28,800 | cda3ea5ace97636728dad0c2eb3df9209819cf31 | Allow building data struct from other method | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/pool.php",
"new_path": "core/_inc/ctrl/pool.php",
"diff": "@@ -71,7 +71,7 @@ class pool\n//Main data incorrect\nif (empty(self::$module) || (empty(self::$method) && empty(self::$data))) return;\n//Build data structure\n- self::$struct = array_ke... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Allow building data struct from other method |
323,346 | 09.08.2017 13:11:29 | -28,800 | 9a53b662d99b60ebf3c32ec78097e36d14234dd7 | split common and normal model folder | [
{
"change_type": "ADD",
"old_path": "com/_inc/common.model.here",
"new_path": "com/_inc/common.model.here",
"diff": ""
},
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -50,6 +50,9 @@ define('ERROR_LANG', true);\n//Define ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | split common and normal model folder |
323,346 | 15.08.2017 17:58:21 | -28,800 | 27b5d1f089c608f6f5e81231d5d3e0b7413afff6 | remove multiple "COMMON_LIST" setting in cfg | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -50,9 +50,6 @@ define('ERROR_LANG', true);\n//Define Online State Tags\ndefine('ONLINE_TAGS', ['uuid', 'char']);\n-//Define Common Model List\n-define('COMMON_LIST', ['com']);\n-\n//Define Availa... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove multiple "COMMON_LIST" setting in cfg |
323,346 | 16.08.2017 23:20:23 | -28,800 | 8530c1f86bc23bb608fb29a0d1305c32b1f0ed1b | support non-namespaced classes | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -99,13 +99,12 @@ define('SSL_CFG', [\n//Autoload function\nspl_autoload_register(function ($library): void {\n- if (!class_exists($library, true) && false !== strpos($library, '\\\\')) {\n+ $clas... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support non-namespaced classes |
323,346 | 17.08.2017 13:13:58 | -28,800 | bebf53e529b129c339f278eec880b6486e407661 | Add load lib function to load simple class script | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/fn.php",
"new_path": "core/_inc/fn.php",
"diff": "*/\n/**\n- * Cross module api loader\n+ * Load simple class script\n*\n* @param string $library\n- * @param string $method\n*\n- * @return array\n+ * @return bool\n*/\n-function load_api(string $libra... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add load lib function to load simple class script |
323,346 | 18.08.2017 18:45:25 | -28,800 | a1e60f5747431c8913b5de8b26b6d15a7dc2fd08 | fix auto load | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -99,12 +99,11 @@ define('SSL_CFG', [\n//Autoload function\nspl_autoload_register(function ($library): void {\n- $class_pos = strrpos($library, '\\\\');\n- if (false === $class_pos || class_exists... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix auto load |
323,346 | 31.08.2017 16:40:44 | -28,800 | b9abca52790c592f65de203a114173d84839e26d | Fix Non-Static method calling | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/ctrl/visit.php",
"new_path": "core/_inc/ctrl/visit.php",
"diff": "@@ -188,7 +188,7 @@ class visit\n* @param string $act\n* @param array $data\n*/\n- private function ctrl_session(string $act, array $data = []): void\n+ private static function ctrl_se... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix Non-Static method calling |
323,346 | 31.08.2017 17:05:32 | -28,800 | f1ff95ba7f7079dabfd771707939f0e29db92130 | fix key generator class name conflict | [
{
"change_type": "MODIFY",
"old_path": "core/_inc/cfg.php",
"new_path": "core/_inc/cfg.php",
"diff": "@@ -36,7 +36,7 @@ header('Content-Type:text/html; charset=utf-8');\ndefine('ROOT', realpath(substr(__DIR__, 0, -10)));\n//Define Key Generator module property\n-define('GENERATOR', '\\\\core\\\\key\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix key generator class name conflict |
323,346 | 28.11.2017 10:18:06 | -28,800 | 9fc8eba625eabef1dc3bda642180f1b1a287e344 | Improve Fault-Tolerant in CLI | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -8,6 +8,6 @@ Functional extensions (class) are considered to moved out to the third part to m\nOld version before 3.0.0 is discontinued and the source codes located here: https://github.com/Jerry-Shaw/NervSys/tr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve Fault-Tolerant in CLI |
323,346 | 28.11.2017 11:38:21 | -28,800 | 4de30c1d85ff72e6e11a5504132f78fffd14c06b | add "cfg.ini" to "core" dir | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "core/cfg.ini",
"diff": "+php = \"D:\\Programs\\WebServer\\Programs\\PHP\\php.exe\"\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "cfg.ini" to "core" dir |
323,346 | 28.11.2017 15:43:31 | -28,800 | b38176e3b1e49ecb26ba4b0f30d976cce5894366 | Add keygen & crypt extensions | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -41,9 +41,6 @@ define('NS_VER', '5.0.0 Beta');\n//Document Root Definition\ndefine('ROOT', realpath(substr(__DIR__, 0, -4)));\n-//OpenSSL config file location\n-define('SSL_CNF', 'D:/Programs/WebServer/Pro... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add keygen & crypt extensions |
323,346 | 28.11.2017 17:37:08 | -28,800 | 33e7e5ebc2ea97e6b7f12dea54e283486669b92f | Add crypt key interface | [
{
"change_type": "MODIFY",
"old_path": "ext/keygen.php",
"new_path": "ext/keygen.php",
"diff": "namespace ext;\n-class keygen\n+use \\ext\\lib\\crypt_key as crypt_key;\n+\n+class keygen implements crypt_key\n{\n/**\n* Create Crypt Key\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add crypt key interface |
323,346 | 29.11.2017 19:12:30 | -28,800 | f053c0694a0f604b799a7a80ae6280b59dd9e9f7 | Add TCP SOCKET function codes & minor changes | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -38,7 +38,7 @@ class mysql\npublic static $pwd = '';\npublic static $db = '';\npublic static $charset = 'utf8mb4';\n- public static $persistent = true;\n+ public static $persist = true;\n/**\n* @return \... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add TCP SOCKET function codes & minor changes |
323,346 | 29.11.2017 21:46:34 | -28,800 | 7061f337e3dcc38a4ced6cb58b633b67c9049b6a | add UDP part (unfinished~) | [
{
"change_type": "MODIFY",
"old_path": "ext/socket.php",
"new_path": "ext/socket.php",
"diff": "@@ -171,21 +171,23 @@ class socket\n//Process client message\nforeach ($read as $client) {\n//Read message and remove disconnected clients\n- if (0 === (int)socket_recvfrom($client, $msg, self::buffer, 0,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add UDP part (unfinished~) |
323,346 | 01.12.2017 12:47:27 | -28,800 | f0eef9df0e80c97e3c286142dda255307e889f42 | fix implode error | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os.php",
"new_path": "core/ctr/os.php",
"diff": "@@ -83,6 +83,6 @@ class os\npublic static function get_hash(): string\n{\nself::run();\n- return hash('sha256', implode('|', json_encode(self::$sys)));\n+ return hash('sha256', json_encode(self::$sys));... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix implode error |
323,346 | 02.12.2017 14:40:12 | -28,800 | c081a02226bef71e6d2c87d0695c7e0bb22f0281 | move most STDOUT to STDERR
other changes | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os.php",
"new_path": "core/ctr/os.php",
"diff": "@@ -57,8 +57,8 @@ class os\nif (empty(self::$sys)) call_user_func(self::$platform . '::sys_info');\n} catch (\\Throwable $exception) {\nif (DEBUG) {\n- fwrite(STDOUT, self::$os . ' NOT fully supported y... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move most STDOUT to STDERR
other changes |
323,346 | 04.12.2017 23:44:03 | -28,800 | c4e59e348060f13abc22dd208118392cadb541a7 | sock extension on going | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -51,3 +51,12 @@ spl_autoload_register(\nunset($lib, $file);\n}\n);\n+\n+function debug($msg): void\n+{\n+ if (DEBUG) {\n+ fwrite(STDERR, $msg . PHP_EOL);\n+ fclose(STDERR);\n+ }\n+ unset($msg);\n+}\n\\ No ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | sock extension on going |
323,346 | 07.12.2017 22:31:22 | -28,800 | 1852f02c54d4387ff1583a3476b32d6cbc521c65 | socket on going | [
{
"change_type": "MODIFY",
"old_path": "ext/sock.php",
"new_path": "ext/sock.php",
"diff": "@@ -87,6 +87,7 @@ class sock\n*/\npublic static function create(): string\n{\n+ //Check Port\nif (1 > self::$port || 65535 < self::$port) return '';\n//Create socket resource\n@@ -150,71 +151,72 @@ class sock... | PHP | Apache License 2.0 | jerry-shaw/nervsys | socket on going |
323,346 | 07.12.2017 22:39:53 | -28,800 | 6008f965969662d56fee54351333b62c386bd4a5 | move hash value to class variable | [
{
"change_type": "MODIFY",
"old_path": "ext/sock.php",
"new_path": "ext/sock.php",
"diff": "@@ -68,6 +68,9 @@ class sock\n//System information\npublic static $system = [];\n+ //Socket hash\n+ private static $hash = '';\n+\n/**\n* Get system information\n*/\n@@ -83,12 +86,12 @@ class sock\n/**\n* Cre... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move hash value to class variable |
323,346 | 08.12.2017 18:51:47 | -28,800 | d6e85ab900f6c537103003cfa5f663c14374c1bc | socket extension almost done | [
{
"change_type": "MODIFY",
"old_path": "ext/sock.php",
"new_path": "ext/sock.php",
"diff": "@@ -33,12 +33,14 @@ class sock\n* Protocol and type\n* Available as follows:\n*\n- * web:server\n* tcp:server\n* tcp:sender\n*\n* udp:server\n* udp:sender\n+ *\n+ * http:server\n+ *\n* udp:broadcast\n*\n* @va... | PHP | Apache License 2.0 | jerry-shaw/nervsys | socket extension almost done |
323,346 | 09.12.2017 14:10:01 | -28,800 | 1146c5f47fc553feb4bdee0f1f77e9c921cc3d0e | minor fix for tcp & udp reading and writing | [
{
"change_type": "MODIFY",
"old_path": "ext/sock.php",
"new_path": "ext/sock.php",
"diff": "@@ -212,6 +212,16 @@ class sock\n//Read and remove disconnected clients\nforeach ($read as $key => $sock) {\n+\n+ if (false === strpos(self::$type, 'udp:')) {\n+ if (0 === (int)@socket_recv($sock, $msg, self:... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix for tcp & udp reading and writing |
323,346 | 09.12.2017 22:01:39 | -28,800 | cd60c9276b0810e7dab94ce635f9ac689e081ddc | finish socket on TCP/UDP/HTTP support | [
{
"change_type": "MODIFY",
"old_path": "ext/sock.php",
"new_path": "ext/sock.php",
"diff": "@@ -150,18 +150,10 @@ class sock\n*\n* @param array $read\n*/\n- public static function listen(array &$read): void\n+ public static function listen(array &$read = []): void\n{\n- //Only for tcp:server / udp:s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish socket on TCP/UDP/HTTP support |
323,346 | 10.12.2017 09:44:12 | -28,800 | ba907e94363e9f6fab3ccd48aae1c62db99a179e | loose module detection | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cgi.php",
"new_path": "core/ctr/router/cgi.php",
"diff": "@@ -60,6 +60,7 @@ class cgi extends router\nif (!empty($data)) {\nparent::$data = &$data;\nunset($data);\n+ //Try to get CMD & build structure\nif (self::get_cmd()) {\nif (!empty($_FILES... | PHP | Apache License 2.0 | jerry-shaw/nervsys | loose module detection |
323,346 | 11.12.2017 11:29:58 | -28,800 | bc6da3009d4772f9c5cad80fa64c9d42a94a3f8c | Fix data structure error in CLI calling cgi (missing data structure building) | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -103,7 +103,12 @@ class cli extends router\n//Merge options to parent\nif (!empty($opt)) parent::$data = array_merge(parent::$data, $opt);\n- if (self::get_cmd()) $command = true;\n+\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix data structure error in CLI calling cgi (missing data structure building) |
323,346 | 11.12.2017 11:47:31 | -28,800 | af1306a4e1c9162b97812a81bc37f7c5b981eceb | fix result showing on request under CLI | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -104,11 +104,12 @@ class cli extends router\n//Merge options to parent\nif (!empty($opt)) parent::$data = array_merge(parent::$data, $opt);\n- //Build data structure\n+ //Get CMD & bu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix result showing on request under CLI |
323,346 | 11.12.2017 12:29:02 | -28,800 | 8ba6c9239e6bac83cee68eb44114d2d8389354bd | 1. fully remove CLI option key when getting
2. code clean up | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -54,9 +54,6 @@ function load(string $lib): void\nfunction debug(string $msg): void\n{\n- if (DEBUG) {\n- fwrite(STDOUT, $msg . PHP_EOL);\n- exit;\n- }\n+ if (DEBUG) fwrite(STDOUT, $msg . PHP_EOL);\nunset($... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1. fully remove CLI option key when getting
2. code clean up |
323,346 | 11.12.2017 22:45:54 | -28,800 | 4f9e96eb402ed88e08a7fca35ad10255a2311139 | add backup and restore settings for redis default connection in session extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -39,7 +39,6 @@ class redis\npublic static $prefix = '';\npublic static $timeout = 10;\npublic static $persist = true;\n- public static $session = true;\n/**\n* @return \\Redis\n"
},
{
"change_typ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add backup and restore settings for redis default connection in session extension |
323,346 | 11.12.2017 23:09:41 | -28,800 | ea66af280984dfaf10a553e8d6abeff9b42d616a | add session_write_close to prevent unexpected effects | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_session.php",
"new_path": "ext/redis_session.php",
"diff": "@@ -113,6 +113,8 @@ class redis_session extends redis\n[$handler, 'destroy'],\n[$handler, 'gc']\n);\n+\n+ register_shutdown_function('session_write_close');\nsession_start();\nunset($handler... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add session_write_close to prevent unexpected effects |
323,346 | 11.12.2017 23:42:18 | -28,800 | 77d0b78cc700a8cce87ec836385594bd3a695957 | Add setting selector to redis session (self config or default config as redis itself) | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_session.php",
"new_path": "ext/redis_session.php",
"diff": "@@ -30,7 +30,16 @@ namespace ext;\nclass redis_session extends redis\n{\n/**\n- * Default settings for Redis Session\n+ * Use self config to connect Redis\n+ * Set \"true\" to use Redis Sess... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add setting selector to redis session (self config or default config as redis itself) |
323,346 | 12.12.2017 14:41:43 | -28,800 | 510734e61a85b9bbcabd9c0202ad43b1ad6bbcd2 | fix incorrect db selector on pconnect | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_session.php",
"new_path": "ext/redis_session.php",
"diff": "@@ -30,13 +30,19 @@ namespace ext;\nclass redis_session extends redis\n{\n/**\n- * Use self config to connect Redis\n- * Set \"true\" to use Redis Session settings\n- * Set \"false\" to use ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix incorrect db selector on pconnect |
323,346 | 12.12.2017 20:43:51 | -28,800 | 8ccac3d7cdb55732a30fa9c8afc9da5dae359ec9 | minor changes on http extension | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -72,7 +72,7 @@ class http\npublic static $accept = 'text/plain,text/html,text/xml,application/json,*;q=0';\n//User-Agent\n- public static $user_agent = 'Mozilla/5.0 (Compatible; NervSys API 5.0; Granted by... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on http extension |
323,346 | 12.12.2017 21:07:07 | -28,800 | 859484080102407a0ca72056d80222c5c6628af8 | 1. add image extension
2. code clean up | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -91,12 +91,15 @@ class http\n{\n//Parse URL\n$unit = parse_url($url);\n+\n//Check main components\nif (false === $unit || !isset($unit['scheme']) || !isset($unit['host'])) return [];\n+\n//Prepare URL unit... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1. add image extension
2. code clean up |
323,346 | 12.12.2017 21:48:43 | -28,800 | 9f22fc50138742171ae5354a293093dfac3e7da0 | add "errno" extension | [
{
"change_type": "MODIFY",
"old_path": "ext/lang.php",
"new_path": "ext/lang.php",
"diff": "@@ -29,12 +29,12 @@ namespace ext;\nclass lang\n{\n+ //Language file directory (Related to ROOT/module/, language file should be located in \"ROOT/module/$dir/$lang/LC_MESSAGES/lang_file.mo\")\n+ public stati... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "errno" extension |
323,346 | 13.12.2017 15:11:39 | -28,800 | e87711764f28b5e3e39617849edd3824eb00e282 | add upload extension & bug fix & code clean up | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -29,7 +29,13 @@ namespace ext;\nclass errno\n{\n- //Error file directory (Related to ROOT/module/)\n+ /**\n+ * Error file directory\n+ * Related to \"ROOT/module/\"\n+ * Error file should be located in \... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add upload extension & bug fix & code clean up |
323,346 | 17.12.2017 17:21:27 | -28,800 | a745bb916ddb70a3c9dbb69fa09033c7755a23ed | remove global support from redis session extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_session.php",
"new_path": "ext/redis_session.php",
"diff": "@@ -29,69 +29,14 @@ namespace ext;\nclass redis_session extends redis\n{\n- /**\n- * Global Session settings\n- *\n- * Set \"true\" to use independent Redis config\n- * New connection on dif... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove global support from redis session extension |
323,346 | 18.12.2017 17:27:42 | -28,800 | 0bc13e52bcc5e79e68a2f87ca6d5c2d74557be6f | pdo_mysql on going (need help) | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -265,7 +265,7 @@ class upload\n{\n$ext = file::get_ext($file_name);\n//Extension not allowed\n- if ((!empty(self::$file_ext) && !in_array($ext, self::$file_ext)) || (empty(self::$file_ext) && !isset(se... | PHP | Apache License 2.0 | jerry-shaw/nervsys | pdo_mysql on going (need help) |
323,346 | 18.12.2017 22:54:44 | -28,800 | 62ee93bedcd465c52d5c7954218c97662b132641 | remove column comparation | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -43,11 +43,21 @@ class pdo_mysql extends pdo\n* 'charset' => 'utf8mb4' //string: Database charset\n* 'persist' => true //string: Persistent connection option\n*\n- * Leave empty to use default co... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove column comparation |
323,346 | 19.12.2017 00:24:42 | -28,800 | f1838b7ae0b42361f7130130e14b77ebd46390c2 | almost done (untested~) | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -165,6 +165,40 @@ class pdo_mysql extends pdo\nreturn $result;\n}\n+ /**\n+ * Select data\n+ *\n+ * @param string $table\n+ * @param array $option\n+ * @param bool $column\n+ *\n+ * @return array... | PHP | Apache License 2.0 | jerry-shaw/nervsys | almost done (untested~) |
323,346 | 19.12.2017 00:43:17 | -28,800 | c01d0e7b9715eb7226eaad7a789bf5a5546f3da5 | limit values bind should be integer (bugs) | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -187,9 +187,7 @@ class pdo_mysql extends pdo\nself::init();\n//Prepare & execute\n- $sql = 'SELECT ' . $field . ' FROM ' . self::escape($table);\n-\n- foreach ($opt as $item) $sql .= $item;\n+ $s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | limit values bind should be integer (bugs) |
323,346 | 19.12.2017 11:35:02 | -28,800 | d7a7c6f6e992428ac808c177cae3a75f8595c898 | finish "where in / not in" | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -97,7 +97,7 @@ class pdo_mysql extends pdo\n*\n* @return bool\n*/\n- public static function insert(string $table, array $data = [], string &$last = 'id'): bool\n+ public static function insert(st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish "where in / not in" |
323,346 | 19.12.2017 11:44:27 | -28,800 | 894a5cffb16ab6fe1706f6a48cab684bd904092a | add SQL query & exec | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -190,7 +190,7 @@ class pdo_mysql extends pdo\n$sql = 'SELECT ' . $field . ' FROM ' . self::escape($table) . ' ' . implode(' ', $opt);\n$stmt = self::$db_mysql->prepare($sql);\n- !empty($data) ? $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add SQL query & exec |
323,346 | 19.12.2017 12:06:39 | -28,800 | 2da74ebf152e5ff68a3d0616e5c30edbb325d4d5 | bug fix on "delete" | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -220,7 +220,7 @@ class pdo_mysql extends pdo\n//Prepare & execute SQL\nself::init();\n- $sql = 'DELETE ' . self::escape($table) . ' ' . implode(' ', $where_opt);\n+ $sql = 'DELETE FROM ' . self::... | PHP | Apache License 2.0 | jerry-shaw/nervsys | bug fix on "delete" |
323,346 | 19.12.2017 15:24:25 | -28,800 | bce55512395278b71a1ae1e3e14f83f398628177 | remove default key for lastInsertId | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -99,7 +99,7 @@ class pdo_mysql extends pdo\n*\n* @return bool\n*/\n- public static function insert(string $table, array $data, string &$last = 'id'): bool\n+ public static function insert(string ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove default key for lastInsertId |
323,346 | 19.12.2017 21:10:25 | -28,800 | c9b32b380cefdd0cb343af131eeffc5abddf6cee | finish "linux" OS controller | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os.php",
"new_path": "core/ctr/os.php",
"diff": "@@ -53,6 +53,7 @@ class os\n}\ntry {\n+ if (false === realpath(ROOT . strtr(self::$platform, '\\\\', '/') . '.php')) throw new \\Exception(self::$os . ' Controller NOT exist!');\nif (empty(self::$env)) ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish "linux" OS controller |
323,346 | 19.12.2017 21:19:15 | -28,800 | 59fd83a652c0c88720755d3ffe63787aa23a7565 | fix cli command value error | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -262,7 +262,7 @@ class cli extends router\nif ('' === $command) return;\n$command = self::quote_command($command);\n- if (!empty(parent::$data)) $command .= ' ' . implode(' ', self::$... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix cli command value error |
323,346 | 19.12.2017 22:23:58 | -28,800 | 5f7443a74456c4bde5f165facad464c59502bdf4 | fix stream read under linux | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -368,8 +368,8 @@ class cli extends router\nif (self::$log) {\n$log['cmd'] = &$command;\n$log['data'] = self::$cli_data;\n- $log['error'] = self::get_stream([$pipes[2]]);\n- $log['resu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix stream read under linux |
323,346 | 20.12.2017 20:05:36 | -28,800 | e3e6b19ea813bd879ae99a81713b37f6262ebc30 | add "errno" to errno extension | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -76,13 +76,14 @@ class errno\n* Language pack needs to be loaded before getting an error message on multi-language support system\n*\n* @param int $code\n+ * @param int $errno\n*\n* @return array\n*/\n- ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "errno" to errno extension |
323,346 | 20.12.2017 20:18:47 | -28,800 | 244eb285049fbba8bfff8495bfc732a87d2d9dae | fit for new "errno" extension | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -115,7 +115,7 @@ class upload\nerrno::load('ext', 'upload');\n//File not exist\n- if (!isset($_FILES[$name]) || empty($_FILES[$name])) return errno::get(1007);\n+ if (!isset($_FILES[$name]) || empty($_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fit for new "errno" extension |
323,346 | 21.12.2017 12:19:51 | -28,800 | f87f90fc6780f9a589be764c509cdd4dbe4c2e2c | add more DEBUG entries | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cgi.php",
"new_path": "core/ctr/router/cgi.php",
"diff": "@@ -201,6 +201,8 @@ class cgi extends router\n$space = '\\\\' . str_replace('/', '\\\\', $class);\n//Call methods\nif (class_exists($space)) self::call_class($class, $space);\n+ //Debugg... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more DEBUG entries |
323,346 | 21.12.2017 17:04:36 | -28,800 | 37779c5ef89222dac02505ad51c7c6c109c3ebaa | detailed debug mode | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "* along with NervSys. If not, see <http://www.gnu.org/licenses/>.\n*/\n+//Debug mode\n+define('DEBUG', true);\n+\n//Basic Settings\nset_time_limit(0);\n-error_reporting(E_ALL);\nignore_user_abort(true);\n+err... | PHP | Apache License 2.0 | jerry-shaw/nervsys | detailed debug mode |
323,346 | 22.12.2017 22:22:59 | -28,800 | 5444f536a7f1408d7f76f7a9e8a27dda05c751a9 | add HTTP send data via "Request Payload" support | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -68,12 +68,18 @@ class http\n//Return with header\npublic static $with_header = false;\n+ //Send via \"Request Payload\"\n+ public static $send_payload = false;\n+\n//HTTP Accept\npublic static $accept = '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add HTTP send data via "Request Payload" support |
323,346 | 25.12.2017 14:18:42 | -28,800 | 2c51ec31a93ea2c30fb99a27dc7c4d9a95dc8f52 | enhance "DEBUG" levels | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "* along with NervSys. If not, see <http://www.gnu.org/licenses/>.\n*/\n-//Debug mode\n-define('DEBUG', true);\n+/**\n+ * Debug mode\n+ * 0: for production environment (Disable ERROR Reporting)\n+ * 1: for dev... | PHP | Apache License 2.0 | jerry-shaw/nervsys | enhance "DEBUG" levels |
323,346 | 27.12.2017 11:06:33 | -28,800 | b0ee861ddba18157c21fb29c29255892f2fcebd5 | Add "userpwd" option to http extension | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -59,6 +59,9 @@ class http\n//SSL CERT\npublic static $ssl_cert = '';\n+ //Authority\n+ public static $user_pwd = '';\n+\n//Max follow level\npublic static $max_follow = 0;\n@@ -156,46 +159,49 @@ class http... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add "userpwd" option to http extension |
323,346 | 27.12.2017 11:24:54 | -28,800 | b215b577fe8a1bd801dd492baa7859d3070e1969 | remove "lspci" from linux controller | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os/linux.php",
"new_path": "core/ctr/os/linux.php",
"diff": "@@ -107,7 +107,6 @@ class linux extends os\npublic static function sys_info(): void\n{\n$queries = [\n- 'lspci | grep -i \"eth\"',\n'lscpu | grep -E \"Architecture|CPU|Thread|Core|Socket|Ven... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove "lspci" from linux controller |
323,346 | 27.12.2017 14:07:03 | -28,800 | bac9d7334cdc0ba700f2000232930060d003a96f | add more request methods | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -50,6 +50,9 @@ class http\n//Header value\npublic static $Header = [];\n+ //Request Method\n+ public static $Method = 'GET';\n+\n//Last-Modified\npublic static $Modified = '';\n@@ -83,9 +86,6 @@ class http... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more request methods |
323,346 | 28.12.2017 12:47:50 | -28,800 | 3069cb5034becce49fae8641a7542570f5b1c4e9 | add JSON Encode Options | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -46,6 +46,19 @@ define('NS_VER', '5.0.0');\n//Document Root Definition\ndefine('ROOT', realpath(substr(__DIR__, 0, -4)));\n+//JSON Encode Options\n+define(\n+ 'JSON_OPT',\n+ JSON_PRETTY_PRINT |\n+ JSON_NUM... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add JSON Encode Options |
323,346 | 10.01.2018 14:48:22 | -28,800 | c0d08a114ded6c918a6d44c9e6a29463a64164f1 | bind function expanded | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -114,7 +114,7 @@ class pdo_mysql extends pdo\nself::init();\n//Prepare & execute\n- $sql = 'INSERT INTO ' . self::escape($table) . ' (' . implode(', ', $column) . ') VALUES(' . implode(', ', arra... | PHP | Apache License 2.0 | jerry-shaw/nervsys | bind function expanded |
323,346 | 10.01.2018 21:11:10 | -28,800 | 7ca6d4b484a052b1a0c47498e47bdfe94725fa50 | minor changes on JSON encode format | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -234,9 +234,9 @@ class cli extends router\nif (self::$log) {\nself::save_log([\n'cmd' => parent::$cmd,\n- 'data' => json_encode(parent::$data),\n+ 'data' => json_encode(parent::$data,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on JSON encode format |
323,346 | 12.01.2018 19:49:53 | -28,800 | d647c1e6fb3d1d838fea0093fdc8a81a6b2cbf3a | add authcode extension & an example ttf font file | [
{
"change_type": "ADD",
"old_path": "ext/font/georgiab.ttf",
"new_path": "ext/font/georgiab.ttf",
"diff": "Binary files /dev/null and b/ext/font/georgiab.ttf differ\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | add authcode extension & an example ttf font file |
323,346 | 13.01.2018 14:42:37 | -28,800 | 092afb0574f7a90aec644d93154b7c604e13d3ce | quality changed | [
{
"change_type": "MODIFY",
"old_path": "ext/authcode.php",
"new_path": "ext/authcode.php",
"diff": "@@ -218,7 +218,7 @@ class authcode extends crypt\nob_start();\n//Output image\n- imagejpeg($image, null, 0);\n+ imagejpeg($image, null, 25);\nimagedestroy($image);\n//Capture output\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | quality changed |
323,346 | 15.01.2018 12:23:34 | -28,800 | 7c67db600c3ca20c88caa0c52d9905bebc1c28ea | add URL content check function | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -30,7 +30,7 @@ namespace ext;\nclass http\n{\n//Request URL\n- public static $url;\n+ public static $url = null;\n//Protocol Version\npublic static $ver = '2.0';\n@@ -89,6 +89,16 @@ class http\n//CURL Reso... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add URL content check function |
323,346 | 15.01.2018 22:27:07 | -28,800 | 0793bce6ab54f534eecadce29641bdf9e4d2a7d3 | improe crypt extension (not done yet & not tested yet) | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -32,8 +32,8 @@ class crypt\n//Keygen class name\npublic static $keygen = '\\ext\\keygen';\n- //Crypt methods (need 2)\n- public static $method = ['AES-128-XTS', 'AES-256-XTS'];\n+ //Crypt methods\n+ publ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improe crypt extension (not done yet & not tested yet) |
323,346 | 16.01.2018 22:26:34 | -28,800 | 6bfa0b4c9d23a5acef8448130c50636cf31e1c2c | improve crypt extension | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -29,53 +29,29 @@ namespace ext;\nclass crypt\n{\n- //Keygen class name\n+ //Keygen class\npublic static $keygen = '\\ext\\keygen';\n- //Crypt methods\n+ //Crypt method\npublic static $method = 'AES-256-C... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve crypt extension |
323,346 | 17.01.2018 17:55:36 | -28,800 | c9571bcbf6d2b958da8424c66a71f67dfe46243c | some changes on debug to exception | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os.php",
"new_path": "core/ctr/os.php",
"diff": "@@ -52,20 +52,17 @@ class os\nself::$platform = '\\\\core\\\\ctr\\\\os\\\\' . strtolower(self::$os);\n}\n- try {\n- if (false === realpath(ROOT . strtr(self::$platform, '\\\\', '/') . '.php')) throw new... | PHP | Apache License 2.0 | jerry-shaw/nervsys | some changes on debug to exception |
323,346 | 18.01.2018 18:50:03 | -28,800 | d2061b4969ec88b78a322b3ed2c3c550f09c1933 | CLI router improved | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -312,7 +312,7 @@ Remember one param named \"c\" or \"cmd\", the two are equal.\nc/cmd: command\nd/data: CGI data content\np/pipe: CLI pipe content\n- r/return: return type (result (default) / error / data / cmd,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | CLI router improved |
323,346 | 23.01.2018 18:44:02 | -28,800 | d3ff3fb2712aedda3bacab4e063f5bd18ae072d2 | minor changes on debug function | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -85,6 +85,6 @@ function load(string $lib): void\n*/\nfunction debug(string $module, string $message): void\n{\n- if (0 !== DEBUG) 'cli' !== PHP_SAPI ? \\core\\ctr\\router::$result[$module] = &$message : fw... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on debug function |
323,346 | 25.01.2018 12:20:21 | -28,800 | 3673a7eb012bdfb8bd66098b562a2b3cab5d6f00 | reformat readme.md (many thanks to for the Chinese translation) | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -110,7 +110,7 @@ class cli extends router\n* d/data: CGI data content\n* p/pipe: CLI pipe content\n* r/record: record type (result (default) / error / data / cmd, multiple options)\n-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | reformat readme.md (many thanks to @MileHan for the Chinese translation) |
323,346 | 30.01.2018 19:43:27 | -28,800 | 80977530f100f81c8cf36e354f041cec1ebd14ad | update for redis queue extension | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -60,7 +60,7 @@ class pdo_mysql extends pdo\n];\n//MySQL instance resource\n- private static $db_mysql = null;\n+ private static $mysql = null;\n/**\n* Extension Initialization\n@@ -68,7 +68,7 @@ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update for redis queue extension |
323,346 | 30.01.2018 23:23:04 | -28,800 | 5e3c18e445109a46ffa74e493b1bd98ca16073ac | remove empty output detection when no result is held | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router.php",
"new_path": "core/ctr/router.php",
"diff": "@@ -66,11 +66,8 @@ class router\n*/\npublic static function output(): void\n{\n- if (empty(self::$result)) exit;\n-\n$result = 1 === count(self::$result) ? json_encode(current(self::$result), JS... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove empty output detection when no result is held |
323,346 | 31.01.2018 00:18:34 | -28,800 | f3e6ea7a8ac7083e3d55c88f9fe74dde51f25d12 | redis queue extension (not tested) | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "namespace ext;\n+use core\\ctr\\os;\n+\nclass redis_queue extends redis\n{\npublic static $key = [\n- 'start' => ['cmd']\n+ 'start' => [],\n+ 'run' => []\n];\n//Main process key\npublic static $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | redis queue extension (not tested) |
323,346 | 31.01.2018 11:15:14 | -28,800 | ac2f6c9ad86bfccc78ab37856a40c8913ff2496d | remove init function in redis_queue extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -58,20 +58,6 @@ class redis_queue extends redis\n//OS Variables\nprivate static $os_env = [];\n- /**\n- * Initialize\n- *\n- * @throws \\Exception\n- */\n- public static function init(): void... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove init function in redis_queue extension |
323,346 | 31.01.2018 12:18:25 | -28,800 | edd115c448008413dc9a33c094af6eca4630e6e6 | add show fail list function | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -152,6 +152,28 @@ class redis_queue extends redis\nreturn $list;\n}\n+ /**\n+ * Show fail list\n+ *\n+ * @param int $start\n+ * @param int $end\n+ *\n+ * @return array\n+ * @throws \\Exceptio... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add show fail list function |
323,346 | 31.01.2018 13:11:46 | -28,800 | 7c02685968c4442cfe5f3fb1ed7d4705e1108017 | add sleep on no job to lower CPU occupied | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -46,6 +46,9 @@ class redis_queue extends redis\n//Queue scan wait\npublic static $scan_wait = 60;\n+ //Process idle wait (less than scan wait)\n+ public static $idle_wait = 10;\n+\n//Max runn... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add sleep on no job to lower CPU occupied |
323,346 | 31.01.2018 14:24:38 | -28,800 | 6e90eddc7ac0d48be215c6dbd35065ca0e1c53f1 | add external cmd value to queue extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -31,6 +31,26 @@ use core\\ctr\\os;\nclass redis_queue extends redis\n{\n+ /**\n+ * API Command\n+ *\n+ * Examples:\n+ * \"example/queue-process\", etc... (Controlled by API & Safe Key)\n+ * \... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add external cmd value to queue extension |
323,346 | 31.01.2018 15:47:40 | -28,800 | f34f80beec89228547b1adf9691362cedc3f3887 | add in background command builder to WINNT & Linux controller | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os.php",
"new_path": "core/ctr/os.php",
"diff": "@@ -52,10 +52,9 @@ class os\nself::$platform = '\\\\core\\\\ctr\\\\os\\\\' . strtolower(self::$os);\n}\n- if (false === realpath(ROOT . strtr(self::$platform, '\\\\', '/') . '.php')) throw new \\Excepti... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add in background command builder to WINNT & Linux controller |
323,346 | 31.01.2018 15:48:25 | -28,800 | 8453ea4f6788a0b09fc395c3b7e5226c2a9bf4b0 | redis_queue bug fix & tested | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -70,7 +70,7 @@ class redis_queue extends redis\npublic static $idle_wait = 3;\n//Max running clients\n- public static $max_runs = 10;\n+ public static $max_runs = 5;\n//Max operations\npublic... | PHP | Apache License 2.0 | jerry-shaw/nervsys | redis_queue bug fix & tested |
323,346 | 31.01.2018 16:31:08 | -28,800 | dd614bc3a0ca068e1b0947f53b3892db6b780ffd | fix key scan bugs when lost connection to redis server | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -91,14 +91,15 @@ class redis_queue extends redis\nprivate static function get_keys(string $pattern): array\n{\n$list = [];\n- $start = null;\n+ $start = $offset = null;\ndo {\n+ $offset = $st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix key scan bugs when lost connection to redis server |
323,346 | 03.02.2018 16:21:18 | -28,800 | 7bd5c6d974bcb7daec2f7de85a34123a9d86eb64 | minor changes on result output | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router.php",
"new_path": "core/ctr/router.php",
"diff": "@@ -66,9 +66,22 @@ class router\n*/\npublic static function output(): void\n{\n- $result = 1 === count(self::$result) ? json_encode(current(self::$result), JSON_OPT) : json_encode(self::$result,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on result output |
323,346 | 03.02.2018 17:03:45 | -28,800 | b43c4c3db87598a892999764f4870ba204bcfab5 | set default timeout to "0" for CLI pipe return | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -41,7 +41,7 @@ class cli extends router\nprivate static $cgi_mode = false;\n//Pipe timeout option\n- private static $timeout = 2000;\n+ private static $timeout = 0;\n//Record option\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | set default timeout to "0" for CLI pipe return |
323,346 | 03.02.2018 22:56:17 | -28,800 | de5c62b949c390e6914b8817df8ffa0d3e222a88 | fix result structure on CLI mode | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -92,7 +92,6 @@ class cli extends router\n//Prepare cmd\nself::prep_cmd();\n-\nunset($cmd, $optind, $argument);\n}\n@@ -236,7 +235,6 @@ class cli extends router\nif (!is_array($config)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix result structure on CLI mode |
323,346 | 03.02.2018 23:36:59 | -28,800 | 8ea63d18e44d95063aee7fe41135f33131654d05 | fix returned data decode | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -212,9 +212,12 @@ class mpc\n//Read data\n$data = trim(stream_get_contents($item['pipe'][1]));\n- $json = json_decode($data, true);\n- $result[$key]['data'] = is_array($json) ? (!empty($json) ? current($json... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix returned data decode |
323,346 | 06.02.2018 21:50:54 | -28,800 | b8f264af3ab501958546bd949b5403ee7130d5e7 | Support calling Non-Static method via API | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cgi.php",
"new_path": "core/ctr/router/cgi.php",
"diff": "@@ -37,6 +37,9 @@ class cgi extends router\n//Method list\nprivate static $method = [];\n+ //Object list\n+ private static $object = [];\n+\n/**\n* Run CGI Router\n*/\n@@ -278,11 +281,19... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Support calling Non-Static method via API |
323,346 | 08.02.2018 11:18:17 | -28,800 | 1e967ce18c89f8de2ceaf867a2fd04791309d430 | add key mapping to mpc add function | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -70,10 +70,11 @@ class mpc\n*\n* @param string $cmd\n* @param array $argv\n+ * @param string $key\n*/\n- public static function add(string $cmd, array $argv): void\n+ public static function add(string $cmd, ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add key mapping to mpc add function |
323,346 | 10.02.2018 22:23:34 | -28,800 | 80ccfc71c874c41d91288707b6a13c69b50a2862 | fix output error when only string result is captured | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -354,7 +354,6 @@ class cli extends router\n$logs = ['time' => date('Y-m-d H:i:s', $time)] + $logs;\nforeach ($logs as $key => $value) $logs[$key] = strtoupper($key) . ': ' . $value;\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix output error when only string result is captured |
323,346 | 10.02.2018 23:45:54 | -28,800 | 3e36778fddb85fa457606fde6d491575cecc452a | update to fit the latest core (cli) | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -94,7 +94,7 @@ class mpc\n//Build command\nself::$cmd = self::$php_exe . ' \"' . ROOT . '/api.php\"';\n- if (self::$wait) self::$cmd .= ' --record \"result\"';\n+ if (self::$wait) self::$cmd .= ' --ret';\nif... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update to fit the latest core (cli) |
323,346 | 11.02.2018 11:28:11 | -28,800 | 76e85c1d1ff67fc12d1fe45b0c1e23d2cea74e11 | 1. CLI command argument changes
2. Update MPC extension to fit new changes
3. update readme.md | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router/cli.php",
"new_path": "core/ctr/router/cli.php",
"diff": "@@ -40,15 +40,15 @@ class cli extends router\n//CGI callable mode\nprivate static $call_cgi = false;\n- //Pipe timeout option (in microseconds)\n- private static $timeout = 0;\n-\n//Retu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | 1. CLI command argument changes
2. Update MPC extension to fit new changes
3. update readme.md |
323,346 | 13.02.2018 16:20:34 | -28,800 | ea833f34395597059f755ab7cc8822e7a7fa18ad | add session data to redis cache key | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_cache.php",
"new_path": "ext/redis_cache.php",
"diff": "@@ -111,7 +111,7 @@ class redis_cache extends redis\n*/\npublic static function build_key(array $keys = []): string\n{\n- if (empty($keys)) $keys = ['cmd' => router::$cmd, 'data' => router::$dat... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add session data to redis cache key |
323,346 | 25.02.2018 17:06:13 | -28,800 | b93bc0bb51ca3ebe62e35e1f5d203ab84d381724 | rename "API Safe Key" to "API TrustZone", variable name in project classes should be changed from "$key" to "$tz". | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -124,15 +124,15 @@ All script should under the right namespace for better calling by NervSys API.\n/**\n* Important!!!\n*\n- * This is the Safe Key config for NervSys API.\n+ * This is the TrustZone config for N... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename "API Safe Key" to "API TrustZone", variable name in project classes should be changed from "$key" to "$tz". |
323,346 | 25.02.2018 17:40:32 | -28,800 | 656ee4fc297948f862132b744b4b61e9f5bdade1 | fix calling background command with spaces in path | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/os/linux.php",
"new_path": "core/ctr/os/linux.php",
"diff": "@@ -40,7 +40,7 @@ class linux extends os\n*/\npublic static function bg_cmd(string $cmd): string\n{\n- return $cmd . ' > /dev/null 2>/dev/null &';\n+ return '\"' . $cmd . '\" > /dev/null 2>/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix calling background command with spaces in path |
323,346 | 27.02.2018 21:35:24 | -28,800 | 213301e375a24f269ff7e02e64439e7cdcd8e622 | finish CORS function in router | [
{
"change_type": "MODIFY",
"old_path": "core/cfg.php",
"new_path": "core/cfg.php",
"diff": "@@ -56,14 +56,14 @@ define(\nJSON_UNESCAPED_LINE_TERMINATORS\n);\n-//Document Root Definition\n+//Root Path Definition\ndefine('ROOT', realpath(substr(__DIR__, 0, -4)));\n-//Autoload function\n+//Register aut... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish CORS function in router |
323,346 | 27.02.2018 21:51:16 | -28,800 | 2acbd078ee164dee74f5c1afb32b6787ecece959 | bug fix on CORS when in HTTP OPTIONS | [
{
"change_type": "MODIFY",
"old_path": "core/ctr/router.php",
"new_path": "core/ctr/router.php",
"diff": "@@ -139,12 +139,14 @@ class router\nif (!isset($unit['port'])) $unit['port'] = 'https' === $unit['scheme'] ? 443 : 80;\n$file = realpath(ROOT . '/cors/' . implode('.', $unit) . '.php');\n- if (f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | bug fix on CORS when in HTTP OPTIONS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.