Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / libxml / tests / bug63389.phpt
blobe9498aae083c9fcbce4d432b84ac4c1ab344a5f6
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";
12 --EXPECTF--
13 Warning: libxml_set_streams_context() expects parameter 1 to be resource, string given in %sbug63389.php on line %d
14 okey