php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10364 Exec and system always return -1
Submitted: 2001-04-17 13:34 UTC Modified: 2001-05-27 21:30 UTC
From: thomas at dipcard dot com Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.4pl1 OS: RedHat Linux 2.2.16
Private report: No CVE-ID: None
 [2001-04-17 13:34 UTC] thomas at dipcard dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 21:30 UTC] sniper@php.net
This is fixed in PHP 4.0.5. If not, reopen.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 07:01:27 2024 UTC