File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? 2013, PHP 5.5.5
4
4
5
+ - Buildsystem:
6
+ . Fixed bug #51076 (race condition in shtool's mkdir -p implementation).
7
+ (Mike, Raphael Geissert)
8
+
5
9
- Core:
6
10
. Fixed bug #64979 (Wrong behavior of static variables in closure generators).
7
11
(Nikita)
Original file line number Diff line number Diff line change @@ -1003,7 +1003,14 @@ mkdir )
1003
1003
if [ " .$opt_t " = .yes ]; then
1004
1004
echo " mkdir $pathcomp " 1>&2
1005
1005
fi
1006
- mkdir $pathcomp || errstatus=$?
1006
+ # See https://bugs.php.net/51076
1007
+ # The fix is from Debian who have sent it
1008
+ # upstream, too; but upstream seems dead.
1009
+ mkdir $pathcomp || {
1010
+ _errstatus=$?
1011
+ [ -d " $pathcomp " ] || errstatus=${_errstatus}
1012
+ unset _errstatus
1013
+ }
1007
1014
if [ " .$opt_o " != . ]; then
1008
1015
if [ " .$opt_t " = .yes ]; then
1009
1016
echo " chown $opt_o $pathcomp " 1>&2
You can’t perform that action at this time.
0 commit comments