HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ojs/lib/pkp/lib/slim-php8.1.diff
diff -u -r Slim/Collection.php Slim/Collection.php
--- Slim/Collection.php	2019-11-28 09:40:33.000000000 -0800
+++ Slim/Collection.php	2022-10-18 21:25:54.603075152 -0700
@@ -109,6 +109,7 @@
      *
      * @return bool
      */
+    #[\ReturnTypeWillChange]
     public function offsetExists($key)
     {
         return $this->has($key);
@@ -121,6 +122,7 @@
      *
      * @return mixed The key's value, or the default value
      */
+    #[\ReturnTypeWillChange]
     public function offsetGet($key)
     {
         return $this->get($key);
@@ -132,6 +134,7 @@
      * @param string $key   The data key
      * @param mixed  $value The data value
      */
+    #[\ReturnTypeWillChange]
     public function offsetSet($key, $value)
     {
         $this->set($key, $value);
@@ -142,6 +145,7 @@
      *
      * @param string $key The data key
      */
+    #[\ReturnTypeWillChange]
     public function offsetUnset($key)
     {
         $this->remove($key);
@@ -152,6 +156,7 @@
      *
      * @return int
      */
+    #[\ReturnTypeWillChange]
     public function count()
     {
         return count($this->data);
@@ -162,6 +167,7 @@
      *
      * @return ArrayIterator
      */
+    #[\ReturnTypeWillChange]
     public function getIterator()
     {
         return new ArrayIterator($this->data);
diff -u -r Slim/Http/Uri.php Slim/Http/Uri.php
--- Slim/Http/Uri.php	2019-11-28 09:40:33.000000000 -0800
+++ Slim/Http/Uri.php	2022-10-19 07:45:34.196533740 -0700
@@ -718,7 +718,7 @@
             function ($match) {
                 return rawurlencode($match[0]);
             },
-            $query
+            $query ?? ''
         );
     }
 
diff -u -r Slim/Http/Request.php Slim/Http/Request.php
--- Slim/Http/Request.php	2019-11-28 09:40:33.000000000 -0800
+++ Slim/Http/Request.php	2022-10-19 12:56:21.077660825 -0700
@@ -1016,7 +1016,7 @@
         // Check if this specific media type has a parser registered first
         if (!isset($this->bodyParsers[$mediaType])) {
             // If not, look for a media type with a structured syntax suffix (RFC 6839)
-            $parts = explode('+', $mediaType);
+            $parts = explode('+', $mediaType ?? '');
             if (count($parts) >= 2) {
                 $mediaType = 'application/' . $parts[count($parts)-1];
             }