[php-src] Issue #15535: Install Redis with PECL fatal error: standard/php_random.h: No such file or directory

From: Date: Thu, 22 Aug 2024 00:29:27 +0000
Subject: [php-src] Issue #15535: Install Redis with PECL fatal error: standard/php_random.h: No such file or directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247572@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15535 Author: lehungio ### Description The following code: ``` RUN pecl install redis \ && pecl install xdebug \ && docker-php-ext-enable redis xdebug ``` Resulted in this output: https://github.com/lecaoquochung/docker-images/actions/runs/10499144708/job/29085373358?pr=3#step:3:274 ``` ------ > [ 6/44] RUN pecl install redis && pecl install xdebug && > docker-php-ext-enable redis xdebug: 3.038 running: make 3.042 /bin/sh /tmp/pear/temp/pear-build-defaultuserjvh3lbutdb7n3FowsrF/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis.c -o redis.lo -MMD -MF redis.dep -MT redis.lo 3.108 mkdir .libs 3.110 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis.c -MMD -MF redis.dep -MT redis.lo -fPIC -DPIC -o .libs/redis.o 3.233 /tmp/pear/temp/redis/redis.c:30:10: fatal error: standard/php_random.h: No such file or directory 3.233 30 | #include <standard/php_random.h> 3.233 | ^~~~~~~~~~~~~~~~~~~~~~~ 3.233 compilation terminated. 3.236 make: *** [Makefile:204: redis.lo] Error 1 3.238 ERROR: `make' failed ------ Dockerfile.beta:31 -------------------- 30 | 31 | >>> RUN pecl install redis \ 32 | >>> && pecl install xdebug \ 33 | >>> && docker-php-ext-enable redis xdebug 34 | -------------------- ERROR: failed to solve: process "/bin/bash --login -c pecl install redis && pecl install xdebug && docker-php-ext-enable redis xdebug" did not complete successfully: exit code: 1 Error: Process completed with exit code 1. ``` But I expected this output instead: Same build falied in release candidate version ✅ php:8.3.7-fpm ❌ php:8.4-rc-fpm ### PHP Version PHP 8.4-rc ### Operating System Linux (php:8.4-rc-fpm)

« previous php.bugs (#247572) next »