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

phpredis issue and automated tests fails with latest master php #17113

Closed
osevan opened this issue Dec 10, 2024 · 2 comments
Closed

phpredis issue and automated tests fails with latest master php #17113

osevan opened this issue Dec 10, 2024 · 2 comments

Comments

@osevan
Copy link

osevan commented Dec 10, 2024

Description

hi devs,

my auatomated script for testing php module functionality fails with latest master and latest glibc in debian siduction.
dont forget to consider this issue :-) #17112
i hope someone can figure out errors and fix as fast as possible..
Thanks and

Best regards.

my redis server:
ping 10.10.20.56
PING 10.10.20.56 (10.10.20.56) 56(84) bytes of data.
64 bytes from 10.10.20.56: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 10.10.20.56: icmp_seq=2 ttl=64 time=0.044 ms
64 bytes from 10.10.20.56: icmp_seq=3 ttl=64 time=0.044 ms
^C
--- 10.10.20.56 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2026ms
rtt min/avg/max/mdev = 0.042/0.043/0.044/0.000 ms
~/compile# cat phpredis.php

<?php

$redis = new Redis();

//Connecting to Redis

$redis->connect('ip 10.10.20.56', 6379);

//$redis->auth('password');

if ($redis->ping()) {
 echo "PONG";
}

?>

:~/compile# /root/compile/php8.4-build/php-8.4.1/sapi/cgi/php-cgi /root/compile/phpredis.php
Status: 500 Internal Server Error
Content-type: text/html; charset=UTF-8

~/compile# time sudo -u redis -H redis-benchmark -h 10.10.20.56 -n 1000000 -t set,get -P 16 -q
SET: 178348.50 requests per second, p50=0.479 msec
GET: 211774.67 requests per second, p50=0.391 msec

real 0m10.345s
user 0m0.006s
sys 0m0.000s

~/compile# /root/compile/php8.4-build/php-8.4.1/sapi/cli/php -m
[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
enchant
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules]
Zend OPcache
here my redis module outpout:
~/compile# /root/compile/php8.4-build/php-8.4.1/sapi/cli/php -m|grep -P 'apcu|redis'
apcu
redis

PHP Version

master latest

Operating System

debian sid

@osevan
Copy link
Author

osevan commented Dec 10, 2024

/opt/php-8.4/bin/php /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/TestRedis.php --class Redis
Note: these tests might take up to a minute. Don't worry :-)
Using PHP version 8.4.1 (64 bits)
Testing class Redis_Test
testMinimumVersion [PASSED]
testPing [PASSED]
testPipelinePublish [PASSED]
testPubSub [PASSED]
testBitcount [PASSED]
testBitop [PASSED]
testBitsets [FAILED]
testLcs [SKIPPED]
testLmpop [FAILED]
testBLmpop [FAILED]
testZmpop [FAILED]
testBZmpop [FAILED]
testBitPos [FAILED]
testSetLargeKeys [PASSED]
testEcho [PASSED]
testErr [PASSED]
testSet [PASSED]
testExtendedSet [PASSED]
testGetSet [PASSED]
testRandomKey [PASSED]
testRename [PASSED]
testRenameNx [PASSED]
testMultiple [PASSED]
testMultipleBin [PASSED]
testExpireMember [PASSED]
testExpire [PASSED]
testExpireAt [PASSED]
testExpireOptions [FAILED]
testExpiretime [FAILED]
testGetEx [PASSED]
testSetEx [PASSED]
testPSetEx [PASSED]
testSetNX [PASSED]
testExpireAtWithLong [PASSED]
testIncr [PASSED]
testIncrByFloat [PASSED]
testDecr [PASSED]
testExists [PASSED]
testTouch [PASSED]
testKeys [PASSED]
testDelete [PASSED]
testUnlink [PASSED]
testType [PASSED]
testStr [PASSED]
testlPop [PASSED]
testrPop [PASSED]
testrPopSerialization [PASSED]
testblockingPop [PASSED]
testLLen [PASSED]
testlPopx [PASSED]
testlPos [PASSED]
testltrim [PASSED]
testSortPrefix [PASSED]
testSortAsc [PASSED]
testSortDesc [PASSED]
testSortHandler [FAILED]
testLindex [PASSED]
testlMove [PASSED]
testBlmove [PASSED]
testLRem [PASSED]
testSAdd [PASSED]
testSCard [PASSED]
testSRem [PASSED]
testsMove [PASSED]
testsPop [PASSED]
testsPopWithCount [PASSED]
testsRandMember [PASSED]
testSRandMemberWithCount [PASSED]
testSIsMember [PASSED]
testSMembers [PASSED]
testsMisMember [PASSED]
testlSet [PASSED]
testsInter [PASSED]
testsInterStore [PASSED]
testsUnion [PASSED]
testsUnionStore [PASSED]
testsDiff [PASSED]
testsDiffStore [PASSED]
testInterCard [FAILED]
testLRange [PASSED]
testdbSize [PASSED]
testFlushDB [PASSED]
testTTL [PASSED]
testPersist [PASSED]
testClient [FAILED]
testSlowlog [PASSED]
testWait [PASSED]
testInfo [FAILED]
testInfoCommandStats [PASSED]
testSelect [PASSED]
testSwapDB [PASSED]
testMset [PASSED]
testMsetNX [PASSED]
testRpopLpush [PASSED]
testBRpopLpush [PASSED]
testZAddFirstArg [PASSED]
testZaddIncr [PASSED]
testZX [PASSED]
testZRangeScoreArg [PASSED]
testZRangeByLex [PASSED]
testZLexCount [PASSED]
testzDiff [PASSED]
testzInter [PASSED]
testzUnion [PASSED]
testzDiffStore [PASSED]
testzMscore [PASSED]
testZRemRangeByLex [PASSED]
testBZPop [PASSED]
testZPop [PASSED]
testZRandMember [PASSED]
testHashes [PASSED]
testHRandField [PASSED]
testSetRange [PASSED]
testObject [PASSED]
testMultiExec [PASSED]
testFailedTransactions [PASSED]
testPipeline [PASSED]
testPipelineMultiExec [PASSED]
testMultiEmpty [PASSED]
testPipelineEmpty [PASSED]
testDoublePipeNoOp [PASSED]
testDiscard [PASSED]
testDifferentTypeString [PASSED]
testDifferentTypeList [PASSED]
testDifferentTypeSet [PASSED]
testDifferentTypeSortedSet [PASSED]
testDifferentTypeHash [PASSED]
testSerializerPHP [PASSED]
testSerializerIGBinary [SKIPPED]
testSerializerMsgPack [SKIPPED]
testSerializerJSON [PASSED]
testCompressionLZF [SKIPPED]
testCompressionZSTD [SKIPPED]
testCompressionLZ4 [SKIPPED]
testDumpRestore [PASSED]
testGetLastError [PASSED]
testScript [PASSED]
testEval [FAILED]
testEvalSHA [FAILED]
testSerialize [PASSED]
testUnserialize [PASSED]
testCompressHelpers [PASSED]
testPackHelpers [PASSED]
testPrefix [PASSED]
testReplyLiteral [PASSED]
testNullArray [PASSED]
testNestedNullArray [PASSED]
testConfig [FAILED]
testReconnectSelect [PASSED]
testTime [PASSED]
testReadTimeoutOption [PASSED]
testIntrospection [PASSED]
testTransferredBytes [PASSED]
testScan
Deprecated: Automatic conversion of false to array is deprecated in /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/RedisTest.php on line 5961
[PASSED]
testScanPrefix [PASSED]
testMaxRetriesOption [PASSED]
testBackoffOptions [PASSED]
testHScan [PASSED]
testSScan [PASSED]
testZScan [PASSED]
testScanErrors [PASSED]
testPFCommands [PASSED]
testGeoAdd [PASSED]
testGeoRadius [PASSED]
testGeoRadiusByMember [PASSED]
testGeoPos [PASSED]
testGeoHash [PASSED]
testGeoDist [PASSED]
testGeoSearch [PASSED]
testGeoSearchStore [PASSED]
testRawCommand [PASSED]
testXAdd [PASSED]
testXRange [PASSED]
testXGroup [FAILED]
testXAck [PASSED]
testXRead [PASSED]
testXReadGroup [PASSED]
testXPending [PASSED]
testXDel [PASSED]
testXTrim [PASSED]
testXClaim [PASSED]
testXAutoClaim [PASSED]
testXInfo [PASSED]
testXInfoEmptyStream [PASSED]
testInvalidAuthArgs [PASSED]
testAcl [PASSED]
testUnixSocket [SKIPPED]
testHighPorts [SKIPPED]
testSession_compression [FAILED]
testSession_savedToRedis [FAILED]
testSession_lockKeyCorrect [PASSED]
testSession_lockingDisabledByDefault [FAILED]
testSession_lockReleasedOnClose [PASSED]
testSession_lock_ttlMaxExecutionTime [FAILED]
testSession_lock_ttlLockExpire [FAILED]
testSession_lockHoldCheckBeforeWrite_otherProcessHasLock [FAILED]
testSession_lockHoldCheckBeforeWrite_nobodyHasLock [PASSED]
testSession_correctLockRetryCount [PASSED]
testSession_defaultLockRetryCount [PASSED]
testSession_noUnlockOfOtherProcess [FAILED]
testSession_lockWaitTime [FAILED]
testMultipleConnect [PASSED]
testConnectException [PASSED]
testTlsConnect
[SKIPPED]
testReset [PASSED]
testCopy [PASSED]
testCommand
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/RedisTest.php:7669
Stack trace:
#0 /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/TestSuite.php(605): Redis_Test->testCommand()
#1 /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/TestRedis.php(119): TestSuite::run()
#2 {main}
thrown in /root/compile/php8.4-build/php-8.4.1/ext/phpredis/tests/RedisTest.php on line 7669

@cmb69
Copy link
Member

cmb69 commented Dec 10, 2024

Please report at https://github.com/phpredis/phpredis/.

@cmb69 cmb69 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants