Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15848

Syntax error in ezdebug.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.6, 4.0.7, 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 4.1.5, 4.2.1, 4.3.0alpha1
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      Operating System: Leopard 10.5.8
      PHP Version: 5.3
      MySQL Version: 5.0.51a
      eZ-Publish Version: 4.1.3

      Description

      There is a syntax error at the ezdebug.php in lines 1059 and 1061.
      At those lines there is used str_pad-function
      and as you can read from the PHP-manual it has too many quotation marks.

      http://php.net/manual/en/function.str-pad.php

      Original codes from the lines 1059 and 1061 which causes syntax errors:

      $binnet = str_pad( decbin( $lnet ), 32, "0", "STR_PAD_LEFT" );
      $binip = str_pad( decbin( $lip ), 32, "0", "STR_PAD_LEFT" );

      Fixed codes that won't cause errors:

      $binnet = str_pad( decbin( $lnet ), 32, "0", STR_PAD_LEFT );
      $binip = str_pad( decbin( $lip ), 32, "0", STR_PAD_LEFT );

        Attachments

          Activity

            People

            Assignee:
            andre1 André R
            Reporter:
            tape Perttu Talasniemi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: