[wp-trac] [WordPress Trac] #54780: Site Health Info => Returns a fatal error in php 8.0

WordPress Trac noreply at wordpress.org
Sat Jan 15 07:57:05 UTC 2022


#54780: Site Health Info => Returns a fatal error in php 8.0
------------------------------+------------------------------
 Reporter:  alfredo49         |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Site Health       |     Version:  5.8.3
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch php8  |     Focuses:  administration
------------------------------+------------------------------

Comment (by costdev):

 That's strange. There's a `function_exists( 'exec' )` condition to prevent
 line 663 being hit if `exec` has been disabled. However, a quick google
 search suggests that on some hosts, a disabled function can return `true`
 for `function_exists()`, yet cannot be called.

 @alfredo49 as a test, can you try adding the following to a file and let
 us know what the output is?

 {{{#!php
 <?php

 echo function_exists( 'exec' ) ? 'Function exists.<br>' : 'Function does
 not exist.<br>';
 echo is_callable( 'exec' ) ? 'Function is callable.' : 'Function is not
 callable.';

 }}}

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


More information about the wp-trac mailing list