#32478 [Opn->Bgs]: Execution functions do not work.

From: Date: Tue, 29 Mar 2005 05:13:06 +0000
Subject: #32478 [Opn->Bgs]: Execution functions do not work.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75960@lists.php.net to get a copy of this message
ID: 32478 User updated by: RJackson at InfoSharkz dot com Reported By: RJackson at InfoSharkz dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 5.0.3 New Comment: Found the issue. Previous Comments: ------------------------------------------------------------------------ [2005-03-29 02:45:02] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32478&edit=1

« previous php.bugs (#75960) next »