Skip to content

Commit 1c1fde3

Browse files
committed
Debugging
1 parent 994387c commit 1c1fde3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/zend_API.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4485,6 +4485,9 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
44854485
}
44864486
#if ZEND_DEBUG
44874487
zend_property_info *existing_prop = zend_hash_find_ptr(&ce->properties_info, name);
4488+
if (existing_prop) {
4489+
fprintf(stderr, "Redeclared prop: %s::$%s\n", ZSTR_VAL(ce->name), ZSTR_VAL(name));
4490+
}
44884491
ZEND_ASSERT(!existing_prop);
44894492
#endif
44904493
if (access_type & ZEND_ACC_STATIC) {

0 commit comments

Comments
 (0)