[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6658] asyncservice: check for php-executable
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6658] asyncservice: check for php-executable |
Date: |
Wed, 08 Dec 2010 19:27:21 +0000 |
Revision: 6658
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6658
Author: sigurdne
Date: 2010-12-08 19:27:20 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
asyncservice: check for php-executable
Modified Paths:
--------------
trunk/phpgwapi/inc/class.asyncservice.inc.php
Modified: trunk/phpgwapi/inc/class.asyncservice.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.asyncservice.inc.php 2010-12-08 14:16:21 UTC
(rev 6657)
+++ trunk/phpgwapi/inc/class.asyncservice.inc.php 2010-12-08 19:27:20 UTC
(rev 6658)
@@ -604,9 +604,22 @@
if (!is_executable($this->crontab))
{
- //echo "<p>Error: $this->crontab not found
!!!</p>";
+ if($this->debug)
+ {
+ echo "<p>Error: $this->crontab not
found !!!</p>";
+ }
return 0;
}
+
+ if (!is_executable($this->php))
+ {
+ if($this->debug)
+ {
+ echo "<p>Error: $this->php not found
!!!</p>";
+ }
+ return 0;
+ }
+
$times = False;
$this->other_cronlines = array();
if (($crontab = popen('/bin/sh -c "'.$this->crontab.'
-l" 2>&1','r')) !== False)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6658] asyncservice: check for php-executable,
Sigurd Nes <=