Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9656

PHP Information in ACP always lists error_reporting as 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.8-RC1
    • Component/s: ACP
    • Labels:
      None
    • Environment:
      PHP 5.3

      Description

      ob_start();
      @phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_VARIABLES);
      $phpinfo = ob_get_clean();

      Calling phpinfo() with an @ will set the error_reporting to 0 and thus always list error_reporting as being 0 in the local section.

        Activity

        Show
        bantu Andreas Fischer added a comment - Ok, this reverts http://code.phpbb.com/projects/phpbb/repository/revisions/6714/diff/trunk/phpBB/includes/acp/acp_php_info.php but I do not really see a problem.
        Hide
        A_Jelly_Doughnut A_Jelly_Doughnut added a comment -

        Agree. AFAIK The only reason phpinfo() should throw an error is if it's listed as a disabled function. That's a fatal error, so there's nothing we can do to handle it, and the @ won't help.

        Show
        A_Jelly_Doughnut A_Jelly_Doughnut added a comment - Agree. AFAIK The only reason phpinfo() should throw an error is if it's listed as a disabled function. That's a fatal error, so there's nothing we can do to handle it, and the @ won't help.
        Hide
        RMcGirr83 Rich McGirr added a comment -

        Fix is verified

        Show
        RMcGirr83 Rich McGirr added a comment - Fix is verified

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            bantu Andreas Fischer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development