Bug #10364: Exec and system always return -1
| From: | thomas at dipcard dot com | Date: | Tue, 17 Apr 2001 17:34:35 +0000 |
| Subject: | Bug #10364: Exec and system always return -1 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51814@lists.php.net to get a copy of this message | ||
From: thomas@dipcard.com
Operating system: RedHat Linux 2.2.16
PHP version: 4.0.4pl1
PHP Bug Type: *General Issues
Bug description: Exec and system always return -1
I believe my problem has been described earlier as bug #7324
but that bug has been closed, and I couldn't figure out how
to follow-up on a closed bug ...so here comes:
It seems like exec and system calls always return -1.
Under 'User Contributed Notes' at
http://www.php.net/manual/en/function.exec.php
jase@sensis.com writes:
'When I compiled php with "--enable-sigchild", all calls to
exec set return_var to -1. When I recompiled without
"--enable-sigchild", all calles to exec set return_var to
the expected value.'
My PHP is compiled with "--enable-sigchild". I haven't tried
without it.
I have put some test-code at
http://intra.dipcard.com/people/tlk/return-values/.
regards Thomas L. Kjeldsen
--
Edit Bug report at: http://bugs.php.net/?id=10364&edit=1