You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_005.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ echo "POST-CLASS-GUARD\n";
19
19
--EXPECTF--
20
20
PRE-CLASS-GUARD
21
21
22
-
Fatal error: ComposingClass and TestTrait define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
22
+
Fatal error: ComposingClass and TestTrait define the same constant (Constant) in the composition of ComposingClass. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_006.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ echo "POST-CLASS-GUARD\n";
19
19
--EXPECTF--
20
20
PRE-CLASS-GUARD
21
21
22
-
Fatal error: ComposingClass and TestTrait define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
22
+
Fatal error: ComposingClass and TestTrait define the same constant (Constant) in the composition of ComposingClass. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_007.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ echo "POST-CLASS-GUARD\n";
19
19
--EXPECTF--
20
20
PRE-CLASS-GUARD
21
21
22
-
Fatal error: ComposingClass and TestTrait define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
22
+
Fatal error: ComposingClass and TestTrait define the same constant (Constant) in the composition of ComposingClass. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_010.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ echo "POST-CLASS-GUARD\n";
19
19
--EXPECTF--
20
20
PRE-CLASS-GUARD
21
21
22
-
Fatal error: ComposingClass and TestTrait define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
22
+
Fatal error: ComposingClass and TestTrait define the same constant (Constant) in the composition of ComposingClass. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_011.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ trait Trait2 {
13
13
}
14
14
?>
15
15
--EXPECTF--
16
-
Fatal error: Trait2 and Trait1 define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
16
+
Fatal error: Trait2 and Trait1 define the same constant (Constant) in the composition of Trait2. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_012.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ trait Trait2 {
13
13
}
14
14
?>
15
15
--EXPECTF--
16
-
Fatal error: Trait2 and Trait1 define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
16
+
Fatal error: Trait2 and Trait1 define the same constant (Constant) in the composition of Trait2. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Copy file name to clipboardExpand all lines: Zend/tests/traits/constant_013.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ trait Trait2 {
13
13
}
14
14
?>
15
15
--EXPECTF--
16
-
Fatal error: Trait2 and Trait1 define the same constant (Constant). However, the definition differs and is considered incompatible. Class was composed in %s on line %d
16
+
Fatal error: Trait2 and Trait1 define the same constant (Constant) in the composition of Trait2. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
"%s and %s define the same constant (%s) in the composition of %s. However, the definition differs and is considered incompatible. Class was composed",
1618
-
ZSTR_VAL(old_constant->ce->name),
1619
-
ZSTR_VAL(parent_constant->ce->name),
1620
-
ZSTR_VAL(name),
1621
-
ZSTR_VAL(ce->name));
1622
-
} else {
1623
-
zend_error_noreturn(E_COMPILE_ERROR,
1624
-
"%s and %s define the same constant (%s). However, the definition differs and is considered incompatible. Class was composed",
1625
-
ZSTR_VAL(old_constant->ce->name),
1626
-
ZSTR_VAL(parent_constant->ce->name),
1627
-
ZSTR_VAL(name));
1628
-
}
1629
-
}
1630
-
returncompatible;
1631
-
} else {
1632
-
if (parent_constant->ce!=old_constant->ce&& (ZEND_CLASS_CONST_FLAGS(parent_constant) &ZEND_ACC_FINAL)) {
1633
-
zend_error_noreturn(E_COMPILE_ERROR, "%s::%s cannot override final constant %s::%s",
"%s and %s define the same constant (%s) in the composition of %s. However, the definition differs and is considered incompatible. Class was composed",
@@ -2254,7 +2291,7 @@ static void zend_do_traits_property_and_constant_binding(zend_class_entry *ce, z
2254
2291
if (!compatible) {
2255
2292
zend_error_noreturn(E_COMPILE_ERROR,
2256
2293
"%s and %s define the same property ($%s) in the composition of %s. However, the definition differs and is considered incompatible. Class was composed",
2257
-
ZSTR_VAL(find_first_definition(ce, traits, i, prop_name, colliding_prop->ce)->name),
2294
+
ZSTR_VAL(find_first_property_definition(ce, traits, i, prop_name, colliding_prop->ce)->name),
0 commit comments