php-eaccelerator.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Index: ea_restore.c
  2. --- ea_restore.c.orig 2006-10-11 14:45:52 +0200
  3. +++ ea_restore.c 2007-02-11 11:50:15 +0100
  4. @@ -715,6 +715,9 @@
  5. to->doc_comment = NULL;
  6. #endif
  7. #endif
  8. +#ifdef ZEND_ENGINE_2_2
  9. + to->ce = EAG(class_entry);
  10. +#endif
  11. return to;
  12. }
  13. #endif
  14. Index: eaccelerator.ini
  15. --- eaccelerator.ini.orig 2006-10-11 14:45:52 +0200
  16. +++ eaccelerator.ini 2007-02-11 11:49:49 +0100
  17. @@ -1,23 +1,6 @@
  18. -[eaccelerator]
  19. -;;;;;;;;;;;;;;;;;;;
  20. -; About this file ;
  21. -;;;;;;;;;;;;;;;;;;;
  22. -;
  23. -; eAccelerator is compatible with Zend Optimizer's loader. Zend Optimizer
  24. -; must be installed after eAccelerator in php.ini. If you don't use scripts
  25. -; encoded with Zend Encoder then we do not recommend you install Zend Optimizer
  26. -; with eAccelerator.
  27. -
  28. -
  29. -; You must uncomment one (and only one) line from the following to load
  30. -; eAccelerator extension.
  31. -;extension="eaccelerator.so"
  32. -zend_extension="/usr/lib/php4/eaccelerator.so"
  33. -;zend_extension_ts="/usr/lib/php4/eaccelerator.so"
  34. -;extension="eaccelerator.dll"
  35. -;zend_extension_ts="c:\php4\eaccelerator.dll"
  36. -;zend_extension="c:\php4\eaccelerator.dll"
  37. +; Load the extension module
  38. +zend_extension="eaccelerator.so"
  39. ; The amount of shared memory (in megabytes) that eAccelerator will use.
  40. ; "0" means OS default. Default value is "0".