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