Annotation of embedaddon/php/ext/standard/tests/streams/bug54623.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Bug #54623: Segfault when when writing to a persistent socket after closing a copy of the socket
                      3: --FILE--
                      4: <?php
                      5: $sock = pfsockopen('udp://127.0.0.1', '63844');
                      6: var_dump((int)$sock);
1.1.1.2 ! misho       7: @fwrite($sock, "1");
1.1       misho       8: $sock2 = pfsockopen('udp://127.0.0.1', '63844');
                      9: var_dump((int)$sock2);
1.1.1.2 ! misho      10: @fwrite($sock2, "2");
1.1       misho      11: fclose($sock2);
                     12: fwrite($sock, "3");
                     13: --EXPECTF--
                     14: int(%d)
                     15: int(%d)
                     16: 
                     17: Warning: fwrite(): %d is not a valid stream resource in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>