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

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);
        !             7: fwrite($sock, "1");
        !             8: $sock2 = pfsockopen('udp://127.0.0.1', '63844');
        !             9: var_dump((int)$sock2);
        !            10: fwrite($sock2, "2");
        !            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>