SOURCES: php-eaccelerator-bug-242.patch - fixed

arekm arekm at pld-linux.org
Fri Aug 31 19:21:02 CEST 2007


Author: arekm                        Date: Fri Aug 31 17:21:02 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed

---- Files affected:
SOURCES:
   php-eaccelerator-bug-242.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/php-eaccelerator-bug-242.patch
diff -u SOURCES/php-eaccelerator-bug-242.patch:1.1 SOURCES/php-eaccelerator-bug-242.patch:1.2
--- SOURCES/php-eaccelerator-bug-242.patch:1.1	Fri Aug 31 19:16:09 2007
+++ SOURCES/php-eaccelerator-bug-242.patch	Fri Aug 31 19:20:57 2007
@@ -1,29 +1,17 @@
-Index: eaccelerator/trunk/ChangeLog
-===================================================================
---- eaccelerator/trunk/ChangeLog (revision 308)
-+++ eaccelerator/trunk/ChangeLog (revision 323)
-@@ -1,2 +1,8 @@
-+2007-08-14  Hans Rakers <hans at react.nl>
-+
-+	* Optimizer fix for #242. PHP-5.2.1 introduces a ZEND_JMP before a
-+	  ZEND_FETCH_CLASS/ZEND_CATCH which the optimizer did not handle
-+	  correctly, resulting in uncaught exceptions. (Thanks to warwickshaw)
-+
- 2007-05-09  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be>
- 
-Index: eaccelerator/trunk/optimize.c
-===================================================================
---- eaccelerator/trunk/optimize.c (revision 322)
-+++ eaccelerator/trunk/optimize.c (revision 323)
-@@ -2976,4 +2976,11 @@
- 						op->extended_value = 0;
- 					}
-+#  if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 && PHP_RELEASE_VERSION >= 1) || PHP_MAJOR_VERSION >= 6
-+					/* php > 5.2.1 introduces a ZEND_JMP before a ZEND_FETCH_CLASS and ZEND_CATCH
-+					   this leaves those blocks intact */
-+					else if ((op+1)->opcode == ZEND_FETCH_CLASS && (op+2)->opcode == ZEND_CATCH) { /* fix for #242 */
-+						p->follow = &bb[line_num];
-+					}
-+#  endif
- #endif
- 					break;
+--- eaccelerator-0.9.5.1/optimize.c.org	2007-08-31 18:25:13.163501159 +0200
++++ eaccelerator-0.9.5.1/optimize.c	2007-08-31 18:25:39.498357894 +0200
+@@ -2982,6 +2982,13 @@
+ 						/* clear extended_value again just for tidyness :) */
+ 						op->extended_value = 0;
+ 					}
++#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 && PHP_RELEASE_VERSION >= 1) || PHP_MAJOR_VERSION >= 6
++					/* php > 5.2.1 introduces a ZEND_JMP before a ZEND_FETCH_CLASS and ZEND_CATCH
++					   this leaves those blocks intact */
++					else if ((op+1)->opcode == ZEND_FETCH_CLASS && (op+2)->opcode == ZEND_CATCH) { /* fix for #242 */
++						p->follow = &bb[line_num];
++					}
++#endif
+ #endif
+ 					break;
+ 				case ZEND_JMPZNZ:
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/php-eaccelerator-bug-242.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list