HEX
Server: LiteSpeed
System: Linux prometheus.hongkongserver.net 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
User: ayxmplky (1112)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/root/scripts/php_sandbox/php-config
#!/usr/local/cpanel/3rdparty/bin/perl

$ENV{'LANG'} = 'C';

my @paths   = grep( !/php_sandbox/, split( /:/, $ENV{'PATH'} ) );
my $homedir = ( getpwuid($>) )[7];

foreach my $path (@paths) {
    next if ( $path =~ /sandbox/i );
    if ( -x $path . '/' . 'php-config' ) {
        if ( grep( /--prefix/, @ARGV ) ) {
            print "$homedir/php";
            exit();
        }
        if ( grep( /--extension-dir/, @ARGV ) ) {
            print "$homedir/php/ext";
            exit();
        }
        exec( $path . '/' . 'php-config', @ARGV );
    }
}
die "php-config not found";