|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug64677.diff (last revision 2013-04-20 07:00 UTC by laruence@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-20 07:00 UTC] laruence@php.net
[2013-04-20 07:24 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2013-04-20 07:24 UTC] laruence@php.net
[2013-04-20 07:24 UTC] laruence@php.net
[2013-11-17 09:31 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
Description: ------------ When used the execution operator ` as an argument passed to a class method, you will end up with a seg fault or invalid args to shell_exec error Test script: --------------- <?PHP class cat { public function show_output($prepend, $output = '') {echo $prepend . $output;} public function show_out($output) {echo $output;} } $cat = new cat(); $cat->show_output('Files: ', trim(`ls`)); // this gives invalid args to shell_exec $cat->show_output('Files: ', `ls`); // this causes a segmentation fault $cat->show_out(`ls`); // this causes a segmentation fault function show_outputa($prepend, $output) {echo $prepend . $output;} show_outputa('Files: ', `ls`); // this works as expected