[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:
Gina Peter Banyard 2025-08-07 21:50:04 +01:00 committed by GitHub
parent a3f34043de
commit 1f131e3ae6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 46 deletions

View file

@ -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.

View file

@ -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.