mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
Fix test for TCP_NODELAY constant
Actually check for the constant, instead of just printing a string...
This commit is contained in:
parent
9a4cc52c23
commit
0709eb80f3
@ -1,11 +1,13 @@
|
||||
--TEST--
|
||||
Bug 46360 - TCP_NODELAY constant (sock_get_option, sock_set_option)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('sockets')) die('skip sockets extension not loaded'); ?>
|
||||
--CREDITS--
|
||||
Florian Anderiasch
|
||||
fa@php.net
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump('TCP_NODELAY');
|
||||
var_dump(TCP_NODELAY);
|
||||
?>
|
||||
--EXPECT--
|
||||
string(11) "TCP_NODELAY"
|
||||
--EXPECTF--
|
||||
int(%d)
|
||||
|
Loading…
Reference in New Issue
Block a user