com php-src: Merge branch 'PHP-5.5' into PHP-5.6: NEWS ext/standard/file.c
| From: | rdlowrey@php.net | Date: | Mon, 02 Feb 2015 15:52:27 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.5' into PHP-5.6: NEWS ext/standard/file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84571@lists.php.net to get a copy of this message | ||
Commit: f86600c1676508876a510ee95ed581e52b09e400
Author: Daniel Lowrey <rdlowrey@php.net> Mon, 2 Feb 2015 10:52:27 -0500
Parents: 05d591dfdf45b09f6e82de6617d23388cb8c3c04 f2f467bd9609f5fad2491a4718380fadaa449470
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f86600c1676508876a510ee95ed581e52b09e400
Log:
Merge branch 'PHP-5.5' into PHP-5.6
Conflicts:
ext/standard/file.c
Changed paths:
MM NEWS
MM ext/standard/file.c
Diff:
diff --cc NEWS
index 4b07bb2,cccb8c1..f059e3d
--- a/NEWS
+++ b/NEWS
@@@ -53,6 -47,6 +53,10 @@@
. Fixed bug #68260 (SQLite3Result::fetchArray declares wrong
required_num_args). (Julien)
++- Standard:
++ . Fixed bug #65272 (flock() out parameter not set correctly in windows).
++ (Daniel Lowrey)
++
- Mysqli:
. Fixed bug #68114 (linker error on some OS X machines with fixed
width decimal support) (Keyur Govande)
diff --cc ext/standard/file.c
index 85f35d1,c15dd50..e0333df
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@@ -364,8 -356,12 +364,12 @@@ 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 && arg3 &&
PZVAL_IS_REF(arg3)) {
++ if (operation && errno == ERROR_INVALID_BLOCK && wouldblock &&
PZVAL_IS_REF(wouldblock)) {
+ #else
- if (operation && errno == EWOULDBLOCK && arg3 && PZVAL_IS_REF(arg3)) {
+ if (operation && errno == EWOULDBLOCK && wouldblock &&
PZVAL_IS_REF(wouldblock)) {
+ #endif
- Z_LVAL_P(arg3) = 1;
+ Z_LVAL_P(wouldblock) = 1;
}
RETURN_FALSE;
}