Hi Folks

I like to contribute some code to the Joomla-CMS Core. I wrote a little app
that searches for updates 
and mail to the website owner, if any is available. So far not bad.
Developed on localhost (xampp/windows), 
testet on a hosting server (linux/shared).

And the script does not work on the hosting-server, because in a parent's
class constructor
(JApplicationCli = designed for commandline) is a statment, to ensure, that
the call is coming from the command-line:

if(!defined('STDOUT') | ! defined(STDIN) | !isset($_SERVER['argv']))
{
        die();
}

On the hosting server, that uses suPHP, I figured out that these two
constants STDIN and STDOUT are not defined, 
and thus let the script die. 

Because the existence of that statement let me assume, that in
php-cli-environments generally these two constants 
should be defined by default. Right? 


As I am not a server geek, my questions are (and hopefully someone has a
answer):

- is this statement wrong because these constants must not necessarly are
defined by the cli-environment, and the statement
in that core-class should be changed?

- are these constants only in suPHP not defined by default?

- or is the server not properly configurated and STDIN/STDOUT should be
defined? And if, what and where should be 
changed in the configuration?

I am thankful for every toughts and hints.

Cheers
Roger


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to