[php-src] master: Remove ZEND_ACC_USE_GUARDS from hooks (#18587)

From: Date: Sun, 18 May 2025 13:12:33 +0000
Subject: [php-src] master: Remove ZEND_ACC_USE_GUARDS from hooks (#18587)
Groups: php.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
Author: Niels Dossche (nielsdos)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2025-05-18T15:01:24+02:00

Commit: https://github.com/php/php-src/commit/06738fc051a5f1c5eaee6b6de3e6fa3474480dba
Raw diff: https://github.com/php/php-src/commit/06738fc051a5f1c5eaee6b6de3e6fa3474480dba.diff

Remove ZEND_ACC_USE_GUARDS from hooks (#18587)

This is no longer necessary since the hooks amendments removed guards
for recursion.

Changed paths:
  M  Zend/zend_inheritance.c


Diff:

diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index e718eb5684e6..3c638f288a80 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -2983,7 +2983,6 @@ static void zend_do_traits_property_binding(zend_class_entry *ce,
zend_class_ent
 						hooks[j] = new_fn;
 					}
 				}
-				ce->ce_flags |= ZEND_ACC_USE_GUARDS;
 			}
 		} ZEND_HASH_FOREACH_END();
 	}


Thread (1 message)

  • Niels Dossche via GitHub
« previous php.cvs (#134142) next »