com php-src: Merge branch 'PHP-5.5' into PHP-5.6: ext/standard/file.c
| From: | Anatol Belski | Date: | Sat, 21 Feb 2015 13:14:24 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.5' into PHP-5.6: ext/standard/file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85040@lists.php.net to get a copy of this message | ||
Commit: 3cf2b7cc2b26b45699fc998dc57fee103bbf09a2
Author: Anatol Belski <ab@php.net> Sat, 21 Feb 2015 14:14:24 +0100
Parents: b21d0848c9cd313191dd62e8f21f9c16d08818ed 6751f8b314e60193534f7d8c1c1d32660a27efc8
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3cf2b7cc2b26b45699fc998dc57fee103bbf09a2
Log:
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
revisit fix for bug #65272
Conflicts:
ext/standard/file.c
Bugs:
https://bugs.php.net/65272
Changed paths:
MM ext/standard/file.c
Diff:
diff --cc ext/standard/file.c
index e0333df,c2e71d1..85f35d1
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@@ -364,12 -356,8 +364,8 @@@ PHP_FUNCTION(flock
/* flock_values contains all possible actions if (operation & 4) we won't block on the
lock */
act = flock_values[act - 1] | (operation & PHP_LOCK_NB ? LOCK_NB : 0);
if (php_stream_lock(stream, act)) {
- #ifdef PHP_WIN32
- if (operation && errno == ERROR_INVALID_BLOCK && wouldblock &&
PZVAL_IS_REF(wouldblock)) {
- #else
- if (operation && errno == EWOULDBLOCK && arg3 && PZVAL_IS_REF(arg3)) {
- Z_LVAL_P(arg3) = 1;
+ if (operation && errno == EWOULDBLOCK && wouldblock &&
PZVAL_IS_REF(wouldblock)) {
- #endif
+ Z_LVAL_P(wouldblock) = 1;
}
RETURN_FALSE;
}