Changeset 168

Show
Ignore:
Timestamp:
02/20/06 22:36:10 (3 years ago)
Author:
zoeloelip
Message:

Fixed bypassing open_basedir restriction when the file was already

cached. This fixes bug #1427719

Files:

Legend:

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

    r167 r168  
     12006-02-20  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Fixed bypassing open_basedir restriction when the file was already  
     4          cached. This fixes bug #1427719 
     5 
    162006-02-20  Hans Rakers <hans at parse dot nl> 
    27 
    3        * Fixed static_members handling for php-5.0. Broke this while 
    4          working on PHP-5.1 support. Lost in ifdef statements ;) 
    5        * Fixed ZE1 (<=PHP4) problem regarding parent class lookup during restore. 
    6          Parent classname wasn't lowercased before lookup in class_table. This 
    7          also fixes bug #1432758 (can't restore parent class "stdClass" of class xyz) 
     8        * Fixed static_members handling for php-5.0. Broke this while 
     9          working on PHP-5.1 support. Lost in ifdef statements ;) 
     10        * Fixed ZE1 (<=PHP4) problem regarding parent class lookup during restore. 
     11          Parent classname wasn't lowercased before lookup in class_table. This 
     12          also fixes bug #1432758 (can't restore parent class "stdClass" of class xyz) 
    813 
    9142006-02-19  Hans Rakers <hans at parse dot nl> 
    1015 
    11        * Restored PHP4 compatibility 
    12        * Fixed inheritance/prototype issue with abstract methods and classes during 
    13          restore. zend_do_inheritance handles these properly now. 
     16        * Restored PHP4 compatibility 
     17        * Fixed inheritance/prototype issue with abstract methods and classes during 
     18          restore. zend_do_inheritance handles these properly now. 
    1419 
    15202006-02-18  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     
    261266 
    2622672005-05-10 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    263          
     268     
    264269        * Added some includes to satisfy VC.NET (thanks to dakalka, patch 1198522) 
    265270        * This patch adds the right destructor for the propertiesinfo hashtable, but it doesn't fix bug 1179270 
     
    307312         
    308313        Bugfixes included: 
    309         * Patch 1188510        eaccelerator_compile_file typos 
    310         * Patch 1189792        session life time patch 
    311         * Patch 1167069        HAS_ATTRIBUTE fix with FreeBSD 4.x 
    312         * Patch 1166707        loader patch for OOP functions in PHP5 
     314        * Patch 1188510 eaccelerator_compile_file typos 
     315        * Patch 1189792 session life time patch 
     316        * Patch 1167069 HAS_ATTRIBUTE fix with FreeBSD 4.x 
     317        * Patch 1166707 loader patch for OOP functions in PHP5 
    313318        * Patch 1173095 mm_alloc & mm_free clash with libirc 
    314319        * Fix for 1178588, 1153030 and patch 1189852. Fixes the endless loop when reseting a non array. 
  • eaccelerator/trunk/eaccelerator.c

    r162 r168  
    12681268    ea_debug_printf(EA_DEBUG, "[%d] Leave COMPILE\n", getpid()); 
    12691269    return t; 
     1270  } 
     1271 
     1272  /* only restore file when open_basedir allows it */ 
     1273  if (php_check_open_basedir(file_handle->filename TSRMLS_CC)) { 
     1274    zend_error(E_ERROR, "Can't load %s, open_basedir restriction.", file_handle->filename); 
    12701275  } 
    12711276