Skip to content

Pdo\Firebird - persistent connection - setAttribute(Pdo\Firebird::ATTR_DATE_FORMAT, ..) results in "zend_mm_heap corrupted" #18276

Closed
@iratonert

Description

@iratonert

Description

The following code:

$dbh = new PDO('firebird:dbname='.$database, $user, $password, array(PDO::ATTR_PERSISTENT => true));
$dbh->setAttribute(Pdo\Firebird::ATTR_DATE_FORMAT, '%m-%d-%Y');

Resulted in this output:
zend_mm_heap corrupted

I don't actually expect any output. The message "zend_mm_heap corrupted" seems to indicate that something went wrong.

If I don't establish a persistent connection, I don't get the "zend_mm_heap corrupted" message.

If I omit setting the Pdo\Firebird::ATTR_DATE_FORMAT attribute, I don't get the "zend_mm_heap corrupted" message.

It doesn't matter which of the Pdo\Firebird::ATTR_DATE_FORMAT, Pdo\Firebird::ATTR_TIME_FORMAT, or Pdo\Firebird::ATTR_TIMESTAMP_FORMAT attributes I set, or whether I set one of them, all three, or two of them. As soon as I use a persistent connection and set one of these attributes, I get the "zend_mm_heap corrupted" message at the end of the script.

PHP Version

PHP 8.4.1 (cli) (built: Nov 20 2024 11:13:22) (NTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
with Xdebug v3.4.0, Copyright (c) 2002-2024, by Derick Rethans

Operating System

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions