Changeset 406

Show
Ignore:
Timestamp:
02/18/10 14:49:23 (5 months ago)
Author:
hans
Message:

php_check_open_basedir only needs to be called when restoring

Files:

Legend:

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

    r405 r406  
    33                * Remove some leftover debug output that broke compilation with 
    44                  php-5.2 and --with-eaccelerator-debug 
     5                * php_check_open_basedir only needs to be called when restoring 
    56 
    672010-02-04      Hans Rakers <hans at react.nl> 
  • eaccelerator/trunk/eaccelerator.c

    r394 r406  
    777777  EACCELERATOR_PROTECT(); 
    778778  if (p != NULL && p->op_array != NULL) { 
     779    /* only restore file when open_basedir allows it */ 
     780    if (php_check_open_basedir(realname TSRMLS_CC)) { 
     781      return NULL; 
     782    } 
    779783    EAG(class_entry) = NULL; 
    780784    op_array = restore_op_array(NULL, p->op_array TSRMLS_CC); 
     
    11291133    DBG(ea_debug_printf, (EA_DEBUG, "[%d] Leave COMPILE\n", getpid())); 
    11301134    return t; 
    1131   } 
    1132  
    1133   /* only restore file when open_basedir allows it */ 
    1134   if (PG(open_basedir) && php_check_open_basedir(realname TSRMLS_CC)) { 
    1135     zend_error(E_ERROR, "Can't load %s, open_basedir restriction.", file_handle->filename); 
    11361135  } 
    11371136