|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-04 19:42 UTC] iliaa@php.net
[2006-07-04 20:01 UTC] marcus dot yu at rogers dot com
[2006-07-05 01:49 UTC] judas dot iscariote at gmail dot com
[2006-07-06 20:38 UTC] tony2001@php.net
[2006-07-06 21:45 UTC] marcus dot yu at rogers dot com
[2006-07-06 21:59 UTC] tony2001@php.net
[2006-07-06 22:00 UTC] marcus dot yu at rogers dot com
[2006-07-06 22:10 UTC] tony2001@php.net
[2006-07-06 22:43 UTC] marcus dot yu at rogers dot com
[2006-07-07 08:20 UTC] tony2001@php.net
[2006-07-15 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
Description: ------------ The function system() does not work in PHP 5.1.4 under Apache 2.2.0+ in fedora core 5. The kernel is 2.6.17-1.2139_FC5. The return value is 127. If runs as shell script, the function works. The safe mode is off. It was tested on both Apache 2.2.0 and 2.2.2. Reproduce code: --------------- <? $last_line = system ("ls -l", $return_value); echo " return value : $return_value "; ?> Expected result: ---------------- list all files in the working directory just as run 'ls -l' in command line. and the return value is 0. Actual result: -------------- nothing. the return value is 127. In fact, if modified the code a little bit and run it as shell script, it works.