summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2007-01-06 16:56:38 +0000
committerHannes Magnusson <bjori@php.net>2007-01-06 16:56:38 +0000
commit630254d55e37cc10bd9fe2e41ff16c07af6994ed (patch)
tree451dd6d5c43b4447512cf81787646b6281b3d74c
parentc0e957920466c5d688d74a5c162e8a7f8cd5d43b (diff)
downloadphp-git-630254d55e37cc10bd9fe2e41ff16c07af6994ed.tar.gz
Fix skipif
-rw-r--r--ext/session/tests/016.phpt10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/session/tests/016.phpt b/ext/session/tests/016.phpt
index 21cd0ec929..fa179d063c 100644
--- a/ext/session/tests/016.phpt
+++ b/ext/session/tests/016.phpt
@@ -1,7 +1,15 @@
--TEST--
invalid session.save_path should not cause a segfault
--SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php
+if (!extension_loaded("session") && ini_get("enable_dl")) {
+ $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
+ @dl("session$dlext");
+}
+if (!extension_loaded("session")) {
+ die("skip Session module not loaded");
+}
+?>
--INI--
session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
session.use_cookies=0