Skip to content

Commit

Permalink
use {TMP} placeholder in phpt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hollyhuiLi authored and cmb69 committed May 21, 2019
1 parent a8a019d commit 202e693
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ext/opcache/tests/bug71443.phpt
Expand Up @@ -3,7 +3,7 @@ Bug #71443 (Segfault using built-in webserver with intl using symfony)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_cache=/tmp/
opcache.file_cache={TMP}
opcache.file_cache_only=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/bug76275.phpt
Expand Up @@ -3,7 +3,7 @@ Bug #76275: Assertion failure in file cache when unserializing empty try_catch_a
--INI--
opcache.enabled=1
opcache.enable_cli=1
opcache.file_cache=/tmp
opcache.file_cache={TMP}
--FILE--
<?php

Expand Down
2 changes: 1 addition & 1 deletion ext/readline/tests/bug69054.phpt
Expand Up @@ -3,7 +3,7 @@ Bug #69054 (Null dereference in readline_(read|write)_history() without paramete
--SKIPIF--
<?php if (!extension_loaded("readline") || !function_exists('readline_add_history')) die("skip"); ?>
--INI--
open_basedir=/tmp
open_basedir={TMP}
--FILE--
<?php readline_read_history(); ?>
==DONE==
Expand Down
8 changes: 4 additions & 4 deletions ext/session/tests/bug32330.phpt
Expand Up @@ -6,7 +6,7 @@ Bug #32330 (session_destroy, "Failed to initialize storage module", custom sessi
session.use_trans_sid=0
session.use_cookies=1
session.name=sid
session.save_path=/tmp
session.save_path={TMP}
session.gc_probability=1
session.gc_divisor=1
session.save_handler=files
Expand Down Expand Up @@ -69,17 +69,17 @@ $_SESSION['E'] = 'F';

?>
--EXPECTF--
open: path = /tmp, name = sid
open: path = %s, name = sid
read: id = %s
gc: maxlifetime = %d
write: id = %s, data = A|s:1:"B";
close
open: path = /tmp, name = sid
open: path = %s, name = sid
read: id = %s
gc: maxlifetime = %d
destroy: id = %s
close
open: path = /tmp, name = sid
open: path = %s, name = sid
read: id = %s
gc: maxlifetime = %d
write: id = %s, data = E|s:1:"F";
Expand Down
2 changes: 1 addition & 1 deletion ext/session/tests/session_set_save_handler_sid_002.phpt
Expand Up @@ -3,7 +3,7 @@ Test session_set_save_handler() function: create_sid
--INI--
session.save_handler=files
session.name=PHPSESSID
session.save_path=/tmp
session.save_path={TMP}
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/sqlite3/tests/sqlite3_33_load_extension_param.phpt
Expand Up @@ -4,7 +4,7 @@ SQLite3::loadExtension with empty extension test
Jelle Lampaert
#Belgian Testfest 2009
--INI--
sqlite3.extension_dir=/tmp
sqlite3.extension_dir={TMP}
--SKIPIF--
<?php require_once(__DIR__ . '/skipif.inc'); ?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/file/bug41655_1-win32.phpt
Expand Up @@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--INI--
open_basedir=/tmp
open_basedir={TMP}
--FILE--
<?php
$a=glob("./*.jpeg");
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/file/bug41655_1.phpt
Expand Up @@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--INI--
open_basedir=/tmp
open_basedir={TMP}
--FILE--
<?php
$a=glob("./*.jpeg");
Expand Down

0 comments on commit 202e693

Please sign in to comment.