[php-src] master: ext/uri: Add @strict-properties to the newly introduced UriBuilder class

Máté Kocsis <[email protected]> Fri, 17 Jul 2026 21:16:35 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Máté Kocsis (kocsismate)
Date: 2026-07-17T23:16:24+02:00

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

ext/uri: Add @strict-properties to the newly introduced UriBuilder class

Changed paths:
  M  ext/uri/php_uri.stub.php
  M  ext/uri/php_uri_arginfo.h
  M  ext/uri/php_uri_decl.h


Diff:

diff --git a/ext/uri/php_uri.stub.php b/ext/uri/php_uri.stub.php
index d00ef45cb86e..81a766c0e16d 100644
--- a/ext/uri/php_uri.stub.php
+++ b/ext/uri/php_uri.stub.php
@@ -45,6 +45,7 @@ enum UriHostType
         case RegisteredName;
     }
 
+    /** @strict-properties */
     final class UriBuilder
     {
         private ?string $scheme = null;
diff --git a/ext/uri/php_uri_arginfo.h b/ext/uri/php_uri_arginfo.h
index e63e495526f5..1231408fbeb6 100644
--- a/ext/uri/php_uri_arginfo.h
+++ b/ext/uri/php_uri_arginfo.h
@@ -1,5 +1,5 @@
 /* This is a generated file, edit php_uri.stub.php instead.
- * Stub hash: 1a396b7a5b170b968d84a2c64a5bcf7d962653db
+ * Stub hash: bfd9247fa79baf877d600134c9ef615ec5ca9cea
  * Has decl header: yes */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Uri_Rfc3986_UriBuilder_reset, 0, 0, IS_STATIC, 0)
@@ -453,7 +453,7 @@ static zend_class_entry *register_class_Uri_Rfc3986_UriBuilder(void)
 	zend_class_entry ce, *class_entry;
 
 	INIT_NS_CLASS_ENTRY(ce, "Uri\\Rfc3986", "UriBuilder", class_Uri_Rfc3986_UriBuilder_methods);
-	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL);
+	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES);
 
 	zval property_scheme_default_value;
 	ZVAL_NULL(&property_scheme_default_value);
diff --git a/ext/uri/php_uri_decl.h b/ext/uri/php_uri_decl.h
index 784ac5b4c0e5..9c817659cf76 100644
--- a/ext/uri/php_uri_decl.h
+++ b/ext/uri/php_uri_decl.h
@@ -1,8 +1,8 @@
 /* This is a generated file, edit php_uri.stub.php instead.
- * Stub hash: 1a396b7a5b170b968d84a2c64a5bcf7d962653db */
+ * Stub hash: bfd9247fa79baf877d600134c9ef615ec5ca9cea */
 
-#ifndef ZEND_PHP_URI_DECL_1a396b7a5b170b968d84a2c64a5bcf7d962653db_H
-#define ZEND_PHP_URI_DECL_1a396b7a5b170b968d84a2c64a5bcf7d962653db_H
+#ifndef ZEND_PHP_URI_DECL_bfd9247fa79baf877d600134c9ef615ec5ca9cea_H
+#define ZEND_PHP_URI_DECL_bfd9247fa79baf877d600134c9ef615ec5ca9cea_H
 
 typedef enum zend_enum_Uri_UriComparisonMode {
 	ZEND_ENUM_Uri_UriComparisonMode_IncludeFragment = 1,
@@ -63,4 +63,4 @@ typedef enum zend_enum_Uri_WhatWg_UrlHostType {
 	ZEND_ENUM_Uri_WhatWg_UrlHostType_Empty = 5,
 } zend_enum_Uri_WhatWg_UrlHostType;
 
-#endif /* ZEND_PHP_URI_DECL_1a396b7a5b170b968d84a2c64a5bcf7d962653db_H */
+#endif /* ZEND_PHP_URI_DECL_bfd9247fa79baf877d600134c9ef615ec5ca9cea_H */