From: samuel dot roze at gmail dot com
Operating system: Debian 5
PHP version: 5.3.1
PHP Bug Type: Program Execution
Bug description: exec and shell_exec don't works with msginit
Description:
------------
The function exec or the shell_exec function are not working with the
msginit (gettext) program.
Reproduce code:
---------------
Create an empty "/home/user/file.pot" file.
<?php
$exec = exec('msginit -i "/home/user/file.pot" -o "file.po"');
var_dump($exec);
?>
Expected result:
----------------
string(X) "/home/d-sites/myonlinessh/includes/locales/ps_AK/messages a été
créé."
and that the file.po file was created.
Actual result:
--------------
string(0) ""
and the file.po doesn't exists.
Note: there's any error and the same command, with the www-data user (used
by Apache) works in my shell!
--
Edit bug report at http://bugs.php.net/?id=50663&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50663&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50663&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50663&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50663&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50663&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50663&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50663&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50663&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50663&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50663&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50663&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50663&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50663&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50663&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50663&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50663&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50663&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50663&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50663&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50663&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50663&r=mysqlcfg