Linux server.jmdstrack.com 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
/ scripts/ php_sandbox/ |
|
#!/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";