/* if save path is an empty string, determine the temporary dir */
save_path = php_get_temporary_directory();
- if (strcmp(save_path, "/tmp")) {
- if (php_check_open_basedir(save_path TSRMLS_CC)) {
- return FAILURE;
- }
+ if (php_check_open_basedir(save_path TSRMLS_CC)) {
+ return FAILURE;
}
}
var_dump(chdir($sessions));
ini_set("session.save_path", $directory);
var_dump(session_save_path());
-var_dump(session_start());
-var_dump(session_save_path());
-var_dump(session_destroy());
-var_dump(session_save_path());
var_dump(rmdir($sessions));
echo "Done";
Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
unicode(0) ""
bool(true)
-unicode(0) ""
-bool(true)
-unicode(0) ""
-bool(true)
Done