php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32478 Execution functions do not work.
Submitted: 2005-03-29 02:45 UTC Modified: 2005-03-29 07:13 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: RJackson at InfoSharkz dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: RJackson at InfoSharkz dot com
New email:
PHP Version: OS:

 

 [2005-03-29 02:45 UTC] RJackson at InfoSharkz dot com
Description:
------------
The execution functions like passthru, exec, and system do not work on PHP 5.0.3 to execute a program. No error message is returned. The functions however work with PHP 4.3.10 with the same code and same program.

The following is changed in my PHP.ini file:
extension_dir=C:\Program Files\PHP5
extension=php_mysql.dll
extension=php_gd2.dll
extension=php_curl.dll
error_log = error.txt
post_max_size = 20M
include_path = ".;m:\IS"
default_socket_timeout = 10

Reproduce code:
---------------
<?
$imagemagick='C:\Program Files\ImageMagick-6.2.1-Q16\convert.exe';
$filename="file.jpg";
passthru("$imagemagick $filename t-$filename");
?>

Expected result:
----------------
The script should copy the file file.jpg to t-file.jpg in the same directory using Imagemagick.

Actual result:
--------------
The file is not copied.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-29 07:13 UTC] RJackson at InfoSharkz dot com
Found the issue.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 10:01:34 2025 UTC