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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 14:01:36 2024 UTC