repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
chdir_posix.php
blob
da05c9f894de34844dfef64c15a715a21d82f72c
1
<
?php
2
3
$origdir
=
getcwd
();
4
5
// Ugh. This (racy crap) is the 'recommended' way to fake tmpdir()
6
$dirname
=
tempnam
(
sys_get_temp_dir
(),
$prefix
=
'hhvm_chdir'
);
7
unlink
(
$dirname
);
8
mkdir
(
$dirname
);
9
10
var_dump
(
chdir
(
$dirname
));
11
chdir
(
$origdir
);
12
chmod
(
$dirname
,
0600
);
13
var_dump
(
chdir
(
$dirname
));
14
rmdir
(
$dirname
);