!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/src/process_ast/   drwxrwxr-x
Free 83.21 GB of 96.73 GB (86.02%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Constant_folding.cpp (1.21 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* 
 * phc -- the open source PHP compiler 
 * See doc/license/README.license for licensing information
 *
 * Fold constant binary and unary expressions.
 * Note lack of constant propagation.
 */

#include "Constant_folding.h" 
#include "process_ir/stats.h" 
#include "embed/embed.h" 

using namespace AST;

Expr* Constant_folding::post_bin_op (Bin_op* in)
{
    Literal* left = dynamic_cast<Literal*> (in->left);
    Literal* right = dynamic_cast<Literal*> (in->right);

    if (left == NULL || right == NULL)
        return in;

    CTS ("folded_bin_op");
    return PHP::fold_constant_expr (in);
}

Expr* Constant_folding::post_unary_op (Unary_op* in)
{
    // TODO I expect there is a constant, near LONG_MAX, for which the '-' sign
    // turns it into a float, and the second '-' turns it into a positive float,
    // yet if we remove both '-' signs, we get an int. I couldn't find it with
    // some quick tests.

    // Match (- - f())
    Wildcard<Expr>* expr = new Wildcard<Expr>;
    if (in->match (new Unary_op (new Unary_op (expr, "-"), "-")))
    {
        CTS ("folded_double_minus");
        return expr;
    }

    // match constant    
    Literal* lit = dynamic_cast<Literal*> (in->expr);
    if (lit)
    {
        CTS ("folded_unary_op");
        return PHP::fold_constant_expr (in);
    }


    return in;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0046 ]--