|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-04 22:39 UTC] samuel dot roze at gmail dot com
[2010-01-04 23:18 UTC] rasmus@php.net
[2010-01-05 06:11 UTC] samuel dot roze at gmail dot com
[2010-01-05 06:49 UTC] rasmus@php.net
[2010-01-05 09:43 UTC] samuel dot roze at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
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!