- Core:
. Fixed bug #77589 (Core dump using parse_ini_string with numeric sections).
(Laruence)
+ . Fixed bug #77329 (Buffer Overflow via overly long Error Messages).
+ (Dmitry)
+ . Fixed bug #77494 (Disabling class causes segfault on member access).
+ (Dmitry)
+ . Fixed bug #77498 (Custom extension Segmentation fault when declare static
+ property). (Nikita)
+ . Fixed bug #77530 (PHP crashes when parsing `(2)::class`). (Ekin)
+ . Fixed bug #77546 (iptcembed broken function). (gdegoulet)
+ - COM:
+ . Fixed bug #77621 (Already defined constants are not properly reported).
+ (cmb)
+
+- Mbstring:
+ . Fixed bug #77514 (mb_ereg_replace() with trailing backslash adds null byte).
+ (Nikita)
+
+- OpenSSL:
+ . Fixed bug #77390 (feof might hang on TLS streams in case of fragmented TLS
+ records). (Abyl Valg, Jakub Zelenka)
+
- PDO_OCI:
. Support Oracle Database tracing attributes ACTION, MODULE,
CLIENT_INFO, and CLIENT_IDENTIFIER. (Cameron Porter)
SysFreeString(bstr_ids);
/* sanity check for the case where the constant is already defined */
+ php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage);
if ((exists = zend_get_constant(c.name)) != NULL) {
- if (COMG(autoreg_verbose) && !compare_function(&results, &c.value, exists)) {
- php_error_docref(NULL, E_WARNING, "Type library constant %s is already defined", c.name);
+ if (COMG(autoreg_verbose) && !compare_function(&results, &value, exists)) {
+ php_error_docref(NULL, E_WARNING, "Type library constant %s is already defined", ZSTR_VAL(c.name));
}
- zend_string_release(c.name);
+ zend_string_release_ex(c.name, 1);
ITypeInfo_ReleaseVarDesc(TypeInfo, pVarDesc);
continue;
}
/* register the constant */
- php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage);
if (Z_TYPE(value) == IS_LONG) {
- c.flags = mode;
+ ZEND_CONSTANT_SET_FLAGS(&c, mode, 0);
ZVAL_LONG(&c.value, Z_LVAL(value));
- c.module_number = 0;
zend_register_constant(&c);
}
ITypeInfo_ReleaseVarDesc(TypeInfo, pVarDesc);