summaryrefslogtreecommitdiffstats
path: root/apc-svn.patch
blob: 14547e256fb190a95915fcf828293ea971373a9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Index: apc_compile.c
===================================================================
--- apc_compile.c	(révision 328824)
+++ apc_compile.c	(copie de travail)
@@ -2469,9 +2469,11 @@
         dst->alias_len = src->alias_len;
     }
 
+#ifndef ZEND_ENGINE_2_5
     if (src->function) {
         CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC));
     }
+#endif
 
     APC_COPY_TRAIT_METHOD(dst->trait_method, src->trait_method);
 
@@ -2506,9 +2508,11 @@
     }
     memcpy(dst, src, sizeof(zend_trait_precedence));
 
+#ifndef ZEND_ENGINE_2_5
     if (src->function) {
         CHECK(dst->function = my_copy_function(NULL, src->function, ctxt TSRMLS_CC));
     } 
+#endif
 
     if (src->exclude_from_classes && *src->exclude_from_classes) {
         int i = 0, num_classes = 0;
Index: tests/apc54_error_010.phpt
===================================================================
--- tests/apc54_error_010.phpt	(révision 328955)
+++ tests/apc54_error_010.phpt	(copie de travail)
@@ -23,8 +23,8 @@
 }
 
 class bar {
-	use foo, c { c::test insteadof foo, b; }
-	use foo, c { c::test insteadof foo, b; }
+	use foo, c { c::test insteadof foo; }
+	use foo, c { c::test insteadof foo; }
 }
 
 \$x = new bar;
Index: tests/apc54_error_010_2.phpt
===================================================================
--- tests/apc54_error_010_2.phpt	(révision 328955)
+++ tests/apc54_error_010_2.phpt	(copie de travail)
@@ -23,7 +23,7 @@
 }
 
 class bar {
-	use foo, c { c::test insteadof foo, b; }
+	use foo, c { c::test insteadof foo; }
 }
 
 \$x = new bar;