php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66936 Corruption of exit code
Submitted: 2014-03-20 09:05 UTC Modified: 2014-03-20 12:58 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: *General Issues
PHP Version: 5.6.0-dev OS: GNU/LInux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2014-03-20 09:05 UTC] remi@php.net
Description:
------------
Version 5.6.0-dev 201403170630 snapshot.

Running pecl/redis test suite, exit code is 255 when 0 is expected.



Test script:
---------------
From the git clone of https://github.com/nicolasff/phpredis (pecl archive doesn't include the test suite)

Sorry I can't find a small reproducer.
The trivial "php -r 'exit(0);'" works.

So I suspect some memory corruption. Don't know if in php or in this extension.

php -n -dextension=modules/redis.so tests/TestRedis.php ; echo $?


Expected result:
----------------
Note: these tests might take up to a minute. Don't worry :-)
...............................................................S.....................................
Skipped test: /work/GIT/phpredis/tests/TestRedis.php:1869 (testWait) 
All tests passed.
0


Actual result:
--------------
Note: these tests might take up to a minute. Don't worry :-)
...............................................................S.....................................
Skipped test: /work/GIT/phpredis/tests/TestRedis.php:1869 (testWait) 
All tests passed.
255


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-20 09:05 UTC] remi@php.net
-PHP Version: Irrelevant +PHP Version: 5.6.0-dev
 [2014-03-20 09:06 UTC] remi@php.net
I suspect something wrong in PHP, as the same code runs without problem against 5.5.10 (returns 0).
 [2014-03-20 12:58 UTC] remi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: remi
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC