관리-도구
편집 파일: bug72155.phpt
--TEST-- Bug #72155 (use-after-free caused by get_zval_xmlrpc_type) --SKIPIF-- <?php if (!extension_loaded("xmlrpc")) print "skip"; ?> --FILE-- <?php if (false !== strpos(PHP_OS, "WIN")) { $fl = "c:\\windows\\explorer.exe"; } else { $fl = "/etc/passwd"; } $var0 = fopen($fl,"r"); $var1 = xmlrpc_encode($var0); var_dump($var1); ?> --EXPECT-- string(109) "<?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <int>5</int> </value> </param> </params> "