mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
[skip ci] ext/sockets: remove tests that leak memory (#19408)
I don't understand what the purposes of theses tests are.
This commit is contained in:
parent
a3f34043de
commit
1f131e3ae6
2 changed files with 0 additions and 46 deletions
|
@ -1,24 +0,0 @@
|
|||
--TEST--
|
||||
socket_export_stream: effects of leaked handles
|
||||
--EXTENSIONS--
|
||||
sockets
|
||||
zend_test
|
||||
--INI--
|
||||
report_memleaks=0
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$sock0 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
|
||||
socket_bind($sock0, '0.0.0.0', 0);
|
||||
$stream0 = socket_export_stream($sock0);
|
||||
zend_leak_variable($stream0);
|
||||
|
||||
$sock1 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
|
||||
socket_bind($sock1, '0.0.0.0', 0);
|
||||
$stream1 = socket_export_stream($sock1);
|
||||
zend_leak_variable($sock1);
|
||||
|
||||
echo "Done.\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
Done.
|
|
@ -1,22 +0,0 @@
|
|||
--TEST--
|
||||
socket_import_stream: effects of leaked handles
|
||||
--EXTENSIONS--
|
||||
sockets
|
||||
zend_test
|
||||
--INI--
|
||||
report_memleaks=0
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$stream0 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVER_BIND);
|
||||
$sock0 = socket_import_stream($stream0);
|
||||
zend_leak_variable($stream0);
|
||||
|
||||
$stream1 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVER_BIND);
|
||||
$sock1 = socket_import_stream($stream1);
|
||||
zend_leak_variable($sock1);
|
||||
|
||||
echo "Done.\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
Done.
|
Loading…
Add table
Add a link
Reference in a new issue