Annotation of embedaddon/php/ext/libxml/tests/bug63389.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #63389 (Missing context check on libxml_set_streams_context() causes memleak)
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded('libxml')) die('skip'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: $fp = fopen("php://input", "r");
        !             8: libxml_set_streams_context($fp);
        !             9: libxml_set_streams_context("a");
        !            10: echo "okey";
        !            11: ?>
        !            12: --EXPECTF--
        !            13: Warning: libxml_set_streams_context() expects parameter 1 to be resource, string given in %sbug63389.php on line %d
        !            14: okey

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