Bug #66936 [Opn->Csd]: Corruption of exit code
| From: | remi@php.net | Date: | Thu, 20 Mar 2014 12:58:47 +0000 |
| Subject: | Bug #66936 [Opn->Csd]: Corruption of exit code | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184842@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66936&edit=1
ID: 66936
Updated by: remi@php.net
Reported by: remi@php.net
Summary: Corruption of exit code
-Status: Open
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: GNU/LInux
PHP Version: 5.6.0-dev
-Assigned To:
+Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Fixed in redis side, see https://github.com/remicollet/phpredis/commit/5520be1042d1b97728a3f8e04ed3c5a6fd0da9f8
Previous Comments:
------------------------------------------------------------------------
[2014-03-20 09:06:58] 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 09:05:20] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66936&edit=1