#27076 [Opn->Ver]: exec() with safe_mode

From: Date: Wed, 28 Jan 2004 19:53:20 +0000
Subject: #27076 [Opn->Ver]: exec() with safe_mode
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358517@lists.php.net to get a copy of this message
ID: 27076 Updated by: sniper@php.net Reported By: not at valid dot email -Status: Open +Status: Verified -Bug Type: *General Issues +Bug Type: Documentation problem Operating System: linux -PHP Version: 4.3.4 +PHP Version: Irrelevant New Comment: Yes, it's a feature. Couldn't find it documented anywhere. Reclassifed as documentation problem. Previous Comments: ------------------------------------------------------------------------ [2004-01-28 12:39:16] not at valid dot email Description: ------------ safe_mode cause exec command to parse all arguments after the command as one argument (in quote?) Is this a bug? is it documented somewhere? Reproduce code: --------------- <?php exec("echo x | echo y",$output); $output=implode(',',$output); echo "output is: $output" ?> Expected result: ---------------- safe_mode off output is: y safe_mode on output is: y Actual result: -------------- safe_mode off output is: y safe_mode on output is: x | echo y ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27076&edit=1

« previous php.doc (#969358517) next »