php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11649 Unable to Fork errors
Submitted: 2001-06-25 03:56 UTC Modified: 2001-08-03 00:41 UTC
From: gvirgo at mithril dot ca Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.6 OS: Win98
Private report: No CVE-ID: None
 [2001-06-25 03:56 UTC] gvirgo at mithril dot ca
According to the ChangeLog, the inablity to fork issue in the exec family has been fixed on Win32 in 4.0.6.  Unfortunately, this is not so.  Calling system(), exec(), or passthru() produces the following error msg:

Warning: Unable to fork [test.mp3] in exec.php at line 3

Calling escapeshellcmd() or escapeshellarg() does not give an error or warning message, but also does not execute the command.  The above mentions problems occur when the functions are called when running PHP as an Apache module, or by executing the script from command line.  Below is a description of my setup, please let me know if additional information is needed.

OS: Win98 - SE
Processor: AMD K6-2/350
RAM: 192 megs
Apache version: 1.3.20 (run as service)
PHP: 4.0.6 and 4.0.5 (with Zend Optimizer)
Enabled PHP extensions: php_bz2.dll, php_gd.dll, php_imap.dll, php_zlib.dll
Output Buffering: On
PHP-GTK: version 0.0.4

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-25 05:35 UTC] derick@php.net
Try it with the full path to the executable, like this:
exec ("c:\windows\playmp3.exe test.mp3");
 [2001-07-23 11:44 UTC] kalowsky@php.net
did this work with derick's suggestion?
 [2001-08-01 20:30 UTC] andy@php.net
dup of 12485
 [2001-08-03 00:41 UTC] gvirgo at mithril dot ca
Sorry to take so long in responding.... my DNS has been intermitent of late.  

Yes and no.  It did open the application, but it doesn't help with what I'm trying to do.  I'm looking at it from a php-gtk perpective and want to be able to launch whatever application happens to be associated with the file type.  Thus, specifying the path to Netscape (for eaxmple) isn't an option since I won't know the if the proggie is installaed on the client box, or installation path.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC