1--TEST-- 2Bug #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"); 8libxml_set_streams_context($fp); 9libxml_set_streams_context("a"); 10echo "okey"; 11?> 12--EXPECTF-- 13Warning: libxml_set_streams_context() expects parameter 1 to be resource, string given in %sbug63389.php on line %d 14okey 15