Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.3.0] undefined symbol: php_hash_bin2hex #1796

@vvhungy

Description

@vvhungy

Build phpredis 5.3.0, ./configure --enable-redis --disable-redis-session

"make" got WARNING:

/root/sources/redis-5.3.0/redis.c: In function ‘redis_random_hex_bytes’:
/root/sources/redis-5.3.0/redis.c:787:9: warning: implicit declaration of function ‘php_hash_bin2hex’; did you mean ‘zend_hash_find_ex’? [-Wimplicit-function-declaration]
php_hash_bin2hex(dst, (unsigned char *)ZSTR_VAL(s), bytes);
^~~~~~~~~~~~~~~~
zend_hash_find_ex

"make test" got "undefined symbol":

/myserver/php-7.3.19/bin/php: symbol lookup error: /root/sources/redis-5.3.0/modules/redis.so: undefined symbol: php_hash_bin2hex
/myserver/php-7.3.19/bin/phpdbg: symbol lookup error: /root/sources/redis-5.3.0/modules/redis.so: undefined symbol: php_hash_bin2hex
/myserver/php-7.3.19/bin/php: symbol lookup error: /root/sources/redis-5.3.0/modules/redis.so: undefined symbol: php_hash_bin2hex

I'm seeing this behaviour on

  • OS: CentOS 8
  • PHP: 7.3.19
  • phpredis: 5.3.0
  • gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions