mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix get PHP_PATH from env
This commit is contained in:
@@ -95,7 +95,7 @@ class Test extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$r = extension_loaded('Zend OPcache');
|
$r = nexus_env('PHP_PATH') ?: 'php';
|
||||||
dd($r);
|
dd($r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
|||||||
$requestId = nexus()->getRequestId();
|
$requestId = nexus()->getRequestId();
|
||||||
$maxUidRes = mysql_fetch_assoc(sql_query("select max(id) as max_uid from users limit 1"));
|
$maxUidRes = mysql_fetch_assoc(sql_query("select max(id) as max_uid from users limit 1"));
|
||||||
$maxUid = $maxUidRes['max_uid'];
|
$maxUid = $maxUidRes['max_uid'];
|
||||||
$phpPath = nexus_env('PHP_PATH', 'php');
|
$phpPath = nexus_env('PHP_PATH') ?: 'php';
|
||||||
$webRoot = rtrim(ROOT_PATH, '/');
|
$webRoot = rtrim(ROOT_PATH, '/');
|
||||||
$chunk = 2000;
|
$chunk = 2000;
|
||||||
$beginUid = 0;
|
$beginUid = 0;
|
||||||
|
|||||||
@@ -1150,7 +1150,7 @@ function executeCommand($command, $format = 'string', $artisan = false, $excepti
|
|||||||
$command .= $append;
|
$command .= $append;
|
||||||
}
|
}
|
||||||
if ($artisan) {
|
if ($artisan) {
|
||||||
$phpPath = nexus_env('PHP_PATH', 'php');
|
$phpPath = nexus_env('PHP_PATH') ?: 'php';
|
||||||
$webRoot = rtrim(ROOT_PATH, '/');
|
$webRoot = rtrim(ROOT_PATH, '/');
|
||||||
$command = "$phpPath $webRoot/artisan $command";
|
$command = "$phpPath $webRoot/artisan $command";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ if ($isTypeTmpInvite && (empty($_POST['duration']) || $_POST['duration'] < 1)) {
|
|||||||
stderr("Error","Invalid duration");
|
stderr("Error","Invalid duration");
|
||||||
}
|
}
|
||||||
$whereStr = implode(' OR ', $conditions);
|
$whereStr = implode(' OR ', $conditions);
|
||||||
$phpPath = nexus_env('PHP_PATH', 'php');
|
$phpPath = nexus_env('PHP_PATH') ?: 'php';
|
||||||
$webRoot = rtrim(ROOT_PATH, '/');
|
$webRoot = rtrim(ROOT_PATH, '/');
|
||||||
while (true) {
|
while (true) {
|
||||||
$msgValues = $idArr = [];
|
$msgValues = $idArr = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user