]> git.mxchange.org Git - friendica.git/commitdiff
Fix namespace issue with posix function in Worker\Repository\Process
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 Apr 2023 12:11:05 +0000 (08:11 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 Apr 2023 13:25:19 +0000 (09:25 -0400)
- [Composer] Add ext-posix dependency
- [Composer] Sort latest added dependencies alphabetically
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1492842672

composer.json
src/Core/Worker/Repository/Process.php

index 509605b1ca4076f39edacdf1be848cbea6bd8467..bb675c651ea8aefe38fc6caba7db771689f22e77 100644 (file)
@@ -24,6 +24,7 @@
                "ext-libxml": "*",
                "ext-mbstring": "*",
                "ext-openssl": "*",
+               "ext-posix": "*",
                "ext-simplexml": "*",
                "ext-xml": "*",
                "asika/simple-console": "^1.0",
@@ -34,6 +35,7 @@
                "friendica/json-ld": "^1.0",
                "geekwright/po": "^2.0",
                "guzzlehttp/guzzle": "^6.5",
+               "kornrunner/blurhash": "^1.2",
                "league/html-to-markdown": "^4.8",
                "level-2/dice": "^4",
                "lightopenid/lightopenid": "dev-master",
@@ -49,6 +51,7 @@
                "phpseclib/phpseclib": "^3.0",
                "pragmarx/google2fa": "^5.0",
                "pragmarx/recovery": "^0.2",
+               "psr/clock": "^1.0",
                "psr/container": "^1.0",
                "psr/log": "^1.1",
                "seld/cli-prompt": "^1.0",
@@ -71,9 +74,7 @@
                "npm-asset/moment": "^2.24",
                "npm-asset/perfect-scrollbar": "0.6.16",
                "npm-asset/textcomplete": "^0.18.2",
-               "npm-asset/typeahead.js": "^0.11.1",
-               "kornrunner/blurhash": "^1.2",
-               "psr/clock": "^1.0"
+               "npm-asset/typeahead.js": "^0.11.1"
        },
        "repositories": [
                {
index eb8fb07e32fe956d4d04053cc30658f45c2420e1..b18a5b443db108e81af305c2ca2b7b3c21357293 100644 (file)
@@ -112,7 +112,7 @@ class Process extends BaseRepository
                try {
                        $processes = $this->db->select(static::$table_name, ['pid'], ['hostname' => $this->currentHost]);
                        while ($process = $this->db->fetch($processes)) {
-                               if (!posix_kill($process['pid'], 0)) {
+                               if (!\posix_kill($process['pid'], 0)) {
                                        $this->db->delete(static::$table_name, ['pid' => $process['pid']]);
                                }
                        }