php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6542 exec() and system() cannot fork
Submitted: 2000-09-04 22:15 UTC Modified: 2001-04-27 18:46 UTC
From: dpfender at innova dot net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Windows 2000 Pro
Private report: No CVE-ID: None
 [2000-09-04 22:15 UTC] dpfender at innova dot net
Both exec() and system() were working in 4.0.1pl2 but now both fail with the message
Warning: Unable to fork [zapdir "test_dir1\gallery_info"] in E:\Inetpub\wwwroot\nimagestor\dir_test\del_dirlp_test.php on line 222

This occurs with either an executable file (.exe) or with a "builtin" like the del command that is part of the command interpreter.
I was using exec() to execute a directory removing program because php rmdir() does not work properly.
Warning: RmDir failed (No such file or directory) in E:\Inetpub\wwwroot\nimagestor\dir_test\del_dir_test.php on line 201
The directory does exist no matter what the error message says.
Now nothing works for removing directories.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-06 13:04 UTC] stas@php.net
same as 4761
 [2001-04-27 18:46 UTC] sniper@php.net
Fixed in CVS. Wait for PHP 4.0.6


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 17:01:34 2024 UTC