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 | 23.06.2018 22:17:19 | -28,800 | 2a8590d4d84816365220924d48c1f30293d021ee | Performance improved... | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -31,36 +31,36 @@ class factory\n/**\n* Get cloned-instance\n*\n- * @param string $lib\n+ * @param string $library\n*\n* @return object\n*/\n- public static function new(string $lib)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Performance improved... |
323,346 | 25.06.2018 10:54:20 | -28,800 | e53fa84ea39e5613a0e0a3fe9190c1ab3d7954e9 | try to fix file require related issues (still exists) | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -232,13 +232,12 @@ class operator extends process\n//Process orders\nforeach (self::$order as $method) {\n- //Check class file\n- if (!self::check_class($order = array_shift($meth... | PHP | Apache License 2.0 | jerry-shaw/nervsys | try to fix file require related issues (still exists) |
323,346 | 25.06.2018 15:08:34 | -28,800 | 7565acb75163b4211afef8f870a9845fd07fd57d | try to fix file require related issues | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "//Declare strict types\ndeclare(strict_types = 1);\n+//Check PHP version\n+if (version_compare(PHP_VERSION, '7.2.0', '<')) {\n+ exit('NervSys needs PHP 7.2.0 or higher!');\n+}\n+\n//Set error level\nerror_reporting(E_A... | PHP | Apache License 2.0 | jerry-shaw/nervsys | try to fix file require related issues |
323,346 | 26.06.2018 13:40:01 | -28,800 | a402a3a965a9dd3dd981b55010c6f356b83369d1 | bug fixing & performance improving | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -38,10 +38,14 @@ ignore_user_abort(true);\n//Set default timezone\ndate_default_timezone_set('PRC');\n+//Set response header\n+header('Content-Type: application/json; charset=utf-8');\n+\n//Load initial script\nrequ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | bug fixing & performance improving |
323,346 | 26.06.2018 17:55:50 | -28,800 | 3f7671deccd7ed2000958307815af847b1ef45ba | fix error code argument mis-pointed | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -90,7 +90,7 @@ class error\n*/\npublic static function error_handler(int $errno, string $errstr, string $errfile, int $errline): void\n{\n- self::exception_handler(new \\ErrorException(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix error code argument mis-pointed |
323,346 | 27.06.2018 11:03:17 | -28,800 | 5518e47d202bc2444f47e3951c3dbbc37bea95c8 | move "stop" function from "operator" to "system" & remove arguments | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "namespace core\\handler;\nuse core\\parser\\data;\n-use core\\parser\\output;\nuse core\\parser\\trustzone;\nuse core\\pool\\command;\n@@ -30,25 +29,6 @@ use core\\pool\\setting;\ncl... | PHP | Apache License 2.0 | jerry-shaw/nervsys | move "stop" function from "operator" to "system" & remove arguments |
323,346 | 05.07.2018 12:10:04 | -28,800 | aa53c3badf6b55c7e6e0db41e4369a5c3a76db64 | improve factory mode (allow passign parameters via factory to create objects) | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -22,45 +22,75 @@ namespace core\\handler;\nclass factory\n{\n- //Object list\n- private static $obj = [];\n-\n- //Original list\n- private static $orig = [];\n-\n/**\n- * Get cloned... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve factory mode (allow passign parameters via factory to create objects) |
323,346 | 05.07.2018 12:44:18 | -28,800 | 673a5565b55dd8c76071f8d5aadffd3b83ee23e5 | let operator handler can create objects by passing __construct arguments | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -281,7 +281,9 @@ class operator extends process\n//Get factory object\nif (!$reflect->isStatic()) {\n- $class = factory::use($class);\n+ $class = method_exists($class, '__construc... | PHP | Apache License 2.0 | jerry-shaw/nervsys | let operator handler can create objects by passing __construct arguments |
323,346 | 05.07.2018 12:45:04 | -28,800 | 1c23eda69cd75a7914403da5e58217d94552f4d2 | let redis_queue extension can create objects by passing __construct arguments | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -351,7 +351,9 @@ class redis_queue extends redis\n//Create object\nif (!$reflect->isStatic()) {\n- $class = factory::new($class);\n+ $class = method_exists($class, '__construct')\n+ ? factory... | PHP | Apache License 2.0 | jerry-shaw/nervsys | let redis_queue extension can create objects by passing __construct arguments |
323,346 | 05.07.2018 22:22:21 | -28,800 | 36eae8bfec8dba9cdd0773392225d5c98fd69f5c | add strict filters to defined argument type hints | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -83,22 +83,22 @@ class data\nif (isset($input[$name])) {\nswitch ($param->getType()) {\ncase 'int':\n- $data[] = (int)$input[$name];\n+ is_numeric($input[$name]) ? $data[] = (int)$input[$na... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add strict filters to defined argument type hints |
323,346 | 06.07.2018 12:38:54 | -28,800 | b10413e4598639ea1a7de7449c6599b2a66a4731 | improve exception content pointing to the right class and method name | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -120,8 +120,8 @@ class operator extends process\ncontinue;\n}\n- //Check TrustZone\n- if (!isset($class::$tz) || !is_array($class::$tz)) {\n+ //Check TrustZone permission\n+ if (e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve exception content pointing to the right class and method name |
323,346 | 20.07.2018 18:28:41 | -28,800 | ed9d932fad1f332d2564c5cb656e73ea0c5b6eb7 | continue (bug exists) | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -26,19 +26,14 @@ if (version_compare(PHP_VERSION, '7.2.0', '<')) {\nexit('NervSys needs PHP 7.2.0 or higher!');\n}\n-//Set error level\n-error_reporting(E_ALL | E_STRICT);\n-\n//Set runtime values\n+error_reporting(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | continue (bug exists) |
323,346 | 21.07.2018 00:56:00 | -28,800 | 21cf9c0160f8859dca54ca52f50b85451b0f3443 | error log show function broken, needs fix | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -86,7 +86,7 @@ PHP7.2+ and above. Any kind of web server or running under CLI mode.\n## Reserved Words\n-CGI: c/cmd\n+CGI: c/cmd, o/output\nCLI: c/cmd, d/data, p/pipe, t/time, r/ret\nThe words above are reserved... | PHP | Apache License 2.0 | jerry-shaw/nervsys | error log show function broken, needs fix |
323,346 | 21.07.2018 11:55:31 | -28,800 | 744e48f4c06920e31a5359abf74df2f1f55c3c81 | update version, bug fix, code clean up | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "# Nervsys\n-Stable Version: 6.2.6\n+Stable Version: 6.2.20\n## About\n@@ -86,10 +86,18 @@ PHP7.2+ and above. Any kind of web server or running under CLI mode.\n## Reserved Words\n-CGI: c/cmd, o/output\n-CLI: c/cmd,... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update version, bug fix, code clean up |
323,346 | 21.07.2018 12:09:41 | -28,800 | 79c3a3105b8595821b8f87310b73ae1599c534a3 | update some extension to fit new version | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "namespace ext;\n-use core\\pool\\process;\n+use core\\system;\n-class errno\n+class errno extends system\n{\n/**\n* Error file directory\n@@ -67,7 +67,7 @@ class errno\n*/\npublic static function set(int $c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update some extension to fit new version |
323,346 | 21.07.2018 22:56:45 | -28,800 | 50e4e66dd90065b51b7da6c5185c455eb48e6ef5 | improve factory handler, support using "/" instead of "\" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "namespace core\\handler;\n-class factory\n+use core\\system;\n+\n+class factory extends system\n{\n/**\n* Get new cloned-instance\n@@ -34,6 +36,8 @@ class factory\n{\nstatic $list = []... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve factory handler, support using "/" instead of "\" |
323,346 | 22.07.2018 15:59:21 | -28,800 | 77934ee4e175e9ebb0cd721ac79b26cda6a24776 | improve error handler on catching and showing some throwable errors | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -27,9 +27,6 @@ use core\\helper\\log;\nclass error extends system\n{\n/*\n- * Error levels & values\n- *\n- * 0: Disable\n* 1: E_ERROR\n* 2: E_WARNING\n* 4: E_PARSE\n@@ -47,7 +44,7 @@ c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve error handler on catching and showing some throwable errors |
323,346 | 22.07.2018 16:10:58 | -28,800 | ea813d15f26576a8688eccae179173ea3de52b95 | revert back error message content | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -115,7 +115,7 @@ class error extends system\n{\n$level = self::LEVEL[$throwable->getCode()] ?? (false !== stripos(get_class($throwable), 'error') ? 'error' : 'debug');\n- $message = ucf... | PHP | Apache License 2.0 | jerry-shaw/nervsys | revert back error message content |
323,346 | 22.07.2018 17:44:05 | -28,800 | fe9d67cb6dc8c1532d1c87e983b15fa0309e3404 | remove clone step from creating new factory object for safety | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -25,7 +25,7 @@ use core\\system;\nclass factory extends system\n{\n/**\n- * Get new cloned-instance\n+ * Get new instance\n*\n* @param string $class\n* @param array $param\n@@ -34,2... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove clone step from creating new factory object for safety |
323,346 | 22.07.2018 18:47:21 | -28,800 | fa3da54f8d10565212636d6a7485671d4b9ed660 | minor fix on the exit level when error occurred | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -342,8 +342,8 @@ class TestA\n\"error_reporting\" in NervSys does not matter too much any more.\nAll errors and exceptions will be handled well into logs and/or showing up.\n-The only thing will be affected by \... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor fix on the exit level when error occurred |
323,346 | 23.07.2018 12:35:46 | -28,800 | b48e8df491f345baaecf8635cad80116aba68c91 | re-write pdo and redis extension | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "namespace ext;\n-class pdo\n+class pdo extends \\PDO\n{\n//PDO settings\npublic static $type = 'mysql';\n@@ -28,108 +28,63 @@ class pdo\npublic static $port = 3306;\npublic static $user = 'root';\npublic static... | PHP | Apache License 2.0 | jerry-shaw/nervsys | re-write pdo and redis extension |
323,346 | 23.07.2018 23:17:40 | -28,800 | 2b5ca4ed79fd81a0faa1b4932e5d4de4cd583975 | make better compatible to uppercase class/function calls | [
{
"change_type": "MODIFY",
"old_path": "ext/base.php",
"new_path": "ext/base.php",
"diff": "@@ -83,14 +83,16 @@ class base extends system\n*/\npublic function __call(string $name, array $argument)\n{\n- if (isset($this->methods[$name])) {\n+ $item = strtolower($name);\n+\n+ if (isset($this->methods[... | PHP | Apache License 2.0 | jerry-shaw/nervsys | make better compatible to uppercase class/function calls |
323,346 | 28.07.2018 14:23:28 | -28,800 | 7346f5b782269bc20356126541977feff4905949 | finish new pdo and redis extension | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "namespace ext;\n-class pdo extends \\PDO\n+use core\\handler\\factory;\n+\n+class pdo\n{\n- //PDO settings\n- public static $type = 'mysql';\n- public static $host = '127.0.0.1';\n- public static $port = 3306;\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | finish new pdo and redis extension |
323,346 | 28.07.2018 15:05:02 | -28,800 | 18103d6befbb78987d940d6d122e20878e679e65 | improve error extension | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -24,37 +24,37 @@ use core\\system;\nclass errno extends system\n{\n+ //Multi-language support\n+ private $lang = true;\n+\n+ //Error message pool\n+ private $pool = [];\n+\n/**\n* Error file directory\n*... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve error extension |
323,346 | 29.07.2018 18:24:11 | -28,800 | e1d494967171695e5ba1e7d437d71d927c4ad342 | lots modified on extensions | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -25,36 +25,13 @@ use core\\system;\nclass crypt extends system\n{\n//OpenSSL config file path\n- public $conf = '/ssl/openssl.cnf';\n-\n- //Keygen class\n- public $keygen = 'ext/lib/keygen';\n+ public st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | lots modified on extensions |
323,346 | 29.07.2018 18:30:35 | -28,800 | 51ff7c4efe34d2691afe8755d13d460d166e72b2 | output log directly instead of put into result['logs'] | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -55,10 +55,6 @@ class output extends system\nparent::$result = parent::$error + ['data' => parent::$result];\n}\n- if ('' !== parent::$logs) {\n- is_array(parent::$result) ? parent::$re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | output log directly instead of put into result['logs'] |
323,346 | 30.07.2018 09:17:33 | -28,800 | ca5b4565157cdb19086c18917d26aadff0ac6de7 | revert some method names | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt_img.php",
"new_path": "ext/crypt_img.php",
"diff": "@@ -76,7 +76,7 @@ class crypt_img extends crypt\n* @return array\n* @throws \\Exception\n*/\n- public function get_code(): array\n+ public function get(): array\n{\n$type = ['num', 'word', 'calc'];\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | revert some method names |
323,346 | 30.07.2018 12:17:52 | -28,800 | 1a17d75bfc2334015f39b7cf684264ffcc12a840 | remove __call from pdo and redis | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "@@ -36,22 +36,137 @@ class pdo\nprivate $charset = 'utf8mb4';\n/**\n- * Set arguments\n+ * Set type\n*\n- * @param $name\n- * @param $arguments\n+ * @param string $value\n*\n* @return object\n*/\n- public funct... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove __call from pdo and redis |
323,346 | 30.07.2018 16:37:52 | -28,800 | 3bb006d596c80f6b9658bd8a55e02a879a021d39 | revert back to use cloned objects in factory new method | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -25,7 +25,7 @@ use core\\system;\nclass factory extends system\n{\n/**\n- * Get new instance\n+ * Get cloned instance\n*\n* @param string $class\n* @param array $param\n@@ -34,10 +3... | PHP | Apache License 2.0 | jerry-shaw/nervsys | revert back to use cloned objects in factory new method |
323,346 | 30.07.2018 17:02:50 | -28,800 | cc09252432e12f4e87a941baf50f8a54cc027ae7 | add free from factory function to free memory occupied. | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -24,6 +24,12 @@ use core\\system;\nclass factory extends system\n{\n+ //Cloned objects\n+ private static $cloned_list = [];\n+\n+ //Origin objects\n+ private static $origin_list = [... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add free from factory function to free memory occupied. |
323,346 | 31.07.2018 12:25:41 | -28,800 | 04965d37b2245fbd416e4315cc44a9c823de74d4 | add throw exceptions when URL(s) is invalid. | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -328,15 +328,20 @@ class http\n* Fetch an URL\n*\n* @return string\n+ * @throws \\Exception\n*/\npublic function fetch(): string\n{\n+ if (empty($this->url)) {\n+ throw new \\Exception('No URL found! At le... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add throw exceptions when URL(s) is invalid. |
323,346 | 31.07.2018 13:05:43 | -28,800 | 9b678bc928a972362fd90919676653918fe7a6b9 | fix multi request error | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -406,19 +406,19 @@ class http\nwhile (CURLM_OK === curl_multi_exec($curl, $running) && 0 < $running) ;\n//Collect response\n- foreach ($res as &$item) {\n+ foreach ($res as $key => $item) {\n//Get response... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix multi request error |
323,346 | 31.07.2018 23:26:55 | -28,800 | 46b81f856ddb32438d9d00d4ebd626cb52c8bc23 | fix build_xml issues and move function to data handler | [
{
"change_type": "MODIFY",
"old_path": "core/parser/data.php",
"new_path": "core/parser/data.php",
"diff": "@@ -54,6 +54,54 @@ class data\nreturn $value;\n}\n+ /**\n+ * Build XML\n+ *\n+ * @param array $data\n+ * @param bool $root\n+ * @param bool $pretty\n+ *\n+ * @return string\n+ */\n+ public sta... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix build_xml issues and move function to data handler |
323,346 | 31.07.2018 23:27:41 | -28,800 | be851c4e3985c4d1cb554eda43deda05e7398221 | remove payload settings, add support to XML data request | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "namespace ext;\n+use core\\parser\\data;\n+\nclass http\n{\n//URL key\n@@ -37,9 +39,10 @@ class http\nconst ACCEPT_ENCODING = 'gzip,deflate,identity,*;q=0'; //Accept encoding\nconst ACCEPT_LANGUAGE = 'en-US,e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove payload settings, add support to XML data request |
323,346 | 11.08.2018 20:44:02 | -28,800 | 937ad87e9d9d72f5a93bd73c957ca4aba4c7cbfb | add language auto-detect function | [
{
"change_type": "MODIFY",
"old_path": "ext/lang.php",
"new_path": "ext/lang.php",
"diff": "namespace ext;\n-class lang\n+use core\\system;\n+\n+class lang extends system\n{\n/**\n* Language file directory\n@@ -37,14 +39,40 @@ class lang\n* @param string $file\n* @param string $lang\n*/\n- public st... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add language auto-detect function |
323,346 | 11.08.2018 23:16:47 | -28,800 | 3d4a085bcd6578857933a093543a86d8027d9a2b | minor changes on mkdir permission | [
{
"change_type": "MODIFY",
"old_path": "ext/file.php",
"new_path": "ext/file.php",
"diff": "@@ -50,7 +50,7 @@ class file\n*\n* @return string\n*/\n- public static function get_path(string $path, string $root = ROOT, int $mode = 0776): string\n+ public static function get_path(string $path, string $r... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on mkdir permission |
323,346 | 12.08.2018 11:21:55 | -28,800 | fbba053120e4d6b83b0be30a21eeff9887e98c62 | change errno extension functions back to static | [
{
"change_type": "MODIFY",
"old_path": "ext/errno.php",
"new_path": "ext/errno.php",
"diff": "@@ -25,10 +25,10 @@ use core\\system;\nclass errno extends system\n{\n//Error message pool\n- private $pool = [];\n+ private static $pool = [];\n//Multi-language support\n- private $lang = true;\n+ private ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change errno extension functions back to static |
323,346 | 12.08.2018 11:46:51 | -28,800 | 54a598434758940c1d944445f51c6d43872e6297 | add mime detect on uploading from file/binary | [
{
"change_type": "MODIFY",
"old_path": "ext/upload.php",
"new_path": "ext/upload.php",
"diff": "@@ -128,6 +128,10 @@ class upload extends system\n//Get upload method\n$this->file['method'] = is_array(parent::$data[$name]) ? 'file' : 'base64';\n+ //Open finfo\n+ $mime = false;\n+ $finfo = finfo_open(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add mime detect on uploading from file/binary |
323,346 | 12.08.2018 15:30:00 | -28,800 | dced2a9ef92767bf2eee3c4f12f66c397711b0e2 | minor changes on session extension on Redis | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_session.php",
"new_path": "ext/redis_session.php",
"diff": "@@ -22,8 +22,8 @@ namespace ext;\nclass redis_session extends redis\n{\n- //SESSION lifetime\n- private $lifetime = 600;\n+ //SESSION life\n+ private $life = 600;\n//SESSION key prefix\ncons... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on session extension on Redis |
323,346 | 13.08.2018 16:40:06 | -28,800 | af917dd5d12e19717f70bd0065d8283bfd0921f5 | update factory controllability (make different control actions for "new" and "use") | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -25,34 +25,32 @@ use core\\system;\nclass factory extends system\n{\n//Cloned objects\n- private static $cloned_list = [];\n+ private static $cloned = [];\n//Origin objects\n- priva... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update factory controllability (make different control actions for "new" and "use") |
323,346 | 13.08.2018 16:40:38 | -28,800 | 582986960a483feb1a17f05057666c9eb513bac4 | simplified provider extension functions | [
{
"change_type": "MODIFY",
"old_path": "ext/provider.php",
"new_path": "ext/provider.php",
"diff": "namespace ext;\n-use core\\system;\n-\nuse core\\handler\\factory;\n-class provider extends system\n+class provider extends factory\n{\n- //Class\n+ //Class name\nprivate $class = '';\n- //Extends\n+ ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | simplified provider extension functions |
323,346 | 13.08.2018 16:41:09 | -28,800 | 07cb20b8bd8df322bcb28308c475603257cfa95e | make all extensions extended from factory | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "namespace ext;\n-use core\\system;\n+use core\\handler\\factory;\n-class crypt extends system\n+class crypt extends factory\n{\n//OpenSSL config file path\npublic static $conf = '/ssl/openssl.cnf';\n"
},
... | PHP | Apache License 2.0 | jerry-shaw/nervsys | make all extensions extended from factory |
323,346 | 13.08.2018 16:41:25 | -28,800 | 27a8806d9c01ced5013e2384764fcb0ef732914a | update version to 7.0.0 Beta | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -35,7 +35,7 @@ ignore_user_abort(true);\ndate_default_timezone_set('PRC');\n//Define NervSys version\n-define('VER', '6.2.20');\n+define('VER', '7.0.0 Beta');\n//Define absolute root path\ndefine('ROOT', strtr(__DIR... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update version to 7.0.0 Beta |
323,346 | 13.08.2018 17:08:36 | -28,800 | 8e66fc541ba49ff5b7bd9f9efaf439297ffe9f64 | add headers sent detection to provent header related errors | [
{
"change_type": "MODIFY",
"old_path": "core/parser/output.php",
"new_path": "core/parser/output.php",
"diff": "@@ -55,7 +55,11 @@ class output extends system\nparent::$result = parent::$error + ['data' => parent::$result];\n}\n- header(self::HEADER[$output = isset(self::HEADER[parent::$out]) ? pare... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add headers sent detection to provent header related errors |
323,346 | 13.08.2018 17:20:45 | -28,800 | 9520bd6ecbbf4946b3f3ad5e8f3d123bdd9b22f7 | make all base extensions extended from factory | [
{
"change_type": "MODIFY",
"old_path": "ext/file.php",
"new_path": "ext/file.php",
"diff": "namespace ext;\n-class file\n+use core\\handler\\factory;\n+\n+class file extends factory\n{\n/**\n* Get file extension (in lowercase)\n"
},
{
"change_type": "MODIFY",
"old_path": "ext/image.php",... | PHP | Apache License 2.0 | jerry-shaw/nervsys | make all base extensions extended from factory |
323,346 | 13.08.2018 21:10:55 | -28,800 | 35201a5bc3f64a751df096aa0abe0f6dec2f13f6 | remove unnecessary command from MPC extension | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -157,7 +157,7 @@ class mpc extends factory\n$this->php_cmd = $this->php_exe . ' \"' . ROOT . 'api.php\"';\nif ($this->wait) {\n- $this->php_cmd .= ' --ret --time 0';\n+ $this->php_cmd .= ' --ret';\n}\n$resul... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove unnecessary command from MPC extension |
323,346 | 14.08.2018 00:15:00 | -28,800 | 3d0e40b85559dff73e0ab5382c40c8dbac43edeb | minor changes on all exception messages | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -66,7 +66,7 @@ class operator extends factory\n$process = proc_open(platform::cmd_proc($command), [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']], $pipes);\nif (!is_resource($proces... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on all exception messages |
323,346 | 14.08.2018 00:15:43 | -28,800 | 30b44e63f5f04e4760a65941d050f55060eac695 | minor changes on all exception messages in extensions | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -76,13 +76,13 @@ class crypt extends factory\n$end = strpos($key, ' KEY-----', $start);\nif (false === $end) {\n- throw new \\Exception('RSA Key ERROR!', E_USER_ERROR);\n+ throw new \\Exception('RSA Key ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | minor changes on all exception messages in extensions |
323,346 | 15.08.2018 12:10:13 | -28,800 | 70d0bcec1863466d96703f8839e8560c9d2cba94 | change encrypt/decrypt related functions in "crypt" and "crypt_img" | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -25,13 +25,58 @@ use core\\handler\\factory;\nclass crypt extends factory\n{\n//OpenSSL config file path\n- public static $conf = '/ssl/openssl.cnf';\n+ private $conf = '/ssl/openssl.cnf';\n//Crypt metho... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change encrypt/decrypt related functions in "crypt" and "crypt_img" |
323,346 | 15.08.2018 21:10:59 | -28,800 | 947cf2b00a657953f017e1727fe713c11de9f030 | change all functions in "redis_cache" to non-static functions | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_cache.php",
"new_path": "ext/redis_cache.php",
"diff": "@@ -35,7 +35,7 @@ class redis_cache extends redis\n* @return bool\n* @throws \\RedisException\n*/\n- public static function set(string $key, array $data, int $life = 600): bool\n+ public functio... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change all functions in "redis_cache" to non-static functions |
323,346 | 15.08.2018 21:26:42 | -28,800 | f0dd943d095068d7afaa3ec52883a9bd977d0561 | using integer keys for mpc results | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -151,7 +151,9 @@ class mpc extends factory\n//Split jobs\n$job_count = count($this->jobs);\n- $job_packs = $job_count > $this->runs ? array_chunk($this->jobs, (int)ceil($job_count / $this->runs)) : [$this->j... | PHP | Apache License 2.0 | jerry-shaw/nervsys | using integer keys for mpc results |
323,346 | 15.08.2018 21:51:44 | -28,800 | 42e507ec9386bc7a1c6f6d90bcd744630daa0929 | fix max runs issue in mpc extension | [
{
"change_type": "MODIFY",
"old_path": "ext/mpc.php",
"new_path": "ext/mpc.php",
"diff": "@@ -150,10 +150,7 @@ class mpc extends factory\n}\n//Split jobs\n- $job_count = count($this->jobs);\n- $job_packs = $job_count > $this->runs\n- ? array_chunk($this->jobs, (int)ceil($job_count / $this->runs), tr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix max runs issue in mpc extension |
323,346 | 15.08.2018 23:03:09 | -28,800 | 4863aeb905b7a760b6f3fb408b98d8ef0be671b1 | queue bug fix | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -179,7 +179,7 @@ class redis_queue extends redis\n$root_key = self::PREFIX_WORKER . 'root';\n//Exit when root process is running\n- if ($redis->exists($root_key)) {\n+ if ((bool)$redis->exist... | PHP | Apache License 2.0 | jerry-shaw/nervsys | queue bug fix |
323,346 | 16.08.2018 10:14:50 | -28,800 | d3ce1a201af7977f40ec3bf9c7a934dd2f6aa477 | update redis->exists result judgment to new version | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -179,7 +179,7 @@ class redis_queue extends redis\n$root_key = self::PREFIX_WORKER . 'root';\n//Exit when root process is running\n- if ((bool)$redis->exists($root_key)) {\n+ if (0 < $redis->e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update redis->exists result judgment to new version |
323,346 | 16.08.2018 11:59:38 | -28,800 | 59e5313fc81256d645e70eb3d68487d896a9e27b | update to stable version 7.0.0 with ext 2.0 | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -35,7 +35,7 @@ ignore_user_abort(true);\ndate_default_timezone_set('PRC');\n//Define NervSys version\n-define('VER', '7.0.0 Beta');\n+define('VER', '7.0.0');\n//Define absolute root path\ndefine('ROOT', strtr(__DIR_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update to stable version 7.0.0 with ext 2.0 |
323,346 | 16.08.2018 17:21:08 | -28,800 | 91ee1278b8e357f8d8f110e85afcc0f9a8dbe380 | add XML data parser support in reading raw input | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -101,9 +101,17 @@ class input extends system\nreturn;\n}\n- //Decode dara in JSON\n+ //Decode data in JSON/XML\nif (is_array($data = json_decode($input, true))) {\nparent::$data += $data;... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add XML data parser support in reading raw input |
323,346 | 16.08.2018 17:26:20 | -28,800 | e888af678e31f38382a016f97b2b209575fa7c15 | update support datatype in README.md | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -379,7 +379,7 @@ Parameters in functions will be automatically filled by API once existing in pro\nAs one of the basic support features, works good on web development.\nMethod: GET, POST\n-DataType: application/... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update support datatype in README.md |
323,346 | 16.08.2018 20:20:21 | -28,800 | 997ece65281a02883da1bac7cdaf54b126c87026 | remove data read limitation | [
{
"change_type": "MODIFY",
"old_path": "core/parser/input.php",
"new_path": "core/parser/input.php",
"diff": "@@ -38,7 +38,6 @@ class input extends system\npublic static function read(): void\n{\n//Read data\n- if (empty(parent::$data)) {\nif (!parent::$is_cli) {\n//Read HTTP & input\nself::read_htt... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove data read limitation |
323,346 | 16.08.2018 21:11:49 | -28,800 | 272658871250259164a91ae7d7c22f7ba5665dbb | fix Pre-Load functions | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -76,9 +76,7 @@ class operator extends factory\n//Collect result\nif (parent::$param_cli['ret']) {\n- $data = self::read_pipe([$process, $pipes[1]]);\n-\n- if ('' !== $data) {\n+ i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix Pre-Load functions |
323,346 | 18.08.2018 00:18:24 | -28,800 | 2351e27e9c8bb2287f6d841878de783b2d384445 | Filter same queue data on adding rather than on executing | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -67,18 +67,19 @@ class redis_queue extends redis\n//Add command\n$data['cmd'] = &$cmd;\n- //Build list key\n- $list = self::PREFIX_LIST . $key;\n-\n//Build connection\n$redis = parent::connec... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Filter same queue data on adding rather than on executing |
323,346 | 19.08.2018 14:33:28 | -28,800 | 29516ddc1f3f1be88a18b6ef456bf7b12a474a10 | add queue duration support for single cmd | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -43,26 +43,28 @@ class redis_queue extends redis\nconst WAIT_SCAN = 60;\n//Queue keys\n- const KEY_FAILED = 'queue:fail';\n- const KEY_WATCH_LIST = 'queue:watch:list';\n- const KEY_WATCH_WORK... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add queue duration support for single cmd |
323,346 | 20.08.2018 12:26:58 | -28,800 | adaac1cff2bf7d1a38cc81acf8dcb84a81c50170 | add a small connection pool to redis extension to improve connection performance | [
{
"change_type": "MODIFY",
"old_path": "ext/redis.php",
"new_path": "ext/redis.php",
"diff": "@@ -34,6 +34,9 @@ class redis extends factory\nprivate $persist = true;\nprivate $persist_id = null;\n+ //Connection pool\n+ private static $pool = [];\n+\n/**\n* Set host\n*\n@@ -148,6 +151,7 @@ class redi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add a small connection pool to redis extension to improve connection performance |
323,346 | 10.09.2018 13:07:06 | -28,800 | 004d7d27cd4823caa0bd5310df435cfa2e805b4a | start to improve pdo_mysql extension | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -21,73 +21,107 @@ namespace ext;\nclass pdo_mysql extends pdo\n{\n- protected $param_field = '*';\n- protected $param_table = '';\n- protected $param_where = '';\n- protected $param_orWhere = '';... | PHP | Apache License 2.0 | jerry-shaw/nervsys | start to improve pdo_mysql extension |
323,346 | 11.09.2018 13:31:00 | -28,800 | acfd7a5bfb8c773eab548b22f0d567e7f13b12fc | Improve INIT & LOAD calling logic | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -185,24 +185,25 @@ The words above are reserved by NervSys core. So that, they should be taken care\nSomeDesc = dirA/dirB/model-func\nexplain:\n- \"\\dirA\\dirB\\model::func()\" will be called on startup without... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve INIT & LOAD calling logic |
323,346 | 11.09.2018 13:39:02 | -28,800 | 038527785f6ea8d8daa1617f3d28eb314b3f4f9d | update system.ini comments | [
{
"change_type": "MODIFY",
"old_path": "core/system.ini",
"new_path": "core/system.ini",
"diff": "@@ -28,13 +28,13 @@ show = on\n[INIT]\n; Initial function on startup\n-; Calling before operator actions\n-; No returned value will be captured\n+; Calling before system operations\n+; All returned valu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update system.ini comments |
323,346 | 11.09.2018 22:39:15 | -28,800 | d123c72f83d1dbba699bb558c2f147aa2c27b275 | continue improving pdo_mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -21,24 +21,24 @@ namespace ext;\nclass pdo_mysql extends pdo\n{\n- //MySQL params\n- private $param_field = '*';\n- private $param_table = '';\n- private $param_where = '';\n+ //Action\n+ private... | PHP | Apache License 2.0 | jerry-shaw/nervsys | continue improving pdo_mysql |
323,346 | 19.09.2018 17:32:18 | -28,800 | 5bdbae7a24eb19f4b25f0d6c938da6c437bfe5c8 | mysql extension going on, not finish. | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "<?php\n/**\n- * Pdo Mysql Extension\n+ * Pdo MySQL Extension\n*\n* Copyright 2018 kristenzz <kristenzz1314@gmail.com>\n*\n@@ -25,70 +25,84 @@ class pdo_mysql extends pdo\nprivate $act = '';\n//SQL p... | PHP | Apache License 2.0 | jerry-shaw/nervsys | mysql extension going on, not finish. |
323,346 | 19.09.2018 21:41:27 | -28,800 | d83f2d2b8c2b3252299a568ca0908991531a6f39 | pdo_mysql extension almost done | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -30,16 +30,14 @@ class pdo_mysql extends pdo\nprivate $where = '';\nprivate $join = '';\n- private $incr = '';\nprivate $group = '';\nprivate $having = '';\n- private $between = '';\n- private $o... | PHP | Apache License 2.0 | jerry-shaw/nervsys | pdo_mysql extension almost done |
323,346 | 19.09.2018 21:59:53 | -28,800 | 699233ee2fa1471752453459cfe543ef90249e07 | add debug on execute functions | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -49,7 +49,6 @@ class pdo_mysql extends pdo\n*/\npublic function insert(string $table = ''): object\n{\n- $this->clean_up();\n$this->act = 'INSERT';\n$this->table($table);\n@@ -67,7 +66,6 @@ class... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add debug on execute functions |
323,346 | 19.09.2018 22:38:59 | -28,800 | 0793b3a7d50237c38501988b2d7f79aed1120225 | fix adding url under wrong index when adding after calling other param setting functions | [
{
"change_type": "MODIFY",
"old_path": "ext/http.php",
"new_path": "ext/http.php",
"diff": "@@ -70,7 +70,7 @@ class http extends factory\n*/\npublic function url(string $url): object\n{\n- if (!empty($this->url)) {\n+ if (!empty($this->url) && isset($this->url[$this->key]['url'])) {\n++$this->key;\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix adding url under wrong index when adding after calling other param setting functions |
323,346 | 20.09.2018 09:54:00 | -28,800 | a6e98063a0c0821785be758d0762befcbcfbaf1a | fix value bind issue on INSERT action | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -119,7 +119,7 @@ class pdo_mysql extends pdo\npublic function value(array $value, bool $append = false): object\n{\nif (!$append) {\n- $this->bind = [current($value)];\n+ $this->bind = array_valu... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix value bind issue on INSERT action |
323,346 | 21.09.2018 10:47:00 | -28,800 | cd0e90c5af46f891b97df2e697a54165b34d1536 | add config via array arguments | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo.php",
"new_path": "ext/pdo.php",
"diff": "@@ -35,6 +35,24 @@ class pdo extends factory\nprivate $persist = true;\nprivate $charset = 'utf8mb4';\n+ /**\n+ * Config arguments\n+ *\n+ * @param array $config\n+ *\n+ * @return object\n+ */\n+ public functio... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add config via array arguments |
323,346 | 21.09.2018 12:06:52 | -28,800 | 09f75095f20bf016f28363c9046a18d4aa56a240 | little changes on factory functions | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -31,11 +31,12 @@ class factory extends system\nprivate static $origin = [];\n/**\n- * New cloned instance from called class\n+ * Get new cloned object from called class\n+ * Defined... | PHP | Apache License 2.0 | jerry-shaw/nervsys | little changes on factory functions |
323,346 | 21.09.2018 12:26:33 | -28,800 | 1f8d2a832666f83e7604fb5758a7c5e15151fcff | fix self free from factory | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -100,7 +100,7 @@ class factory extends system\n{\nif (is_null($object)) {\n//Drop self from original list\n- unset(self::$origin[get_called_class()]);\n+ unset(self::$origin[hash('m... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix self free from factory |
323,346 | 21.09.2018 17:41:03 | -28,800 | fd625437322b8ca54517e00583597799fd8a50b2 | change factory free function only works for original storage | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -52,7 +52,7 @@ class factory extends system\n/**\n* Get original object from called class\n* Defined by only class name created last time\n- * Free factory storage before reuse if n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change factory free function only works for original storage |
323,346 | 21.09.2018 17:50:47 | -28,800 | 32a680a85665193b714d7314df10ad1fd5721794 | improve all code hints in IDE | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -38,7 +38,7 @@ class crypt extends factory\n*\n* @param string $path\n*\n- * @return object\n+ * @return $this\n*/\npublic function conf(string $path): object\n{\n@@ -53,7 +53,7 @@ class crypt extends fa... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve all code hints in IDE |
323,346 | 21.09.2018 19:02:34 | -28,800 | d32d38778202908d285906e24921953fef2be729 | add query function for pdo_mysql | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -291,21 +291,44 @@ class pdo_mysql extends pdo\n$exec = -1;\n}\n} catch (\\Throwable $throwable) {\n- throw new \\PDOException('SQL Dump: ' . $sql . '. Msg:' . $throwable->getMessage(), E_USER_ER... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add query function for pdo_mysql |
323,346 | 23.09.2018 15:38:46 | -28,800 | 3377bfc73850195a6a8f80e0b474c9c2ebc1e043 | add copy as alias function to factory module, and merge alias calling function into method "use", with other fix and cleanup | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -58,14 +58,22 @@ class factory extends system\n*/\nprotected static function use(): object\n{\n+ $name = get_called_class();\n$param = func_get_args();\n+ //Check alias calling\n+ i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add copy as alias function to factory module, and merge alias calling function into method "use", with other fix and cleanup |
323,346 | 23.09.2018 17:45:47 | -28,800 | 6872f7e6de490c3089262f27bf81e5fd6d8ad07b | add ability to free (self) or (name and aliase) to factory free method | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -106,20 +106,22 @@ class factory extends system\n*/\nprotected static function free(string $name = ''): void\n{\n- if ('' === $name) {\n- $name = get_called_class();\n- }\n+ $class ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add ability to free (self) or (name and aliase) to factory free method |
323,346 | 26.09.2018 13:42:02 | -28,800 | 680ef1aeed8634d163771009fa0bf35c5d4d0d41 | change class variables from private to protected when necessary | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -25,13 +25,13 @@ use core\\handler\\factory;\nclass crypt extends factory\n{\n//OpenSSL config path\n- private $conf = '/openssl.cnf';\n+ protected $conf = '/openssl.cnf';\n//Crypt method\n- private $met... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change class variables from private to protected when necessary |
323,346 | 28.09.2018 15:05:28 | -28,800 | 2f27ac97c0862ec3db1268cae120975b0881c28d | add simple command check logic | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -33,9 +33,13 @@ class operator extends factory\npublic static function init_load(array $cmd): void\n{\nforeach ($cmd as $item) {\n+ try {\n+ if (false === strpos($item, '-')) {\n+... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add simple command check logic |
323,346 | 29.09.2018 14:33:55 | -28,800 | df5f640cd17b26c2c575726086563328b115ae48 | improve factory stock logic for all methods, add alias name support for "new" method | [
{
"change_type": "MODIFY",
"old_path": "core/handler/factory.php",
"new_path": "core/handler/factory.php",
"diff": "@@ -24,57 +24,29 @@ use core\\system;\nclass factory extends system\n{\n- //Cloned objects\n- private static $cloned = [];\n-\n- //Original objects\n- private static $origin = [];\n+ /... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve factory stock logic for all methods, add alias name support for "new" method |
323,346 | 29.09.2018 15:04:03 | -28,800 | c57f9ceb1811764b28c87c15f2fff8d5854eba34 | update "factory" usage in README.md | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -350,8 +350,34 @@ When \"error_reporting\" is set LARGER than 0, line breaks will be added to JSON/X\nIn the latest version of NervSys, \"factory\" handler is ready for use to control all extended classes.\nUsag... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update "factory" usage in README.md |
323,346 | 30.09.2018 12:53:26 | -28,800 | c1e6d97c025b27d37acccc31d6651cb38d38f33d | fix select * from select `*` reporting an non-existing column | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -562,7 +562,7 @@ class pdo_mysql extends pdo\n*/\nprivate function build_select(): string\n{\n- $sql = 'SELECT ' . ('' !== $this->field ? $this->escape($this->field) : '`*`') . ' FROM ' . $this->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix select * from select `*` reporting an non-existing column |
323,346 | 30.09.2018 16:23:02 | -28,800 | cd65e77f763082d5d1f16966f3b255ae8088fba7 | add complex condition compatible to pass complex where and having data | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -201,7 +201,7 @@ class pdo_mysql extends pdo\n*/\npublic function where(array $where): object\n{\n- $this->where .= $this->build_where($where, $this->where);\n+ $this->where .= $this->build_where... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add complex condition compatible to pass complex where and having data |
323,346 | 30.09.2018 17:33:49 | -28,800 | 15bc9153324ed176cbbf60817316d62cbac075bc | improve set value method compatible for complex data input | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -111,22 +111,24 @@ class pdo_mysql extends pdo\n/**\n* Set insert values\n*\n- * @param array $value\n- * @param bool $append\n+ * @param array $values\n*\n* @return $this\n*/\n- public function ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve set value method compatible for complex data input |
323,346 | 11.10.2018 20:09:43 | -28,800 | 6f9249fb8272b5e44493f47fd1b2eb2fa8a4c2b3 | add Access-Control-Allow-Credentials for CORS | [
{
"change_type": "MODIFY",
"old_path": "core/system.php",
"new_path": "core/system.php",
"diff": "@@ -192,7 +192,9 @@ class system extends command\n//Response access allowed headers\nheader('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);\nheader('Access-Control-Allow-Headers: ' . self::$... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add Access-Control-Allow-Credentials for CORS |
323,346 | 22.10.2018 18:00:28 | -28,800 | ab72bd3bc6da64f67284d54449c972186497bf5f | remove support for static function auto caller of "init" | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -123,11 +123,6 @@ class operator extends factory\nself::init_load(is_string(parent::$load[$module]) ? [parent::$load[$module]] : parent::$load[$module]);\n}\n- //Call \"init\" met... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove support for static function auto caller of "init" |
323,346 | 26.10.2018 17:20:14 | -28,800 | 2721cd94e2c61918bb98df4b83b083c102e48e71 | remove "init" related docs | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -309,14 +309,6 @@ class TestA\n]\n];\n- public static function init(): void\n- {\n- //some code...\n- //$tz controlling...\n- //Process data controlling...\n- //etc...\n- }\n-\npublic static function test_a(stri... | PHP | Apache License 2.0 | jerry-shaw/nervsys | remove "init" related docs |
323,346 | 30.10.2018 17:01:32 | -28,800 | 936dc540fcdb2413b66a7ffb837df3f0294f7801 | improve TrustZone, now, support both static and non-static variable name. | [
{
"change_type": "MODIFY",
"old_path": "core/parser/trustzone.php",
"new_path": "core/parser/trustzone.php",
"diff": "namespace core\\parser;\n-use core\\system;\n+use core\\handler\\factory;\n-class trustzone extends system\n+class trustzone extends factory\n{\n+ //TrustZone record\n+ private stati... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve TrustZone, now, support both static and non-static variable name. |
323,346 | 30.10.2018 17:02:50 | -28,800 | ea9e590b1f1a359bbf94bc20711d8608f0c4a3e7 | improve operator logic to process dependency functions | [
{
"change_type": "MODIFY",
"old_path": "core/handler/operator.php",
"new_path": "core/handler/operator.php",
"diff": "@@ -26,28 +26,26 @@ use core\\parser\\trustzone;\nclass operator extends factory\n{\n/**\n- * Call INIT/LOAD\n- *\n- * @param array $cmd\n+ * Initialize operator\n*/\n- public static... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve operator logic to process dependency functions |
323,346 | 30.10.2018 17:03:30 | -28,800 | b8e4c01b53988ebfcd3f35f36da1a3da15dda95a | improve error handler for better error code controlling | [
{
"change_type": "MODIFY",
"old_path": "core/handler/error.php",
"new_path": "core/handler/error.php",
"diff": "@@ -120,17 +120,14 @@ class error extends system\n*/\npublic static function exception_handler(\\Throwable $throwable): void\n{\n+ //Get exception name\n+ $exception = get_class($throwable... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve error handler for better error code controlling |
323,346 | 30.10.2018 17:03:56 | -28,800 | 4a7041aa15fbff29f5a9a6d56b32f3af9ef54d04 | improve redis_queue extension | [
{
"change_type": "MODIFY",
"old_path": "ext/redis_queue.php",
"new_path": "ext/redis_queue.php",
"diff": "@@ -22,7 +22,6 @@ namespace ext;\nuse core\\parser\\data;\n-use core\\handler\\operator;\nuse core\\handler\\platform;\nclass redis_queue extends redis\n@@ -370,37 +369,56 @@ class redis_queue e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | improve redis_queue extension |
323,346 | 30.10.2018 17:04:31 | -28,800 | 40558f4823b94fa93c06ee13afa447358a2b8390 | change exception error codes | [
{
"change_type": "MODIFY",
"old_path": "ext/crypt.php",
"new_path": "ext/crypt.php",
"diff": "@@ -105,13 +105,13 @@ class crypt extends factory\n$end = strpos($key, ' KEY-----', $start);\nif (false === $end) {\n- throw new \\Exception('RSA Key ERROR!', E_USER_WARNING);\n+ throw new \\Exception('RSA ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | change exception error codes |
323,346 | 30.10.2018 17:05:12 | -28,800 | afc1e471021788250aa4ef7d18c9914e27a4190b | update version to 7.2.0 | [
{
"change_type": "MODIFY",
"old_path": "api.php",
"new_path": "api.php",
"diff": "@@ -35,7 +35,7 @@ ignore_user_abort(true);\ndate_default_timezone_set('PRC');\n//Define NervSys version\n-define('VER', '7.0.0');\n+define('VER', '7.2.0');\n//Define absolute root path\ndefine('ROOT', strtr(__DIR__, ['... | PHP | Apache License 2.0 | jerry-shaw/nervsys | update version to 7.2.0 |
323,346 | 30.10.2018 21:26:07 | -28,800 | d27af380ced887e8cfb316ecf7dd6d54df608792 | try to fix bind value position issues when building SQLs | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -36,9 +36,10 @@ class pdo_mysql extends pdo\nprivate $order = '';\nprivate $limit = '';\n- private $bind = [];\nprivate $incr = [];\nprivate $value = [];\n+ private $bind_value = [];\n+ private $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | try to fix bind value position issues when building SQLs |
323,346 | 31.10.2018 16:21:08 | -28,800 | 3add26bb41b4640ff017292fb1d3b23d279e9b9b | fix TrustZone parse error when using string | [
{
"change_type": "MODIFY",
"old_path": "core/parser/trustzone.php",
"new_path": "core/parser/trustzone.php",
"diff": "@@ -36,7 +36,7 @@ class trustzone extends factory\n*/\npublic static function init(string $class): array\n{\n- //Reset record\n+ //Reset TrustZone\nself::$record = [];\n//Fetch Trust... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix TrustZone parse error when using string |
323,342 | 31.10.2018 20:26:33 | -28,800 | 347863fbc880dc159171de8402a501863183d0ae | optimize method value() in mysql model | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -119,17 +119,11 @@ class pdo_mysql extends pdo\n*/\npublic function value(array $values): object\n{\n- if (!is_array($values[0])) {\n- $values = [$values];\n- }\n-\n- foreach ($values as $value) ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | optimize method value() in mysql model |
323,346 | 31.10.2018 20:57:53 | -28,800 | 7c1b29cf1534a89db441fa8c658047f673f8aae9 | add another existence check to bind value | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -119,11 +119,13 @@ class pdo_mysql extends pdo\n*/\npublic function value(array $values): object\n{\n- foreach ($values as $key=>$value)\n- {\n+ foreach ($values as $key => $value) {\n+ if (!isse... | PHP | Apache License 2.0 | jerry-shaw/nervsys | add another existence check to bind value |
323,346 | 01.11.2018 11:44:50 | -28,800 | 19e72d28d2c5d0b3c207551cada4b6e657ab07b5 | fix missing default connector "AND" in "WHERE" conditions | [
{
"change_type": "MODIFY",
"old_path": "ext/pdo_mysql.php",
"new_path": "ext/pdo_mysql.php",
"diff": "@@ -714,7 +714,7 @@ class pdo_mysql extends pdo\nif (in_array($item = strtoupper($value[0]), ['AND', '&&', 'OR', '||', 'XOR', '&', '~', '|', '^'], true)) {\narray_shift($value);\n$where .= $item . '... | PHP | Apache License 2.0 | jerry-shaw/nervsys | fix missing default connector "AND" in "WHERE" conditions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.