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 | 05.11.2019 11:37:53 | -28,800 | b493d3c290e92f1125d0a168634b009c28a18b21 | add "add_error" function to ext\core | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -131,6 +131,22 @@ class core\nreturn factory::build(pool::class)->is_TLS;\n}\n+ /**\n+ * Add error content\n+ *\n+ * @param string $key\n+ * @param $error\n+ */\n+ public static function add_error(string $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "add_error" function to ext\core |
323,346 | 09.11.2019 23:59:26 | -28,800 | 751522165b41415b12900b320472b80ee32052a9 | fix ORDER BY error on multiple conditions | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -784,8 +784,8 @@ class pdo_mysql extends pdo\n}\nif (isset($this->runtime['order'])) {\n- $prep[] = 'ORDER BY ' . implode(' ', $this->runtime['order']);\n- $real[] = 'ORDER BY ' . implode(' ', $t... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix ORDER BY error on multiple conditions |
323,346 | 10.11.2019 12:06:03 | -28,800 | da915437e95631a6aaf89b7447efbc014bec7bfc | remove old code blocks (unfinished) | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -662,10 +662,9 @@ class pdo_mysql extends pdo\nreturn $this->instance->rollBack();\n}\n-\n- // ====================\n-\n-\n+ /**\n+ * Build prep/real SQL\n+ */\npublic function build_sql(): void\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove old code blocks (unfinished) |
323,346 | 10.11.2019 22:56:51 | -28,800 | 11ddf5636afd7939c13b714da902c7d02658e21d | fix SQL builder functions | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -756,17 +756,17 @@ class pdo_mysql extends pdo\n}\n/**\n- * Build prep/real SQL\n+ * Build real/prep SQL\n*/\nprotected function build_sql(): void\n{\n$sql_list = $this->{'build_' . strtolower($t... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix SQL builder functions |
323,346 | 10.11.2019 23:05:42 | -28,800 | 2a60593160475895e6965c1fa1a6c63226665c98 | fix missing bind values | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -91,8 +91,7 @@ class pdo_mysql extends pdo\ntry {\n$stmt = $this->instance->prepare($this->runtime['sql']);\n} catch (\\Throwable $throwable) {\n- throw new \\PDOException('SQL: ' . $this->sql . ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix missing bind values |
323,346 | 11.11.2019 09:34:20 | -28,800 | f4038aab4c3cfca133e3c9c1e2941c0db8319592 | support raw SQL part in where and having | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -793,6 +793,16 @@ class pdo_mysql extends pdo\n//Process conditions\nforeach ($values as $value) {\n+ //Process raw SQL\n+ if (is_string($value)) {\n+ //Check and add raw SQL\n+ if ($this->is_raw... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support raw SQL part in where and having |
323,346 | 11.11.2019 11:43:12 | -28,800 | 467976c732472f91c1351f266df1e8eadd829eab | fix using set_raw in where function | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -793,22 +793,26 @@ class pdo_mysql extends pdo\n//Process conditions\nforeach ($values as $value) {\n- //Process raw SQL\n- if (is_string($value)) {\n- //Check and add raw SQL\n- if ($this->is_ra... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix using set_raw in where function |
323,346 | 11.11.2019 11:50:36 | -28,800 | 580d9ae9df9be943e58d16bcb5c123141689b133 | fix passing var by reference error | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -803,7 +803,9 @@ class pdo_mysql extends pdo\n}\n} else {\n//Check and add raw SQL\n- if ($this->is_raw($item = (string)current($value))) {\n+ $item = (string)current($value);\n+\n+ if ($this->is... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix passing var by reference error |
323,346 | 13.11.2019 10:32:22 | -28,800 | 5cc30638f137af1fbbed267f51273d3662fab429 | rename ext\pdo_mysql to ext\mysql / isolate ext\mysql from extending ext\pdo | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "@@ -27,8 +27,17 @@ namespace ext;\n*/\nclass pdo extends factory\n{\n- /** @var \\PDO $instance */\n- protected $instance;\n+ //PDO username\n+ protected $usr = '';\n+\n+ //PDO password\n+ protected $pwd = '';\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename ext\pdo_mysql to ext\mysql / isolate ext\mysql from extending ext\pdo |
323,346 | 13.11.2019 14:24:10 | -28,800 | 026b484a10b15500dfb5dad180c4abb029a70cfc | isolate redis beased classes from extending ext\redis / using __construct instead of connect to manage instance in factory | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "namespace ext;\n-use core\\lib\\stc\\factory;\n+use core\\lib\\stc\\factory as fty;\nuse core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\nuse core\\ns;\n@@ -47,7 +47,7 @@ class core\n*/\npublic static function... | PHP | Apache License 2.0 | jerry-shaw/nervsys | isolate redis beased classes from extending ext\redis / using __construct instead of connect to manage instance in factory |
323,346 | 13.11.2019 14:42:03 | -28,800 | 18e2e0e9ce7bb02b29e1c62f582d2d9510920a8f | change instance property from protected to public | [
{
"change_type": "MODIFY",
"old_path": "ext/cache.php",
"new_path": "ext/cache.php",
"diff": "@@ -31,7 +31,7 @@ class cache extends factory\nconst PREFIX = 'CAS:';\n/** @var \\Redis $instance */\n- protected $instance;\n+ public $instance;\n/**\n* cache constructor.\n"
},
{
"change_type": "M... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change instance property from protected to public |
323,346 | 14.11.2019 15:20:03 | -28,800 | 88acc8c2ed19b5745fe47eb853b23956548120ef | fix select in srting conditions | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -884,7 +884,7 @@ class mysql extends factory\n$cond_list[$cond_key][] = ',';\n}\n- $this->runtime['cond'][] = $item;\n+ $this->runtime['cond'][] = is_string($item) ? '\"' . $item . '\"' : $item;\n}\n$con... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix select in srting conditions |
323,346 | 16.11.2019 14:46:32 | -28,800 | dd3d758f8f063d873dee7da40afa50ec9f65017a | minor fix on TZ parser error when set as string | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/trustzone.php",
"new_path": "core/lib/stc/trustzone.php",
"diff": "@@ -41,6 +41,12 @@ final class trustzone\n//Create class object\n$class_object = factory::create($class, $params);\n+ //TrustZone NOT found\n+ if (!isset($class_object->tz)) {\n+ u... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix on TZ parser error when set as string |
323,346 | 16.11.2019 16:58:45 | -28,800 | 18150356459254214a783bdc99131bc3fddcf6c3 | revert back to use $this instead of cloned $this in queue | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -85,7 +85,7 @@ class queue extends factory\n}\n/**\n- * Set group key (cloned queue)\n+ * Set group key\n*\n* @param string $group_key\n*\n@@ -94,25 +94,24 @@ class queue extends factory\npublic function... | PHP | Apache License 2.0 | jerry-shaw/nervsys | revert back to use $this instead of cloned $this in queue |
323,346 | 19.11.2019 13:00:49 | -28,800 | 03a42168bc23377a3495d9d20aa26f394a70200c | support using as root namespace if start with APP_PATH in class name | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -75,7 +75,17 @@ final class router\n*/\npublic function get_cls(string $class): string\n{\n- return 0 !== strpos($class = strtr($class, '/', '\\\\'), '\\\\') ? '\\\\' . APP_PATH . '\\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support using as root namespace if start with APP_PATH in class name |
323,346 | 19.11.2019 15:05:51 | -28,800 | eb8a1e47dc732f3a507f0bf1892e3c7eae3a4b5e | fix set_group not working in ext\queue | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "namespace ext;\nuse core\\lib\\stc\\factory as fty;\n+use core\\lib\\std\\io;\nuse core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\nuse core\\lib\\std\\reflect;\n@@ -33,6 +34,9 @@ use core\\lib\\std\\router;... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix set_group not working in ext\queue |
323,346 | 21.11.2019 19:10:04 | -28,800 | c8ddb54837ddb69f62d8c1497509dc1609563341 | keep table name NOT being unset | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -37,6 +37,9 @@ class mysql extends factory\n//Affected rows\nprotected $rows = 0;\n+ //Table name\n+ protected $table = '';\n+\n//Table prefix\nprotected $prefix = '';\n@@ -83,19 +86,15 @@ class mysql ex... | PHP | Apache License 2.0 | jerry-shaw/nervsys | keep table name NOT being unset |
323,346 | 21.11.2019 19:43:12 | -28,800 | 26d77a499f760d3260c6306919a2ef249113bb1c | fix table prefix again | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -87,7 +87,11 @@ class mysql extends factory\npublic function set_table(string $table): void\n{\nif ('' === $table) {\n- $table = '' === $this->table ? get_class($this) : $this->table;\n+ if ('' !== $this... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix table prefix again |
323,346 | 22.11.2019 23:10:25 | -28,800 | c2e4180725afcd4c230b5d3d253bdc828e89a404 | try to fix entry script path error on crontab env | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -35,10 +35,11 @@ define('SYSROOT', dirname(__DIR__));\n$api_path = strtr($_SERVER['SCRIPT_FILENAME'], '\\\\/', DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR);\n$cwd_path = strtr(getcwd(), '\\\\/', DIRECTORY_SEPA... | PHP | Apache License 2.0 | jerry-shaw/nervsys | try to fix entry script path error on crontab env |
323,346 | 23.11.2019 12:15:58 | -28,800 | 55c0f3653c6aeba20b52b47d3655b2731e6b00ed | using str[0] instead of substr(str, 0, 1) in some cases | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -206,7 +206,7 @@ class crypt extends factory\n$noises = str_split($key, 8);\n- $string = 0 === (ord(substr($key, 0, 1)) & 1)\n+ $string = 0 === (ord($key[0]) & 1)\n? $noises[0] . ':' . $string . ':' . $n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using str[0] instead of substr(str, 0, 1) in some cases |
323,346 | 23.11.2019 18:15:05 | -28,800 | 9bb3d6b81854c0cca9962cac5b62e5c7655b7e40 | minor change on namespace detection | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -77,7 +77,7 @@ final class router\n{\n$class = strtr($class, '/', '\\\\');\n- if (0 === strpos($class, '\\\\')) {\n+ if ('\\\\' === $class[0]) {\nreturn $class;\n}\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor change on namespace detection |
323,346 | 23.11.2019 19:08:51 | -28,800 | 2a95f6cc5f0eb5977384b78703ff536950b6cbc5 | improve entry script detection logic | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -31,19 +31,19 @@ define('SYSVER', '7.4.0');\n//Define system root path\ndefine('SYSROOT', dirname(__DIR__));\n-//Get api path and cwd path\n-$api_path = strtr($_SERVER['SCRIPT_FILENAME'], '\\\\/', DIRECTORY_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve entry script detection logic |
323,346 | 25.11.2019 15:09:06 | -28,800 | ef729d429ea5eea1a8147933c47e48a7c1e98e92 | fix ROOT path NOT captured in some cases when using "/" under windows | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -32,7 +32,7 @@ define('SYSVER', '7.4.0');\ndefine('SYSROOT', dirname(__DIR__));\n//Get script file as entry script\n-$entry_script = &$_SERVER['SCRIPT_FILENAME'];\n+$entry_script = strtr($_SERVER['SCRIPT_FIL... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix ROOT path NOT captured in some cases when using "/" under windows |
323,346 | 26.11.2019 12:01:18 | -28,800 | b9635c37bdb6882c9c0fc157936f599aa6fb5d83 | fix keys re-build in the same instance | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -53,6 +53,9 @@ class queue extends factory\nprivate $max_fork = 10;\nprivate $max_exec = 1000;\n+ //Key prepare status\n+ private $key_prep = false;\n+\n//Queue name\nprivate $key_name = 'main:';\n@@ -48... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix keys re-build in the same instance |
323,346 | 26.11.2019 15:33:52 | -28,800 | 2f00384567de73372e8134e000c1aa5a4ecad4fe | improve queue key slot logic | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -49,33 +49,34 @@ class queue extends factory\n/** @var \\Redis $instance */\npublic $instance;\n+ /** @var \\core\\lib\\std\\os $unit_os */\n+ private $unit_os;\n+\n//Process properties\nprivate $max_for... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve queue key slot logic |
323,346 | 26.11.2019 16:54:38 | -28,800 | 8dcf66f15c95cca281004c30e99d022893132624 | throw all errors into ErrorException | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -75,7 +75,7 @@ final class error\n/**\n* Shutdown handler\n*\n- * @throws \\Exception\n+ * @throws \\ErrorException\n*/\npublic static function shutdown_handler(): void\n{\n@@ -85,8 +85... | PHP | Apache License 2.0 | jerry-shaw/nervsys | throw all errors into ErrorException |
323,346 | 28.11.2019 10:57:13 | -28,800 | 4c2ee723bf68b0314d15cf5944dff64b82592651 | rename ext\lib to ext\imp | [
{
"change_type": "RENAME",
"old_path": "ext/lib/key.php",
"new_path": "ext/imp/key.php",
"diff": "* limitations under the License.\n*/\n-namespace ext\\lib;\n+namespace ext\\imp;\ninterface key\n{\n"
},
{
"change_type": "MODIFY",
"old_path": "ext/keygen.php",
"new_path": "ext/keygen.... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename ext\lib to ext\imp |
323,346 | 29.11.2019 11:10:16 | -28,800 | cced46ff0fe88933d8b9e46c65dcaabd935238f8 | add del function to factory in core to remove a saved object | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/factory.php",
"new_path": "core/lib/stc/factory.php",
"diff": "@@ -96,15 +96,13 @@ final class factory\n*/\npublic static function move(object $object, string $alias): object\n{\n- //Unset original index\n- if (false !== $key = array_search($objec... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add del function to factory in core to remove a saved object |
323,346 | 10.12.2019 01:08:37 | -28,800 | a469ae707bf86af7a31860544c784e10114b1905 | a lot of tiny changes | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "* limitations under the License.\n*/\n-//Declare strict types\n-declare(strict_types = 1);\n-\n-set_time_limit(0);\n+//Set error_reporting level\nerror_reporting(E_ALL);\n-ignore_user_abort(true);\n-//Load system scrip... | PHP | Apache License 2.0 | jerry-shaw/nervsys | a lot of tiny changes |
323,346 | 14.12.2019 00:45:42 | -28,800 | 5da2c0a585e9b020fee78689bc5f2043d148601d | improve ext\core logic on get_cmd_list function / minor changes | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "namespace ext;\n-use core\\lib\\stc\\factory as fty;\n+use core\\lib\\stc\\factory;\nuse core\\lib\\std\\io;\nuse core\\lib\\std\\os;\nuse core\\lib\\std\\pool;\n-use core\\lib\\std\\reflect;\nuse core\\lib\\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve ext\core logic on get_cmd_list function / minor changes |
323,346 | 14.12.2019 10:51:32 | -28,800 | 3118acfac0a6e476ba9c6472639bd6411758c31b | minor change on log file name | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -186,7 +186,7 @@ class mpc extends factory\n[\n['pipe', 'r'],\n['pipe', 'w'],\n- ['file', \\core\\lib\\stc\\factory::build(pool::class)->conf['log']['save_path'] . DIRECTORY_SEPARATOR . date('Y-m-d') . '_mpc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor change on log file name |
323,346 | 14.12.2019 17:00:56 | -28,800 | 9ecd0289f49ef641ecae7631dc4c4c3af4bd0972 | rename "api.php" to "api.php.example" | [
{
"change_type": "RENAME",
"old_path": "api.php",
"new_path": "api.php.example",
"diff": "<?php\n/**\n- * API Entry script\n+ * API Entry script example\n*\n* Copyright 2016-2019 Jerry Shaw <jerry-shaw@live.com>\n*\n@@ -24,5 +24,11 @@ error_reporting(E_ALL);\n//Load main script\nrequire __DIR__ . '/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename "api.php" to "api.php.example" |
323,346 | 15.12.2019 22:17:49 | -28,800 | 57d7e62728ae5b8132c8de4995b4e1400cadac0b | Start writing readme and docs | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Current version: 7.4.0 (Under producing)\n+Stable version: 7.4.0\n+Extension version: 3.0\n+\n+## About Nervsys\n+\n+* What is Nervsys?\n+A very slight framework based on PHP7.2+ for universal API contr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Start writing readme and docs |
323,346 | 15.12.2019 23:30:02 | -28,800 | 0cc5a8eecfb10d503226e0651e0f3fd81e9fe0c6 | minor changes on ext\factory | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -48,13 +48,11 @@ class factory\n* New a stdClass by passing simply arguments\n* Arguments will be simply passed as is\n*\n- * @param mixed ...$arguments\n- *\n* @return $this\n*/\n- public static fun... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on ext\factory |
323,346 | 18.12.2019 13:37:08 | -28,800 | 57487c33f1ac3399ff52799594ae714b1aae0e03 | fix where in error when input array key NOT start from 0 | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -877,6 +877,7 @@ class mysql extends factory\n}\n} else {\n$commas = count($data) - 1;\n+ $data = array_values($data);\n$cond_list[$cond_key][] = '(';\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix where in error when input array key NOT start from 0 |
323,346 | 18.12.2019 13:46:07 | -28,800 | 016d85893233afbd97fffdc9cf0ed1c953e1cd2b | clear log pool after save | [
{
"change_type": "MODIFY",
"old_path": "ext/log.php",
"new_path": "ext/log.php",
"diff": "@@ -90,6 +90,7 @@ class log extends factory\n}\nfwrite($file[$key], implode(PHP_EOL, $this->log_pool) . PHP_EOL . PHP_EOL);\n+ $this->log_pool = [];\nunset($key, $log);\n}\n}\n\\ No newline at end of file\n"
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | clear log pool after save |
323,346 | 18.12.2019 13:48:26 | -28,800 | cce7ad9b204c4c0338e9edeeccae2519b3bd93cd | clear jobs after fetch http results | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -148,6 +148,9 @@ class http extends factory\n//Close cURL handle\ncurl_close($item['curl']);\n+ //Clear jobs\n+ $this->jobs = [];\n+\nunset($item);\nreturn $res;\n}\n@@ -208,6 +211,9 @@ class http extends ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | clear jobs after fetch http results |
323,346 | 18.12.2019 14:15:30 | -28,800 | 3b29f4b64da5ec728031744696fe8d4ba4fc9cb1 | fix building real SQL error with wrong param data (array pointer not moved) | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -756,7 +756,7 @@ class mysql extends factory\n*\n* @return array\n*/\n- protected function get_cond(array $cond_list, array $bind_list): array\n+ protected function get_cond(array $cond_list, array &$bin... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix building real SQL error with wrong param data (array pointer not moved) |
323,346 | 20.12.2019 17:29:05 | -28,800 | 806cf51fc710a64412b66277ce81c60e7059360c | add success log rec in queue | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -55,6 +55,7 @@ class queue extends factory\n//Process properties\nprivate $max_fork = 10;\nprivate $max_exec = 1000;\n+ private $max_hist = 2000;\n//Queue name\nprivate $key_name = 'main:';\n@@ -67,6 +68... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add success log rec in queue |
323,346 | 20.12.2019 23:15:54 | -28,800 | 1b01f01ed4c385b3139cedf65fee53b298e03bc6 | merge "show_fail" and "show_succ" into "show_logs" | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -195,46 +195,36 @@ class queue extends factory\n}\n/**\n- * Show fail list\n+ * Show success/failed logs\n*\n+ * @param string $type\n* @param int $start\n* @param int $end\n*\n* @return array\n+ * @thro... | PHP | Apache License 2.0 | jerry-shaw/nervsys | merge "show_fail" and "show_succ" into "show_logs" |
323,346 | 23.12.2019 16:12:57 | -28,800 | f4966b9dd7770636dc063b5d3d7412061a5ce71a | fix return type mismatch | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -68,6 +68,9 @@ class crypt_img extends crypt\n{\n$this->width = &$width;\n$this->height = &$height;\n+\n+ unset($width, $height);\n+ return $this;\n}\n/**\n@@ -80,6 +83,9 @@ class crypt_img exten... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix return type mismatch |
323,346 | 23.12.2019 16:18:46 | -28,800 | d541b69451d2a8a30c7df234006d7d9ea5230ece | fix font path error | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -123,7 +123,7 @@ class crypt_img extends crypt\n$codes['code'] = parent::sign(json_encode(['code' => $codes['code'], 'life' => time() + (0 < $life ? $life : 60)]));\n//Font properties\n- $font_fi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix font path error |
323,346 | 23.12.2019 16:34:16 | -28,800 | 443d046bcc1c529135e9953fde5dd3d625349a35 | add noise count property for adding noises by image height | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -168,8 +168,9 @@ class crypt_img extends crypt\nunset($codes['char'], $text);\n- //Add arcs\n- for ($i = 0; $i < 5; ++$i) {\n+ //Add arc noise\n+ $noise_count = ceil($this->height / 8);\n+ for ($... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add noise count property for adding noises by image height |
323,346 | 25.12.2019 11:03:03 | -28,800 | ec7408512ac566e955a973875a18e27d01f0956b | using Redis/PDO instance instead of passing conf to related extensions | [
{
"change_type": "MODIFY",
"old_path": "ext/cache.php",
"new_path": "ext/cache.php",
"diff": "@@ -36,15 +36,12 @@ class cache extends factory\n/**\n* cache constructor.\n*\n- * @param array $conf\n- *\n- * @throws \\RedisException\n- * @throws \\ReflectionException\n+ * @param \\Redis $redis\n*/\n- ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using Redis/PDO instance instead of passing conf to related extensions |
323,346 | 25.12.2019 22:11:47 | -28,800 | a1d27de2d69155ada759c36c0d66d5be1f544ac2 | finalize captcha extension (security level up) | [
{
"change_type": "MODIFY",
"old_path": "ext/captcha.php",
"new_path": "ext/captcha.php",
"diff": "@@ -25,7 +25,7 @@ namespace ext;\n*\n* @package ext\n*/\n-class captcha\n+class captcha extends factory\n{\n//Predefined types\nconst TYPE_MIX = 'mix';\n@@ -62,7 +62,7 @@ class captcha\n//Length (only w... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finalize captcha extension (security level up) |
323,346 | 26.12.2019 09:11:42 | -28,800 | 0f0da115435e3c35bd0024849b30880a07ae2de8 | always del captcha key in redis | [
{
"change_type": "MODIFY",
"old_path": "ext/captcha.php",
"new_path": "ext/captcha.php",
"diff": "@@ -311,12 +311,8 @@ class captcha extends factory\nif ($this->unit_redis instanceof \\Redis) {\n//Store in Redis\n$key_name = self::KEY_PREFIX . $hash;\n- $key_code = $this->unit_redis->get($key_name);... | PHP | Apache License 2.0 | jerry-shaw/nervsys | always del captcha key in redis |
323,346 | 26.12.2019 09:17:36 | -28,800 | bbebaf883488d941fbba42ac219ade3de73dd524 | rename "code" to "hash" | [
{
"change_type": "MODIFY",
"old_path": "ext/captcha.php",
"new_path": "ext/captcha.php",
"diff": "@@ -155,7 +155,7 @@ class captcha extends factory\n$codes = $this->{'build_' . $types[mt_rand(0, count($types) - 1)]}();\n//Generate encrypt code\n- $codes['code'] = $this->generate_hash($codes['code'],... | PHP | Apache License 2.0 | jerry-shaw/nervsys | rename "code" to "hash" |
323,346 | 26.12.2019 16:49:56 | -28,800 | bf7b7864678ebf04f3b05e4a197241ccfa8c090f | keep going docs | [
{
"change_type": "MODIFY",
"old_path": "doc/Configurations.md",
"new_path": "doc/Configurations.md",
"diff": "+# Configurations\n+\n+As you may notice that, there are two .example files in the root of NS. One with the name of \"app.ini.example\" is the main configuration file, which controls the cor... | PHP | Apache License 2.0 | jerry-shaw/nervsys | keep going docs |
323,346 | 31.12.2019 15:50:29 | -28,800 | e59b668650384af736b51799565c0beb7930078c | add new methods to ext\queue | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -191,6 +191,55 @@ class queue extends factory\nreturn $result;\n}\n+ /**\n+ * Rollback a failed job to realtime list\n+ *\n+ * @param string $job_json\n+ *\n+ * @return int\n+ * @throws \\Exception\n+ */... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add new methods to ext\queue |
323,346 | 16.01.2020 22:41:25 | -28,800 | f589f56dded56ef16fcc54b7fb865942e828e824 | move listen keys from hash to sets, improve brpop logic to support redis cluster server | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -288,7 +288,7 @@ class queue extends factory\n//Build process keys\n$this->build_keys();\n- return $this->get_keys($this->key_slot['listen']);\n+ return $this->instance->sMembers($this->key_slot['listen'... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move listen keys from hash to sets, improve brpop logic to support redis cluster server |
323,346 | 16.01.2020 23:08:17 | -28,800 | f4a3a5bb7247b707e6d245d9c9dfacc944683161 | fix unit process caller logic | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -397,7 +397,7 @@ class queue extends factory\n$running = $this->instance->expire($master_key, self::WAIT_SCAN);\n//Idle wait on no job or unit process running\n- if (false === $job_key = $this->instance-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix unit process caller logic |
323,346 | 22.01.2020 13:22:28 | -28,800 | abba1adb35d370c0f4b464f744c8c0fa544b4484 | using {key} to finally support redis cluster server for ext\lock and ext\queue | [
{
"change_type": "MODIFY",
"old_path": "ext/lock.php",
"new_path": "ext/lock.php",
"diff": "@@ -28,7 +28,7 @@ namespace ext;\nclass lock extends factory\n{\n//Key prefix\n- const PREFIX = 'LOCK:';\n+ const PREFIX = '{LCK}:';\n//Wait time\nconst WAIT = 1000;\n"
},
{
"change_type": "MODIFY",
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using {key} to finally support redis cluster server for ext\lock and ext\queue |
323,346 | 31.01.2020 17:42:46 | -28,800 | 148a2bb0092a0f3265d03e0b50efdf772edffa9c | remove useless md files | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -35,10 +35,10 @@ PHP **7.2+** and above. Any kind of web server or running under CLI mode.\n8. [How to Install](doc/HowtoInstall.md)\n9. [Custom Router](doc/CustomRouter.md)\n10. [Custom Output Handler](doc/Cust... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove useless md files |
323,346 | 10.02.2020 12:36:49 | -28,800 | 2f15bf4b395ae8a9e13cade5be7dd1c8a2ae4eb3 | fix xml output handler error | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -232,8 +232,13 @@ final class io\n$data = current($data);\n}\n+ //Merge error data\n+ if (!empty($error)) {\n+ $data = $error + ['data' => &$data];\n+ }\n+\n//Build full result\n- $result = $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix xml output handler error |
323,346 | 10.02.2020 14:31:14 | -28,800 | 5311b0d235a732bdbc136e17a9b98c5407a5b8e1 | support join statement on update | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -1019,6 +1019,11 @@ class mysql extends factory\n$result['prep'][] = 'UPDATE';\n$result['prep'][] = $this->table;\n+\n+ if (isset($this->runtime['join'])) {\n+ $result['prep'][] = implode(' ', $this->run... | PHP | Apache License 2.0 | jerry-shaw/nervsys | support join statement on update |
323,346 | 19.02.2020 11:39:55 | -28,800 | bf1df887c64b48f519d5601597bc31007bbc4251 | fix a dead loop when output as XML/IO with error messages | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -211,7 +211,7 @@ final class io\n}\n//Build full result\n- $result = json_encode(!empty($error) ? $error + ['data' => &$data] : $data, JSON_FORMAT);\n+ $result = json_encode(!empty($error) ? ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix a dead loop when output as XML/IO with error messages |
323,346 | 21.02.2020 14:27:55 | -28,800 | 492a12cdea69f54e81ba2af3998de945dc5a25ee | add upload root path parameter | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -103,6 +103,16 @@ class upload extends factory\n//File\nprivate $file = [];\n+ /**\n+ * upload constructor.\n+ *\n+ * @param string $upload_root\n+ */\n+ public function __construct(string $upload_root... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add upload root path parameter |
323,346 | 22.02.2020 19:23:36 | -28,800 | b91c0d0a901eb269c9649053efa03ffa5f95801b | update README.md with JetBrains Open Source license URL | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -65,7 +65,7 @@ PHP **7.2+** and above. Any kind of web server or running under CLI mode.\n## Supporters\n-Thanks to [JetBrains](https://www.jetbrains.com/) for supporting the project, within the Open Source Supp... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update README.md with JetBrains Open Source license URL |
323,346 | 08.03.2020 14:28:38 | -28,800 | 29e96d1a6ce89a64dbcb7256afbda35cdefddac4 | Experimentally remove __construct function from some extensions | [
{
"change_type": "MODIFY",
"old_path": "ext/cache.php",
"new_path": "ext/cache.php",
"diff": "@@ -33,17 +33,6 @@ class cache extends factory\n/** @var \\Redis $instance */\npublic $instance;\n- /**\n- * cache constructor.\n- *\n- * @param \\Redis $redis\n- */\n- public function __construct(\\Redis $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Experimentally remove __construct function from some extensions |
323,346 | 08.03.2020 15:26:05 | -28,800 | 9707531e466eabb5b8b48e0fbd7b25a1fe535e36 | remove "conf" function from ext\factory | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -57,7 +57,6 @@ class factory\n/**\n* Get original stdClass from called class with alias\n- * Defined by class saved from \"as\"\n*\n* @param string $alias\n*\n@@ -70,7 +69,7 @@ class factory\n}\n/**\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove "conf" function from ext\factory |
323,346 | 09.03.2020 09:46:23 | -28,800 | d9761cd0e0b8130f4da2ae43cf2be1b430e8375a | add magic method "use_*" to copy an object to property named follow * | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -30,6 +30,23 @@ use core\\lib\\stc\\factory as fty;\n*/\nclass factory\n{\n+ /**\n+ * @param string $name\n+ * @param array $arguments\n+ *\n+ * @return $this\n+ */\n+ public function __call(string $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add magic method "use_*" to copy an object to property named follow * |
323,346 | 09.03.2020 10:03:03 | -28,800 | 2c1a425b96e2f368eefa014cb88c848419510c7f | improve __call logic in ext\factory | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -31,6 +31,8 @@ use core\\lib\\stc\\factory as fty;\nclass factory\n{\n/**\n+ * Use an object (copy to class property)\n+ *\n* @param string $name\n* @param array $arguments\n*\n@@ -38,12 +40,11 @@ cl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve __call logic in ext\factory |
323,346 | 09.03.2020 10:03:30 | -28,800 | b3ad1d2c2fcfb5bb28eb6755d368aaa68f635172 | update ext\cache | [
{
"change_type": "MODIFY",
"old_path": "ext/cache.php",
"new_path": "ext/cache.php",
"diff": "@@ -30,8 +30,8 @@ class cache extends factory\n//Cache key prefix\nconst PREFIX = 'CAS:';\n- /** @var \\Redis $instance */\n- public $instance;\n+ /** @var \\Redis $redis */\n+ public $redis;\n/**\n* Set ca... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\cache |
323,346 | 09.03.2020 10:06:04 | -28,800 | 83f96f24a55ea112ad8912869d99ce1232ecb1d0 | update ext\captcha | [
{
"change_type": "MODIFY",
"old_path": "ext/captcha.php",
"new_path": "ext/captcha.php",
"diff": "@@ -46,11 +46,11 @@ class captcha extends factory\nself::TYPE_CALC,\n];\n- /** @var \\ext\\crypt $unit_crypt */\n- public $unit_crypt;\n+ /** @var \\ext\\crypt $crypt */\n+ public $crypt;\n- /** @var \\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\captcha |
323,346 | 09.03.2020 10:07:37 | -28,800 | 96dc3a7c832d137bdee976d9881b512ed5dfa09d | update ext\pool | [
{
"change_type": "MODIFY",
"old_path": "ext/conf.php",
"new_path": "ext/conf.php",
"diff": "@@ -28,7 +28,7 @@ namespace ext;\nclass conf\n{\n//Configuration pool\n- private static $conf_pool = [];\n+ private static $pool = [];\n/**\n* Load config file\n@@ -44,7 +44,7 @@ class conf\n$conf_file = ROOT... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\pool |
323,346 | 09.03.2020 10:16:56 | -28,800 | edfda50fc54030281806a09dbc2ca78dd9c222f0 | update ext\factory to support "set_*" | [
{
"change_type": "MODIFY",
"old_path": "ext/factory.php",
"new_path": "ext/factory.php",
"diff": "@@ -40,7 +40,7 @@ class factory\n*/\npublic function __call(string $name, array $arguments): object\n{\n- if (0 === strpos($name, 'use_') && false !== $var_name = substr($name, 4)) {\n+ if (in_array(sub... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\factory to support "set_*" |
323,346 | 09.03.2020 10:19:54 | -28,800 | 76c05e49d7e450a854fc26ea2a6790b32b2e2a14 | update ext\lock | [
{
"change_type": "MODIFY",
"old_path": "ext/lock.php",
"new_path": "ext/lock.php",
"diff": "@@ -36,8 +36,8 @@ class lock extends factory\n//Retry limit\nconst RETRY = 10;\n- /** @var \\Redis $instance */\n- public $instance;\n+ /** @var \\Redis $redis */\n+ public $redis;\n//Lock pool\nprivate $lock... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\lock |
323,346 | 09.03.2020 10:21:46 | -28,800 | dbd560a754c75bb5944ebe4276232a4086978985 | update ext\mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -28,8 +28,8 @@ namespace ext;\n*/\nclass mysql extends factory\n{\n- /** @var \\PDO $instance */\n- public $instance;\n+ /** @var \\PDO $pdo */\n+ public $pdo;\n//Last SQL\nprotected $sql = '';\n@@ -115,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\mysql |
323,346 | 09.03.2020 10:24:27 | -28,800 | 11323df0e8fe8046e28dd2888b2b9e76efdbecc7 | update ext\queue | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -46,8 +46,8 @@ class queue extends factory\nconst WAIT_IDLE = 3;\nconst WAIT_SCAN = 60;\n- /** @var \\Redis $instance */\n- public $instance;\n+ /** @var \\Redis $redis */\n+ public $redis;\n/** @var \\c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\queue |
323,346 | 09.03.2020 10:32:41 | -28,800 | 81b3a6890b679c6728d4abab74703033c47ad971 | update ext\session | [
{
"change_type": "MODIFY",
"old_path": "ext/session.php",
"new_path": "ext/session.php",
"diff": "@@ -30,22 +30,27 @@ class session extends factory\n//SESSION key prefix\nconst PREFIX = 'SESS:';\n- /** @var \\Redis $instance */\n- public $instance;\n+ /** @var \\Redis $redis */\n+ public $redis;\n//... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update ext\session |
323,346 | 09.03.2020 11:44:16 | -28,800 | 8782b135666780ca3774d7ae0511483184ecd31b | fix set fields "table.*" error in ext\mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -637,7 +637,7 @@ class mysql extends factory\n$offset = 0;\n$length = strlen($item);\n- $symbol = ['+', '-', '*', '/', '(', ')'];\n+ $symbol = ['.', '+', '-', '*', '/', '(', ')'];\ndo {\n$find = [];\n"
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix set fields "table.*" error in ext\mysql |
323,346 | 09.03.2020 11:45:32 | -28,800 | a3690b5574dc58413fa4b5369b3ee32e1a4b393b | change method name from "set_raw" to "raw" for short | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -53,7 +53,7 @@ class mysql extends factory\n*\n* @return string\n*/\n- public function set_raw(string $value): string\n+ public function raw(string $value): string\n{\nif (!isset($this->runtime['raw'])) ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change method name from "set_raw" to "raw" for short |
323,346 | 10.03.2020 13:18:52 | -28,800 | f08db6ec892f9fbcacf382129ea288551a3ffb6d | using BitMask value in ext\queue to support compound queue type | [
{
"change_type": "MODIFY",
"old_path": "ext/queue.php",
"new_path": "ext/queue.php",
"diff": "@@ -37,10 +37,10 @@ class queue extends factory\n//Key prefix\nconst KEY_PREFIX = '{Q}:';\n- //Queue type\n- const TYPE_DELAY = 'delay';\n- const TYPE_UNIQUE = 'unique';\n- const TYPE_REALTIME = 'realtime';... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using BitMask value in ext\queue to support compound queue type |
323,346 | 11.03.2020 11:42:38 | -28,800 | 50d2cc9b20f13015c76754f97c84e0d371970362 | count numeric value NOT to be string | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -891,7 +891,15 @@ class mysql extends factory\n$cond_list[$cond_key][] = ',';\n}\n- $this->runtime['cond'][] = is_string($item) ? '\"' . $item . '\"' : $item;\n+ if (!is_string($item)) {\n+ $this->runtim... | PHP | Apache License 2.0 | jerry-shaw/nervsys | count numeric value NOT to be string |
323,346 | 12.03.2020 18:00:35 | -28,800 | a3c51408bc1b4a58fec192067d1b2896e888af05 | build action with checking unfinished actions to avoid errors | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -164,7 +164,7 @@ class mysql extends factory\n*/\npublic function insert(string $table = ''): object\n{\n- $this->runtime['action'] = 'INSERT';\n+ $this->build_act(__FUNCTION__);\n$this->set_table($table... | PHP | Apache License 2.0 | jerry-shaw/nervsys | build action with checking unfinished actions to avoid errors |
323,346 | 17.03.2020 14:42:11 | -28,800 | 32b22d325dada46c42713480fd2cf9e0a58703fd | add simple autoload function in ext\core | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -42,6 +42,30 @@ class core\nexit(0);\n}\n+ /**\n+ * Set autoload to target path\n+ *\n+ * @param string $path\n+ */\n+ public static function autoload(string $path): void\n+ {\n+ $path = ROOT . '/' . $path... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add simple autoload function in ext\core |
323,346 | 27.03.2020 16:52:44 | -28,800 | 74d85d70f5a6fd5439c7797cb23e71ff1e527414 | add get_cmd_val to get raw input command value | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -126,6 +126,16 @@ class core\nreturn factory::build(os::class)->php_path();\n}\n+ /**\n+ * Get input cmd value\n+ *\n+ * @return string\n+ */\n+ public static function get_cmd_val(): string\n+ {\n+ return ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add get_cmd_val to get raw input command value |
323,346 | 16.04.2020 21:59:05 | -28,800 | ed1ef7ea2c36b208322e5d762cbfb318d79e9097 | add more debug info when another SQL action is on going | [
{
"change_type": "MODIFY",
"old_path": "ext/mysql.php",
"new_path": "ext/mysql.php",
"diff": "@@ -117,7 +117,7 @@ class mysql extends factory\ntry {\n$stmt = $this->pdo->prepare($this->runtime['sql']);\n} catch (\\Throwable $throwable) {\n- throw new \\PDOException('SQL: ' . $this->sql . '. ' . PHP_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add more debug info when another SQL action is on going |
323,346 | 20.04.2020 13:45:21 | -28,800 | d42ee482f42f9207514b2fe605770c223f27ee90 | fix getting data error from XML string | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/io.php",
"new_path": "core/lib/std/io.php",
"diff": "@@ -80,7 +80,7 @@ final class io\n//Decode data in XML\nlibxml_use_internal_errors(true);\n- $xml = simplexml_load_string($input);\n+ $xml = simplexml_load_string($input, 'SimpleXMLElement', LIB... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix getting data error from XML string |
323,346 | 26.04.2020 17:29:47 | -28,800 | 6ea711c4dbc933222ed1b51e57e0676a22302e05 | fix CORS detection bugs | [
{
"change_type": "MODIFY",
"old_path": "core/ns.php",
"new_path": "core/ns.php",
"diff": "@@ -150,8 +150,7 @@ final class ns\n//Verify CORS in CGI mode\nif (!$this->unit_pool->is_CLI && !$this->pass_cors($conf['cors'])) {\n- http_response_code(406);\n- exit;\n+ exit(0);\n}\n//Run INIT section (ONLY ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix CORS detection bugs |
323,346 | 06.05.2020 14:53:37 | -28,800 | b9225d65244bfbd3943cba5b26f42829da1dcc8a | response HTTP 500 when error occured | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -157,11 +157,15 @@ final class error\nunset($throwable, $exception, $err_lv, $unit_log, $message, $context);\n- //Exit on error\n- if ($stop_on_error && 0 < ($err_code & error_reporting... | PHP | Apache License 2.0 | jerry-shaw/nervsys | response HTTP 500 when error occured |
323,346 | 06.05.2020 15:50:40 | -28,800 | 89b169bcf28d8a374d0125e2f496e290ff038b30 | add "$save_to_log" param to control log writer | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -108,8 +108,9 @@ final class error\n*\n* @param \\Throwable $throwable\n* @param bool $stop_on_error\n+ * @param bool $save_to_log\n*/\n- public static function exception_handler(\\Thro... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "$save_to_log" param to control log writer |
323,346 | 06.05.2020 16:05:15 | -28,800 | 5955be1732c15d1613a048650f8da66215ab7123 | always display logs even when "$save_to_log" set to false | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -129,6 +129,9 @@ final class error\n$err_code = E_USER_NOTICE;\n}\n+ /** @var \\core\\lib\\std\\log $unit_log */\n+ $unit_log = factory::build(log::class);\n+\n/** @var \\core\\lib\\std... | PHP | Apache License 2.0 | jerry-shaw/nervsys | always display logs even when "$save_to_log" set to false |
323,346 | 06.05.2020 16:23:32 | -28,800 | f5a40c8ef084fd6d4ac01358d621098f37a174ac | add log display only in two positions for debugging | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -58,7 +58,7 @@ final class cgi\n}\n/**\n- * Call CMD group\n+ * Call parsed CMD group\n*\n* @param array $cmd_group\n*\n@@ -70,10 +70,8 @@ final class cgi\n$call_results = [];\nwhile (is_array($gro... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add log display only in two positions for debugging |
323,346 | 06.05.2020 16:58:17 | -28,800 | 7a191852b407d67a5fe49dc291b805fdf4684044 | add cmd formatter to support custom router parser more efficiently | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/router.php",
"new_path": "core/lib/std/router.php",
"diff": "@@ -66,6 +66,42 @@ final class router\nreturn $routes;\n}\n+ /**\n+ * Format cmd group values\n+ *\n+ * @param array $cmd_group\n+ *\n+ * @return array|array[]\n+ */\n+ public function f... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add cmd formatter to support custom router parser more efficiently |
323,346 | 06.05.2020 17:45:49 | -28,800 | eaa210b77367955958ba740badafea2e85e3b05f | fix double display error logs | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/error.php",
"new_path": "core/lib/stc/error.php",
"diff": "@@ -161,14 +161,11 @@ final class error\n$unit_log->display($err_lv, $message, $context);\n//Output & exit on error\n- if (0 < ($err_code & error_reporting())) {\n+ if ($stop_on_error && 0... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix double display error logs |
323,346 | 14.05.2020 16:27:57 | -28,800 | 37f762a4ac55438008c40cbf1be86f2802489a44 | move some common functions from os to unit | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/os.php",
"new_path": "core/lib/std/os.php",
"diff": "@@ -30,18 +30,13 @@ use core\\lib\\stc\\factory;\n*\n* @package core\\lib\\std\n*/\n-class os implements unit\n+final class os extends unit\n{\n/**\n* @var OS controller instance\n*/\nprotected ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move some common functions from os to unit |
323,346 | 14.05.2020 17:14:13 | -28,800 | 76635386ca2e962c15c3e4ac5932b0c22159f0f7 | finish darwin (MacOS) controller | [
{
"change_type": "DELETE",
"old_path": "core/lib/os/darwin.php",
"new_path": null,
"diff": "-<?php\n-\n-/**\n- * Darwin handler\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 obtain a copy... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish darwin (MacOS) controller |
323,346 | 14.05.2020 18:18:51 | -28,800 | 267979530cf1c8ef012c15e351a45e17d2b8d88a | fix fetch cmd from object | [
{
"change_type": "MODIFY",
"old_path": "core/lib/std/os.php",
"new_path": "core/lib/std/os.php",
"diff": "@@ -72,7 +72,7 @@ final class os extends unit\n*/\npublic function bg(): object\n{\n- $this->unit_os->os_cmd = $this->unit_os->bg();\n+ $this->unit_os->bg();\nreturn $this;\n}\n@@ -83,7 +83,7 @@... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix fetch cmd from object |
323,346 | 14.05.2020 18:26:33 | -28,800 | fb274e11fe4fd3d86b872d85dda255802c25df46 | fix class vars pointer error | [
{
"change_type": "MODIFY",
"old_path": "core/lib/os/unit.php",
"new_path": "core/lib/os/unit.php",
"diff": "namespace core\\lib\\os;\n/**\n- * Interface unit\n+ * Class unit\n*\n* @package core\\lib\\os\n*/\n@@ -66,40 +66,4 @@ abstract class unit\n* @return $this\n*/\nabstract public function proc()... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix class vars pointer error |
323,346 | 14.05.2020 19:07:18 | -28,800 | 0917d7af20db93dcbac7427e8ecd5b5c0baa4742 | update cli script to fit new os unit controller | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cli.php",
"new_path": "core/lib/cli.php",
"diff": "@@ -84,16 +84,16 @@ final class cli\n$cmd_argv = $this->unit_pool->cli_param['argv'];\n//Build CLI command\n- $cli_cmd = '\"' . $cmd_value . '\"' . (!empty($cmd_argv) ? ' ' . implode(' ', $cmd_argv) :... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update cli script to fit new os unit controller |
323,346 | 14.05.2020 19:07:51 | -28,800 | 5b38228c259ac7119175b0a97b97d3f6f85caa58 | add get_hw_hash to ext\core, update to fit new os controller | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -116,6 +116,16 @@ class core\nreturn factory::build(pool::class)->conf['log']['save_path'];\n}\n+ /**\n+ * Get hardware hash value\n+ *\n+ * @return string\n+ */\n+ public static function get_hw_hash(): st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add get_hw_hash to ext\core, update to fit new os controller |
323,346 | 14.05.2020 19:08:37 | -28,800 | d0aabe21952a1e08f480c937193b2bcfd36e8bf1 | update mpc & queue to support new os controller | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -175,14 +175,17 @@ class mpc extends factory\n$cmd .= ' ' . implode(' ', $job['a']);\n}\n+ //Add OS command\n+ $this->unit_os->cmd($cmd);\n+\n//Add no wait option\nif (!$wait) {\n- $cmd = $this->unit_os->cmd... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update mpc & queue to support new os controller |
323,346 | 14.05.2020 19:21:55 | -28,800 | f592f21952276148d0d491cecbe0a4a2011000b9 | Skip reporting errors under CLI mode when a key not found as a class name or function name | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -98,7 +98,11 @@ final class cgi\nwhile (is_array($methods = array_shift($this->unit_pool->cgi_stack))) {\n//Skip non-exist class\nif (!class_exists($class = $this->unit_router->get_cls(array_shift(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Skip reporting errors under CLI mode when a key not found as a class name or function name |
323,346 | 18.05.2020 10:33:03 | -28,800 | e13fdfe25e00d571186b49d31f3dfdc0e8fadf6e | fix exec errors in os units | [
{
"change_type": "MODIFY",
"old_path": "core/lib/os/unit/darwin.php",
"new_path": "core/lib/os/unit/darwin.php",
"diff": "@@ -37,15 +37,8 @@ final class darwin extends unit\n*/\npublic function get_hw_hash(): string\n{\n- //Add to OS command\n- $this->os_cmd = 'system_profiler SPHardwareDataType SPM... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix exec errors in os units |
323,346 | 25.05.2020 11:50:41 | -28,800 | d3979cb11055a691e25a349248d86f45e77d65ee | add a custom router to support restful url style request | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": ".idea/\nlogs/\n+conf/\n"
},
{
"change_type": "MODIFY",
"old_path": "api.php.example",
"new_path": "api.php.example",
"diff": "@@ -24,8 +24,11 @@ error_reporting(E_ALL);\n//Load main script\nre... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add a custom router to support restful url style request |
323,346 | 26.05.2020 14:56:16 | -28,800 | 56150aeb69fb3d9600b313fe4a0b022a6edfe98f | add "prepend" param to core::register_router_function | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -200,11 +200,18 @@ class core\n* Register custom router parser\n*\n* @param array $router\n+ * @param bool $prepend\n*/\n- public static function register_router_function(array $router): void\n+ public sta... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "prepend" param to core::register_router_function |
323,346 | 26.05.2020 16:19:39 | -28,800 | 4064c6d64d60e5ff3f388e629de7ceab696f1b0d | add "parse" functin in router to call full router stack when parsing command (native support resful style URL) | [
{
"change_type": "MODIFY",
"old_path": "core/lib/cgi.php",
"new_path": "core/lib/cgi.php",
"diff": "@@ -92,7 +92,7 @@ final class cgi\n//Get call-before list\nforeach ($this->unit_pool->conf['call'] as $path => $cmd) {\n- $call_before[$this->unit_router->get_cls($path)] = $this->unit_router->parse_c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add "parse" functin in router to call full router stack when parsing command (native support resful style URL) |
323,346 | 26.05.2020 16:56:00 | -28,800 | 97d6b0662f842bcf08dd816a70828b4a3d57ee3b | Do NOT check TrustZone when calling core::get_cmd_list to avoid potential dead loop | [
{
"change_type": "MODIFY",
"old_path": "core/lib/stc/factory.php",
"new_path": "core/lib/stc/factory.php",
"diff": "@@ -41,6 +41,7 @@ final class factory\n*\n* @return object\n* @throws \\ReflectionException\n+ * @throws \\Exception\n*/\npublic static function create(string $class, array $params): o... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Do NOT check TrustZone when calling core::get_cmd_list to avoid potential dead loop |
323,346 | 26.05.2020 17:08:37 | -28,800 | 47a4921f90e302973db00fe0fc1bd5b14cd23235 | let core::get_cmd_list output the same values as ns result keys | [
{
"change_type": "MODIFY",
"old_path": "ext/core.php",
"new_path": "ext/core.php",
"diff": "@@ -176,7 +176,7 @@ class core\n//Rebuild cmd list\nforeach ($cmd_group as $item) {\n- $cls = $unit_router->get_cls(array_shift($item));\n+ $cls = strtr($unit_router->get_cls(array_shift($item)), '\\\\', '/')... | PHP | Apache License 2.0 | jerry-shaw/nervsys | let core::get_cmd_list output the same values as ns result keys |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.