Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zend_mm_heap corrupted when MYSQL new \PDO called first time #69

Open
EdmondDantes opened this issue Dec 11, 2023 · 0 comments
Open

zend_mm_heap corrupted when MYSQL new \PDO called first time #69

EdmondDantes opened this issue Dec 11, 2023 · 0 comments

Comments

@EdmondDantes
Copy link

EdmondDantes commented Dec 11, 2023

ENV:

RESOLVED
Reason: attribute: \PDO::ATTR_PERSISTENT = TRUE!!!
Please update docs!
Thanks

Swoole version: 22.1.0 and 22.1.2
Maybe it's significant: Runtime::enableCoroutine(true, Runtime::HOOK_TCP);

FROM php:8.3-cli-alpine as builder

RUN apk add --no-cache $PHPIZE_DEPS \
    openssl-dev \
    curl-dev \
    c-ares-dev \
	  linux-headers \
    musl-dev \
	&& docker-php-ext-install sockets curl pdo pdo_mysql \
	&& pecl install -D 'enable-sockets="yes" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-hook-curl="yes" enable-cares="yes" with-postgres="no"' openswoole \
	&& echo 'extension=openswoole.so' > /usr/local/etc/php/conf.d/zz_openswoole.ini 

Code:

       try
        {
            echo 'connectionAttempt...'."\n";
            $this->dbh              = new \PDO($this->dsn, $this->username, $this->password, $this->options);
            echo 'connectionAttempt...2'."\n";
        }
        catch(\PDOException $exception)
        {
            echo 'connectionAttempt: Exception'."\n";

Output:

Request: /heartbeat
connectionAttempt...
zend_mm_heap corrupted
[2023-12-11 20:32:07 $7787.0]   WARNING Server::check_worker_exit_status(): worker(pid=7790, id=0) abnormal exit, status=0, signal=6
Worker 0 started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant