Re: Proposal: &$result_code=null parameter in shell_exec()

From: Date: Thu, 18 Nov 2021 09:32:43 +0000
Subject: Re: Proposal: &$result_code=null parameter in shell_exec()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-116443@lists.php.net to get a copy of this message
On Thu, Nov 18, 2021 at 08:19:36AM +0000, Kamil Tekiela wrote: > Hi Luca, > > How will this change be reflected in its alias, the backtick operator? If > the plan is to change the signature of shell_exec() then the backtick > operator will not behave identically anymore. Am I correct? > > Regards, > Kamil Hi, PHP code that use the backtick operator or shell_exec() will behave identically. The reason is that when omitting the optional parameter $return_code, the function call shell_exec("command", null) is executed, which will execute the "command" and return its output just like it does right now. Thanks, Luca

« previous php.internals (#116443) next »