Package: php-zmq
Version: 1.1.3-24
Severity: important

poll->add() allways returns same id for the added socket, and only the
first added socket is actually polled.

This affects the current php version, does not occurs in 7.4

This problem seems to originate here:

zend_string *s_create_key(zval *entry)
{
        if (Z_TYPE_P(entry) == IS_RESOURCE) {
                /* zend_long since 8.1.0 */
                return strpprintf(0, "r:%ld", (long)Z_RES_P(entry)->handle);
        }
        else {
#if PHP_VERSION_ID >= 80100
                zend_string *hash = php_spl_object_hash(Z_OBJ_P(entry));
#else
                zend_string *hash = php_spl_object_hash(entry);
#endif
                zend_string *key = strpprintf(0, "o:%s", hash->val);
                zend_string_release(hash);
                return key;
        }
}


Thank you.

-- System Information:
Debian Release: 12.0
merged-usr: no
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-11-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_AR:es
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages php-zmq depends on:
ii  php-common  2:93
ii  php8.2-zmq  1.1.3-24

php-zmq recommends no packages.

php-zmq suggests no packages.

-- debconf-show failed

Reply via email to