php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61634 Test ext\sockets\tests\socket_listen-wrongparams.phpt fails
Submitted: 2012-04-05 12:28 UTC Modified: 2012-09-09 10:25 UTC
From: ab@php.net Assigned: laruence (profile)
Status: Closed Package: Sockets related
PHP Version: Irrelevant OS: Windows
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: ab@php.net
New email:
PHP Version: OS:

 

 [2012-04-05 12:28 UTC] ab@php.net
Description:
------------
Test diff:

004+ Warning: socket_create(): Unable to create socket [0]: An address incompatible with the requested protocol was used.
005+  in C:\php-sdk\php53\vc9\x86\php-src\ext\sockets\tests\socket_listen-wrongparams.php on line 3
004- Warning: socket_listen(): unable to listen on socket [%d]: Invalid argument in %s on line %d
005- bool(false)
006+
007+ Warning: socket_listen() expects parameter 1 to be resource, boolean given in C:\php-sdk\php53\vc9\x86\php-src\ext\sockets\tests\socket_listen-wrongparams.php on line 4
008+ NULL

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

61634.diff (last revision 2012-04-05 14:04 UTC by ab@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-05 14:04 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 61634.diff
Revision:   1333634680
URL:        https://bugs.php.net/patch-display.php?bug=61634&patch=61634.diff&revision=1333634680
 [2012-04-05 14:05 UTC] ab@php.net
The patch disables this test on windows as unix sockets are not available there.
 [2012-04-10 02:00 UTC] mattficken@php.net
The patch works for me on Windows 7 and Gentoo Linux (x86 & x64) on php-5-3-r0f180a6.
 [2012-04-10 11:19 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c4676ee99f5381de502cd6544a9c42a25b53b933
Log: Fixed bug #61634 Test ext\sockets\tests\socket_listen-wrongparams.phpt fails
 [2012-09-09 10:19 UTC] reeze dot xia at gmail dot com
This could be closed...
 [2012-09-09 10:25 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2014-10-07 23:27 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=c4676ee99f5381de502cd6544a9c42a25b53b933
Log: Fixed bug #61634 Test ext\sockets\tests\socket_listen-wrongparams.phpt fails
 [2014-10-07 23:38 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=c4676ee99f5381de502cd6544a9c42a25b53b933
Log: Fixed bug #61634 Test ext\sockets\tests\socket_listen-wrongparams.phpt fails
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Mar 18 11:01:28 2025 UTC