[wp-trac] [WordPress Trac] #37978: Warning: posix_getpwuid() has been disabled for security reasons

WordPress Trac noreply at wordpress.org
Sat Sep 10 05:15:30 UTC 2016


#37978: Warning: posix_getpwuid() has been disabled for security reasons
----------------------------+------------------------------
 Reporter:  AndyDeGroo      |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  4.6.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by dd32):

 I'm not against a `wp_function_exists()` which wraps all that logic up..
 as much as I hate having to.. something like..
 {{{
 function wp_function_exists( $func ) {
     static $disabled_funcs;
     if ( ! function_exists( $func ) ) {
         return false;
     }
     return $func NOT in statically-cached ini_get( 'disable_functions' );
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37978#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list