]> granicus.if.org Git - php/commitdiff
Add missing SKIPIF section
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 3 Feb 2018 12:34:58 +0000 (13:34 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 3 Feb 2018 12:34:58 +0000 (13:34 +0100)
The test requires the session extension, which may not be available, in
which case the test would fail, which is expected anyway, but not for
the expected reasons.

ext/standard/tests/serialize/bug70219.phpt

index e134c78a9f70bd37a5179c4e0cf9ee5e6f588215..a002bdfbb0324738f7caa19f429954ae60ace1db 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Bug #70219 Use after free vulnerability in session deserializer
+--SKIPIF--
+<?php
+if (!extension_loaded('session')) die('skip session extension not available');
+?>
 --XFAIL--
 Unfinished merge, needs fix.
 --FILE--