forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #61635 ext\sockets\tests\socket_select-wrongparams-1.phpt
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Test parameter handling in socket_select(). | ||
--SKIPIF-- | ||
<?php | ||
if (substr(PHP_OS, 0, 3) != 'WIN') { | ||
die('skip.. Not valid for non Windows'); | ||
} | ||
if (!extension_loaded('sockets')) { | ||
die('SKIP The sockets extension is not loaded.'); | ||
} | ||
--FILE-- | ||
<?php | ||
$sockets = array(); | ||
$domain = AF_INET; | ||
socket_create_pair($domain, SOCK_STREAM, 0, $sockets); | ||
|
||
$write = null; | ||
$except = null; | ||
$time = -1; | ||
var_dump(socket_select($sockets, $write, $except, $time)); | ||
--EXPECTF-- | ||
int(0) | ||
--CREDITS-- | ||
Till Klampaeckel, [email protected] | ||
Berlin TestFest 2009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters