Skip to content

Commit c178ca6

Browse files
Rebase issues
1 parent 574df7c commit c178ca6

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

Zend/zend_attributes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static zend_object_handlers attributes_object_handlers_sensitive_parameter_value
3838

3939
static HashTable internal_attributes;
4040

41-
uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope)
41+
uint32_t zend_attribute_attribute_get_flags(const zend_attribute *attr, zend_class_entry *scope)
4242
{
4343
// TODO: More proper signature validation: Too many args, incorrect arg names.
4444
if (attr->argc > 0) {
@@ -70,7 +70,7 @@ uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_ent
7070
return ZEND_ATTRIBUTE_TARGET_ALL;
7171
}
7272

73-
static void validate_allow_dynamic_properties(
73+
static zend_string *validate_allow_dynamic_properties(
7474
zend_attribute *attr, uint32_t target, zend_class_entry *scope)
7575
{
7676
ZEND_ASSERT(scope != NULL);

Zend/zend_attributes.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,3 @@ public function __construct(?string $message = null) {}
103103
*/
104104
#[Attribute(Attribute::TARGET_ALL)]
105105
final class DelayedTargetValidation {}
106-

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7656,7 +7656,7 @@ static void zend_compile_attributes(
76567656
if (args) {
76577657
ZEND_ASSERT(args->kind == ZEND_AST_ARG_LIST);
76587658

7659-
bool uses_named_args = 0;
7659+
bool uses_named_args = false;
76607660
for (j = 0; j < args->children; j++) {
76617661
zend_ast **arg_ast_ptr = &args->child[j];
76627662
zend_ast *arg_ast = *arg_ast_ptr;
@@ -7669,7 +7669,7 @@ static void zend_compile_attributes(
76697669
if (arg_ast->kind == ZEND_AST_NAMED_ARG) {
76707670
attr->args[j].name = zend_string_copy(zend_ast_get_str(arg_ast->child[0]));
76717671
arg_ast_ptr = &arg_ast->child[1];
7672-
uses_named_args = 1;
7672+
uses_named_args = true;
76737673

76747674
for (uint32_t k = 0; k < j; k++) {
76757675
if (attr->args[k].name &&

ext/opcache/zend_accelerator_util_funcs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static zend_always_inline void _zend_accel_class_hash_copy(HashTable *target, co
214214
* value. */
215215
continue;
216216
} else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) {
217-
zend_class_entry *ce1;
217+
const zend_class_entry *ce1;
218218
Z_CE_FROM_ZVAL(ce1, p->val);
219219
if (!(ce1->ce_flags & ZEND_ACC_ANON_CLASS)) {
220220
CG(in_compilation) = 1;
@@ -354,8 +354,8 @@ static void zend_accel_do_delayed_early_binding(
354354
CG(compiled_filename) = persistent_script->script.filename;
355355
CG(in_compilation) = 1;
356356
for (uint32_t i = 0; i < persistent_script->num_early_bindings; i++) {
357-
zend_early_binding *early_binding = &persistent_script->early_bindings[i];
358-
zval *ce_or_alias = zend_hash_find_ex(EG(class_table), early_binding->lcname, 1);
357+
const zend_early_binding *early_binding = &persistent_script->early_bindings[i];
358+
const zval *ce_or_alias = zend_hash_find_ex(EG(class_table), early_binding->lcname, 1);
359359
if (!ce_or_alias) {
360360
zval *zv = zend_hash_find_known_hash(EG(class_table), early_binding->rtd_key);
361361
zend_class_entry *ce = NULL;

0 commit comments

Comments
 (0)