1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--TEST-- Leak in JMP_SET --SKIPIF-- <?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php set_error_handler(function() { throw new Exception; }); try { new GMP ?: null; } catch (Exception $e) { } ?> DONE --EXPECT-- DONE