Assembla home | Assembla project page
 

Ticket #56 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

Error in Quit plugin when exec() is disabled

Reported by: tobias382 Assigned to: tobias382
Priority: normal Component: core
Version: 1.5 Severity: normal
Keywords: Cc:

Description

The bootstrap, core, and Quit plugin need to adapt to the circumstance of exec() being disabled by disabling the ability to restart the bot by "forking" using exec() in situations where that function is disabled. Currently, loading the Quit plugin emits this error in that situation: PHP Warning: exec() has been disabled for security reasons in .../phergie/Plugin/Quit.php on line 98

Attachments

Change History

07/26/08 17:14:19 changed by tobias382

Just a note that is_callable() is *NOT* affected by exec being presented in disable_functions. That is, it will still return true regardless of whether or not exec is in disable_functions. The easiest and most reliable method of checking to see if exec() is disabled appears to be manually parsing the disable_functions value.

07/26/08 19:42:56 changed by tobias382

After some digging, I found that this check can be done with ReflectionFunction::isDisabled(). Thanks to Johannes Schluter for helping me find this out. http://schlueters.de/blog/

08/01/08 09:23:19 changed by Seldaek

  • status changed from new to closed.
  • resolution set to fixed.

(In [272]) fixes #56


Add/Change #56 (Error in Quit plugin when exec() is disabled)




Action