Skip to content

Commit c50f4de

Browse files
committed
Fix typo in comment
[ci skip]
1 parent 27bb573 commit c50f4de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@ static zend_always_inline void zend_fetch_property_address(zval *result, zval *c
28412841
zend_property_info *prop_info = CACHED_PTR_EX(cache_slot + 2);
28422842
if (prop_info) {
28432843
if (UNEXPECTED(prop_info->flags & ZEND_ACC_READONLY)) {
2844-
/* For objects, R/RW/UNSET fetch modes might not actually modify object.
2844+
/* For objects, W/RW/UNSET fetch modes might not actually modify object.
28452845
* Similar as with magic __get() allow them, but return the value as a copy
28462846
* to make sure no actual modification is possible. */
28472847
ZEND_ASSERT(type == BP_VAR_W || type == BP_VAR_RW || type == BP_VAR_UNSET);

Zend/zend_object_handlers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ ZEND_API zval *zend_std_read_property(zend_object *zobj, zend_string *name, int
589589
if (prop_info && UNEXPECTED(prop_info->flags & ZEND_ACC_READONLY)
590590
&& (type == BP_VAR_W || type == BP_VAR_RW || type == BP_VAR_UNSET)) {
591591
if (Z_TYPE_P(retval) == IS_OBJECT) {
592-
/* For objects, R/RW/UNSET fetch modes might not actually modify object.
592+
/* For objects, W/RW/UNSET fetch modes might not actually modify object.
593593
* Similar as with magic __get() allow them, but return the value as a copy
594594
* to make sure no actual modification is possible. */
595595
ZVAL_COPY(rv, retval);

0 commit comments

Comments
 (0)