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

Syntax error in ezdebug.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.5, 4.2.1, 4.3.0alpha1
    • 4.0.6, 4.0.7, 4.1.3, 4.1.4, 4.2.0
    • Misc
    • None
    • 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

            andre1 andre1
            tape tape
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: