Changeset 196

Show
Ignore:
Timestamp:
04/10/06 01:12:36 (3 years ago)
Author:
bart
Message:

* Fixed some typos in dasm.php
* Added authentication to the disassembler

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r195 r196  
     12006-04-09  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Fixed some typos in dasm.php 
     4        * Added authentication to the disassembler 
     5 
    162006-04-06  Hans Rakers <hans at parse dot nl> 
    27 
    3        * Fixed handling of interfaces. This fixes sf.net bug #1440575. 
    4          This fix also introduces some changes in the cached object structure 
    5          so remember to empty your disk caches if you have them. This is 
    6          always a good thing to do after upgrading btw :) 
     8        * Fixed handling of interfaces. This fixes sf.net bug #1440575. 
     9          This fix also introduces some changes in the cached object structure 
     10          so remember to empty your disk caches if you have them. This is 
     11          always a good thing to do after upgrading btw :) 
    712 
    8132006-04-06  Hans Rakers <hans at parse dot nl> 
    914 
    10        * Reverted the change to the handling of ZEND_BRK made by me on 
    11          2006-03-17 since it wasn't working as it should. Since this 
    12          reintroduces sf.net bug #1442923 i added some code to prevent this 
    13          bug using a different approach, by restoring operand types changed 
    14          by build_cfg if build_cfg exits with exit code 0. 
    15  
    16          Since php-5.1 some opcode handlers expect a strict set of operand 
    17          types, anything else results in 'Invalid opcode' errors. Since 
    18          build_cfg changes some operand types these changes need to be 
    19          reverted once the optimizer finishes. For now the only opcode to 
    20          which this all applies is ZEND_FETCH_CONSTANT, which expects 
    21          either a CONST or a UNUSED in op1 and a CONST in op2 (See 
    22          zend_vm_def.h) 
     15        * Reverted the change to the handling of ZEND_BRK made by me on 
     16          2006-03-17 since it wasn't working as it should. Since this 
     17          reintroduces sf.net bug #1442923 i added some code to prevent this 
     18          bug using a different approach, by restoring operand types changed 
     19          by build_cfg if build_cfg exits with exit code 0. 
     20 
     21          Since php-5.1 some opcode handlers expect a strict set of operand 
     22          types, anything else results in 'Invalid opcode' errors. Since 
     23          build_cfg changes some operand types these changes need to be 
     24          reverted once the optimizer finishes. For now the only opcode to 
     25          which this all applies is ZEND_FETCH_CONSTANT, which expects 
     26          either a CONST or a UNUSED in op1 and a CONST in op2 (See 
     27          zend_vm_def.h) 
    2328 
    24292006-04-04  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/dasm.php

    r189 r196  
    1717 
    1818   $ Id: $ 
    19 */ 
     19 
     20/** config **/ 
     21$user = "admin"; 
     22$pw = "eAccelerator"; 
     23/** /config **/ 
     24 
     25/* {{{ auth */ 
     26if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_USER']) || 
     27        $_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pw) { 
     28    header('WWW-Authenticate: Basic realm="eAccelerator control panel"'); 
     29    header('HTTP/1.0 401 Unauthorized'); 
     30    exit; 
     31}  
     32/* }}} */ 
     33 
    2034?> 
    2135 
     
    5670<h1>eAccelerator disassembler</h1> 
    5771<?php 
    58     if (!isset($_GET['file']) && is_file($_GET['file'])) { 
     72    if (!isset($_GET['file']) && !is_file($_GET['file'])) { 
    5973        die('File argument not given!'); 
    6074    } 
     
    185199/* {{{ print_method: print the given method */ 
    186200    function print_method($name, $op_array) { 
    187         echo "<h4>Method: $name</h4>"; 
     201        echo "<h2>Method: $name</h2>"; 
    188202        print_op_array($op_array); 
    189203    } 
     
    194208                global $asm, $file; 
    195209                echo "<h2>Script layout</h2>\n"; 
    196                 echo "<div style=\"text-align: left; widht: 800px\">\n"; 
     210                echo "<div style=\"text-align: left; width: 800px\">\n"; 
    197211                echo "<ul>\n"; 
    198212                if (isset($asm['op_array'])) { 
     
    223237                global $file; 
    224238        echo "<h2>Class $name</h2>"; 
    225                 echo "<div style=\"text-align: left; widht: 800px\"><ul>\n"; 
     239                echo "<div style=\"text-align: left; width: 800px\"><ul>\n"; 
    226240        foreach($class as $method => $data) { 
    227241                        echo "<li><a href=\"?file=$file&amp;show=classes&amp;name=$name&amp;method=$method\">$method</a></li>\n";