|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-08 23:43 UTC] rasmus@php.net
[2012-12-08 23:43 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2012-12-09 12:05 UTC] scott at smashcat dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 18 19:00:01 2026 UTC |
Description: ------------ When attempting to call the zip command from php, it silently fails. Other commands to create and delete files etc work fine. Using correct path to zip etc. No errors, just fails. Running same command from terminal works. Test script: --------------- $zip=`which zip`; $res=shell_exec("$zip test.zip test.txt"); Expected result: ---------------- zip file should be created Actual result: -------------- Nothing. No errors, although the response variable $res contains what appears to be part of the zip file data. Seems like the output from zip is not going to the file, but being sent to the virtual terminal.