[php-src] master: streams: remove StreamError::$param property
Gina Peter Banyard <[email protected]> Mon, 20 Jul 2026 19:50:23 +0000
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-20T20:50:13+01:00
Commit: https://github.com/php/php-src/commit/36d854783b5c505fd4feebd1f88f3aabf2979c2e
Raw diff: https://github.com/php/php-src/commit/36d854783b5c505fd4feebd1f88f3aabf2979c2e.diff
streams: remove StreamError::$param property
It is always null
Changed paths:
M main/streams/stream_errors.c
M main/streams/stream_errors.stub.php
M main/streams/stream_errors_arginfo.h
M main/streams/stream_errors_decl.h
Diff:
diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c
index 5cb4d3df4026..b2dfdbb217ad 100644
--- a/main/streams/stream_errors.c
+++ b/main/streams/stream_errors.c
@@ -66,9 +66,6 @@ static void php_stream_error_create_object(zval *zv, php_stream_error_entry *ent
zend_update_property_bool(
php_ce_stream_error, Z_OBJ_P(zv), ZEND_STRL("terminating"), entry->terminating);
-
- /* TODO: Remove property */
- zend_update_property_null(php_ce_stream_error, Z_OBJ_P(zv), ZEND_STRL("param"));
}
/* Create array of StreamError objects from error chain */
diff --git a/main/streams/stream_errors.stub.php b/main/streams/stream_errors.stub.php
index 255c92beb89e..28fb381df24d 100644
--- a/main/streams/stream_errors.stub.php
+++ b/main/streams/stream_errors.stub.php
@@ -132,7 +132,6 @@ enum StreamErrorStore
public string $wrapperName;
public int $severity;
public bool $terminating;
- public ?string $param;
}
class StreamException extends Exception
diff --git a/main/streams/stream_errors_arginfo.h b/main/streams/stream_errors_arginfo.h
index 89df622beb05..4558f64b77f5 100644
--- a/main/streams/stream_errors_arginfo.h
+++ b/main/streams/stream_errors_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit stream_errors.stub.php instead.
- * Stub hash: 4cddf758cc9f2041802d8cbbaaa45593022a5db1
+ * Stub hash: d3087b608996f81bf0dd19c25792feec9744e768
* Has decl header: yes */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_StreamException_getErrors, 0, 0, IS_ARRAY, 0)
@@ -237,12 +237,6 @@ static zend_class_entry *register_class_StreamError(void)
zend_declare_typed_property(class_entry, property_terminating_name, &property_terminating_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
zend_string_release_ex(property_terminating_name, true);
- zval property_param_default_value;
- ZVAL_UNDEF(&property_param_default_value);
- zend_string *property_param_name = zend_string_init("param", sizeof("param") - 1, true);
- zend_declare_typed_property(class_entry, property_param_name, &property_param_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
- zend_string_release_ex(property_param_name, true);
-
return class_entry;
}
diff --git a/main/streams/stream_errors_decl.h b/main/streams/stream_errors_decl.h
index 69fe96252b4c..3a18055b9e74 100644
--- a/main/streams/stream_errors_decl.h
+++ b/main/streams/stream_errors_decl.h
@@ -1,8 +1,8 @@
/* This is a generated file, edit stream_errors.stub.php instead.
- * Stub hash: 4cddf758cc9f2041802d8cbbaaa45593022a5db1 */
+ * Stub hash: d3087b608996f81bf0dd19c25792feec9744e768 */
-#ifndef ZEND_STREAM_ERRORS_DECL_4cddf758cc9f2041802d8cbbaaa45593022a5db1_H
-#define ZEND_STREAM_ERRORS_DECL_4cddf758cc9f2041802d8cbbaaa45593022a5db1_H
+#ifndef ZEND_STREAM_ERRORS_DECL_d3087b608996f81bf0dd19c25792feec9744e768_H
+#define ZEND_STREAM_ERRORS_DECL_d3087b608996f81bf0dd19c25792feec9744e768_H
typedef enum zend_enum_StreamErrorCode {
ZEND_ENUM_StreamErrorCode_None = 1,
@@ -184,4 +184,4 @@ typedef enum zend_enum_StreamErrorStore {
ZEND_ENUM_StreamErrorStore_All = 5,
} zend_enum_StreamErrorStore;
-#endif /* ZEND_STREAM_ERRORS_DECL_4cddf758cc9f2041802d8cbbaaa45593022a5db1_H */
+#endif /* ZEND_STREAM_ERRORS_DECL_d3087b608996f81bf0dd19c25792feec9744e768_H */