Changeset 224

Show
Ignore:
Timestamp:
06/30/06 16:01:39 (2 years ago)
Author:
bart
Message:

Cleaned up the checking for other incompatible extensions a

bit. This should fix the use of IonCube? with eAccelerator. I did
some test loading IonCube? in different ways and never got in to
trouble. This fixes ticket #66.

Files:

Legend:

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

    r223 r224  
     12006-06-30  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Cleaned up the checking for other incompatible extensions a  
     4          bit. This should fix the use of IonCube with eAccelerator. I did  
     5          some test loading IonCube in different ways and never got in to  
     6          trouble. This fixes ticket #66. 
     7 
    182006-06-30  Hans Rakers <hans at parse dot nl> 
    29 
  • eaccelerator/trunk/eaccelerator.c

    r222 r224  
    24752475*/ 
    24762476 
     2477 
    24772478ZEND_DLEXPORT int eaccelerator_zend_startup(zend_extension *extension) { 
    24782479 eaccelerator_is_zend_extension = 1; 
     
    25162517          } 
    25172518        } 
    2518       } else if (strcmp(ext->name, "pcntl") == 0) { 
    2519       } else if (strcmp(ext->name, "DBG") == 0) { 
    2520       } else if (strcmp(ext->name, "Xdebug") == 0) { 
    2521       } else if (strcmp(ext->name, "Advanced PHP Debugger (APD)") == 0) { 
    25222519      } else if (strcmp(ext->name, "Zend Extension Manager") == 0 || 
    25232520                 strcmp(ext->name, "Zend Optimizer") == 0) { 
     
    25252522        ZendOptimizer = ext; 
    25262523        ext->op_array_handler = NULL; 
    2527 /*??? 
    2528         } else if (strcmp(ext->name, "the ionCube PHP Loader") == 0) { 
    2529           zend_extension* last_ext = (zend_extension*)zend_extensions.tail->data; 
    2530           if (ext != last_ext) { 
    2531             last_ext->startup  = last_startup; 
    2532             last_startup = ext->startup; 
    2533             ext->startup = eaccelerator_ioncube_startup; 
    2534           } 
    2535 */ 
    2536       } else { 
    2537         zend_error(E_CORE_ERROR,"[%s] %s %s is incompatible with %s %s", 
    2538                    EACCELERATOR_EXTENSION_NAME, 
    2539                    EACCELERATOR_EXTENSION_NAME, 
    2540                    EACCELERATOR_VERSION, 
    2541                    ext->name, 
    2542                    ext->version); 
    2543         exit(1); 
    25442524      } 
    25452525      p = p->next;